PHP Класс ElementType

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
attributeLabels ( ) : array
getDescendents ( ) : ElementType[] Recursively get all children of an element type.
getInstance ( ) : BaseEventTypeElement Generator method to return a new instance of the element type class.
isChild ( ) : boolean If the element type is a child, returns true.
model ( $className = __CLASS__ ) : ElementType 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.
tableName ( ) : string

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

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

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

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

Recursively get all children of an element type.
public getDescendents ( ) : ElementType[]
Результат ElementType[]

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

Generator method to return a new instance of the element type class.
public getInstance ( ) : BaseEventTypeElement
Результат BaseEventTypeElement

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

If the element type is a child, returns true.
public isChild ( ) : boolean
Результат boolean

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

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

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

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

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

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

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

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