PHP Class ElementType

Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
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

Method Details

attributeLabels() public method

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

getDescendents() public method

Recursively get all children of an element type.
public getDescendents ( ) : ElementType[]
return ElementType[]

getInstance() public method

Generator method to return a new instance of the element type class.
public getInstance ( ) : BaseEventTypeElement
return BaseEventTypeElement

isChild() public method

If the element type is a child, returns true.
public isChild ( ) : boolean
return boolean

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : ElementType
return ElementType 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.

tableName() public method

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