gino-news  2.1.0
Modulo News per gino CMS
Article Class Reference

Classe tipo Gino.Model che rappresenta una singola news. More...

Inheritance diagram for Article:
Collaboration diagram for Article:

Public Member Functions

 __construct ($id, $instance)
 Costruttore. More...
 
 __toString ()
 Rappresentazione a stringa dell'oggetto. More...
 
 structure ($id)
 Sovrascrive la struttura di default. More...
 
 objCategories ()
 Lista di oggetti categoria associati alla news. More...
 
 getUrl ()
 Url relativo al dettaglio della news. More...
 
 getImgPath ()
 Path relativo dell'immagine associata. More...
 
 getAttachmentPath ()
 Path relativo dell'allegato. More...
 
 attachmentDownloadUrl ()
 Path relativo al download dell'allegato. More...
 
 dateIso ()
 Data in formato iso 8601. More...
 

Static Public Member Functions

static getCount ($controller, $options=null)
 Restituisce il numero di news che soddisfano le condizioni date. More...
 

Static Public Attributes

static $table = 'news_article'
 
static $table_ctgs = 'news_article_category'
 

Static Protected Attributes

static $_extension_img = array('jpg', 'jpeg', 'png')
 
static $_extension_attachment = array('pdf', 'doc', 'xdoc', 'odt', 'xls', 'csv', 'txt')
 

Detailed Description

Classe tipo Gino.Model che rappresenta una singola news.

Version
2.1.0
Author
Marco Guidotti guido.nosp@m.ttim.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
abidibo abidi.nosp@m.bo@g.nosp@m.mail..nosp@m.com

Definition at line 32 of file class.Article.php.

Constructor & Destructor Documentation

__construct (   $id,
  $instance 
)

Costruttore.

Parameters
integer$idvalore ID del record
\Gino\App\News\news$instanceistanza del controller Gino.App.News.news

Definition at line 45 of file class.Article.php.

Member Function Documentation

__toString ( )

Rappresentazione a stringa dell'oggetto.

Returns
titolo news

Definition at line 75 of file class.Article.php.

attachmentDownloadUrl ( )

Path relativo al download dell'allegato.

Returns
path relativo

Definition at line 256 of file class.Article.php.

dateIso ( )

Data in formato iso 8601.

Returns
data iso 8601

Definition at line 266 of file class.Article.php.

getAttachmentPath ( )

Path relativo dell'allegato.

Returns
path relativo dell'allegato

Definition at line 247 of file class.Article.php.

static getCount (   $controller,
  $options = null 
)
static

Restituisce il numero di news che soddisfano le condizioni date.

Parameters
\Gino\App\News\news$controlleristanza del controller Gino.App.News.news
array$optionsarray associativo di opzioni
Returns
numero di news

Definition at line 192 of file class.Article.php.

getImgPath ( )

Path relativo dell'immagine associata.

Returns
path relativo dell'immagine

Definition at line 238 of file class.Article.php.

getUrl ( )

Url relativo al dettaglio della news.

Returns
url

Definition at line 229 of file class.Article.php.

objCategories ( )

Lista di oggetti categoria associati alla news.

Returns
array di istanze di Gino.App.News.Category

Definition at line 174 of file class.Article.php.

structure (   $id)

Sovrascrive la struttura di default.

See also
Gino.Model::structure()
Parameters
integer$id
Returns
array, struttura

Definition at line 86 of file class.Article.php.

Field Documentation

$_extension_attachment = array('pdf', 'doc', 'xdoc', 'odt', 'xls', 'csv', 'txt')
staticprotected

Definition at line 35 of file class.Article.php.

$_extension_img = array('jpg', 'jpeg', 'png')
staticprotected

Definition at line 34 of file class.Article.php.

$table = 'news_article'
static

Definition at line 36 of file class.Article.php.

$table_ctgs = 'news_article_category'
static

Definition at line 37 of file class.Article.php.


The documentation for this class was generated from the following file: