PHP Class ElementType

Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

getDescendents() public méthode

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

getInstance() public méthode

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

isChild() public méthode

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

model() public static méthode

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : ElementType
Résultat ElementType the static model class

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name