Class News

Description

TAM AG CMS

  • author: DevilDev

Located in /news/News.php (line 11)

ModelAbstract
   |
   --News
Variable Summary
static News $_instance
Method Summary
static News getInstance ()
boolean addSubscribeEmail (string $email)
string getLastNews (int $count, [int $id = NULL])
void getLastNewsHtml ( $count, [ $id = NULL])
string loadAdminHtml ()
string loadForm ()
string loadNewsDetailHtml (int $id)
string loadNewsHtml ([bool $return = false])
string loadSlider (array $newsl)
string loadSubscribeForm ()
string loadTopNews (int $count, [ $ignoreId = NULL])
void loadTopNewsHtml ( $count, [ $ignoreId = NULL])
void loadTrash ([ $cnt = false])
bool removeById ($id $id)
void sendSubscribe ()
void _init ()
Variables
static News $_instance = null (line 18)

Singleton instance

  • access: protected
Methods
static method getInstance (line 31)

Returns an instance of News

Singleton pattern implementation

  • return: Provides a fluent interface
  • access: public
static News getInstance ()
addSubscribeEmail (line 139)

Add subscribe for news

  • access: public
boolean addSubscribeEmail (string $email)
  • string $email: valid email address
getLastNews (line 631)

Load html last news

Allow variable
$news_list - html line news

  • return: html
  • access: public
string getLastNews (int $count, [int $id = NULL])
  • int $count: countload news
  • int $id: ignore news id
getLastNewsHtml (line 617)
  • access: public
void getLastNewsHtml ( $count, [ $id = NULL])
  • $count
  • $id
loadAdminHtml (line 243)

Create html admin page for news

  • return: html all news
  • access: public
string loadAdminHtml ()
loadAdminSubscribeHtml (line 75)

Create html admin page for news subscribe

  • return: html
  • access: public
string loadAdminSubscribeHtml ()
loadForm (line 173)

Create html admin form for edit news

  • return: html form
  • access: public
string loadForm ()
loadNewsDetailHtml (line 573)

Create html detail news

Allow variable
$news - all fields for news
$slider - html slider for news
$news_list - html other news

  • return: html
  • access: public
string loadNewsDetailHtml (int $id)
  • int $id
loadNewsHtml (line 429)

Create html all news for frontend

  • return: html news
  • access: public
string loadNewsHtml ([bool $return = false])
  • bool $return
loadSlider (line 670)

Create html slider for current news

Allow variable
$slider_lines - html line for slider
$slider - bool if count images more one

  • return: html slider
  • access: public
string loadSlider (array $newsl)
  • array $newsl
loadSubscribeForm (line 53)

Create html admin form for subscribe to the news

Allow variable
$status_select - html select for status
$ref_select - html select refering

  • return: html form
  • access: public
string loadSubscribeForm ()
loadSubscribeFormFooterHtml (line 704)

Load html subscribe form in footer

  • return: | boolean
  • access: public
string loadSubscribeFormFooterHtml ()
loadTopNews (line 525)

Create html top news

  • return: html
  • access: public
string loadTopNews (int $count, [ $ignoreId = NULL])
  • int $count
  • $ignoreId
loadTopNewsHtml (line 515)
  • access: public
void loadTopNewsHtml ( $count, [ $ignoreId = NULL])
  • $count
  • $ignoreId
loadTrash (line 733)
  • access: public
void loadTrash ([ $cnt = false])
  • $cnt
removeById (line 762)
  • access: public
bool removeById ($id $id)
  • $id $id
sendSubscribe (line 712)
  • access: public
void sendSubscribe ()
_init (line 39)
void _init ()

Documentation generated on Fri, 19 Aug 2016 17:10:34 +0200 by phpDocumentor 1.4.3