PHP Class Block, gxc-cms

ファイルを表示 Open project: nganhtuan63/gxc-cms Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
getLabel ( $obj, $attr )
model ( $className = __CLASS__ ) : Block 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.
suggestBlocks ( )
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 ( )

getLabel() public static method

public static getLabel ( $obj, $attr )

model() public static method

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

suggestBlocks() public static method

public static suggestBlocks ( )

tableName() public method

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