PHP Class ContentList, gxc-cms

Copywrite 2014 to Present Day - Paul Smith (aka smiffy6969, razorcms)
Author: Paul Smith
Inheritance: extends RazorAPI
Mostrar archivo Open project: nganhtuan63/gxc-cms Class Usage Examples

Public Properties

Property Type Description
$content_type Content type we want to get
$criteria Criteria of the list
$lang Language of the Object
$manual_list Manual List
$number Number Items to get
$paging =0 means no paging, >0 means item per pages
$tags Object Tags
$terms Object Terms
$type This list is manual or auto

Public Methods

Method Description
attributeLabels ( ) : array
getContentLang ( )
getContentType ( )
getDynamicTerms ( )
getTerms ( )
model ( $className = __CLASS__ ) : ContentList Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
suggestContent ( )
suggestTags ( )
tableName ( ) : string

Protected Methods

Method Description
afterFind ( )
beforeSave ( )

Method Details

afterFind() protected method

protected afterFind ( )

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)

beforeSave() protected method

protected beforeSave ( )

getContentLang() public static method

public static getContentLang ( )

getContentType() public static method

public static getContentType ( )

getDynamicTerms() public static method

public static getDynamicTerms ( )

getTerms() public static method

public static getTerms ( )

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : ContentList
return ContentList the static model class

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

suggestContent() public static method

public static suggestContent ( )

suggestTags() public static method

public static suggestTags ( )

tableName() public method

public tableName ( ) : string
return string the associated database table name

Property Details

$content_type public_oe property

Content type we want to get
public $content_type

$criteria public_oe property

Criteria of the list
public $criteria

$lang public_oe property

Language of the Object
public $lang

$manual_list public_oe property

Manual List
public $manual_list

$number public_oe property

Number Items to get
public $number

$paging public_oe property

=0 means no paging, >0 means item per pages
public $paging

$tags public_oe property

Object Tags
public $tags

$terms public_oe property

Object Terms
public $terms

$type public_oe property

This list is manual or auto
public $type