PHP Класс ContentList, gxc-cms

Copywrite 2014 to Present Day - Paul Smith (aka smiffy6969, razorcms)
Автор: Paul Smith
Наследование: extends RazorAPI
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
afterFind ( )
beforeSave ( )

Описание методов

afterFind() защищенный Метод

protected afterFind ( )

attributeLabels() публичный Метод

public attributeLabels ( ) : array
Результат array customized attribute labels (name=>label)

beforeSave() защищенный Метод

protected beforeSave ( )

getContentLang() публичный статический Метод

public static getContentLang ( )

getContentType() публичный статический Метод

public static getContentType ( )

getDynamicTerms() публичный статический Метод

public static getDynamicTerms ( )

getTerms() публичный статический Метод

public static getTerms ( )

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : ContentList
Результат ContentList the static model class

relations() публичный Метод

public relations ( ) : array
Результат array relational rules.

rules() публичный Метод

public rules ( ) : array
Результат array validation rules for model attributes.

suggestContent() публичный статический Метод

public static suggestContent ( )

suggestTags() публичный статический Метод

public static suggestTags ( )

tableName() публичный Метод

public tableName ( ) : string
Результат string the associated database table name

Описание свойств

$content_type публичное свойство

Content type we want to get
public $content_type

$criteria публичное свойство

Criteria of the list
public $criteria

$lang публичное свойство

Language of the Object
public $lang

$manual_list публичное свойство

Manual List
public $manual_list

$number публичное свойство

Number Items to get
public $number

$paging публичное свойство

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

$tags публичное свойство

Object Tags
public $tags

$terms публичное свойство

Object Terms
public $terms

$type публичное свойство

This list is manual or auto
public $type