PHP Class Resource, gxc-cms

Inheritance: extends Editable
显示文件 Open project: nganhtuan63/gxc-cms Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
getFullPath ( )
model ( $className = __CLASS__ ) : Resource 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

Protected Methods

Method Description
afterDelete ( )
beforeSave ( )

Method Details

afterDelete() protected method

protected afterDelete ( )

attributeLabels() public method

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

beforeSave() protected method

protected beforeSave ( )

getFullPath() public method

public getFullPath ( )

model() public static method

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