PHP Class AttributeOption, yupe

Inheritance: extends AttributeOptionGen
显示文件 Open project: yupe/yupe Class Usage Examples

Public Methods

Method Description
attributeDescriptions ( ) : array
attributeLabels ( ) : array
behaviors ( ) : array
model ( $className = __CLASS__ ) : Attribute Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
tableName ( ) : string

Method Details

attributeDescriptions() public method

public attributeDescriptions ( ) : array
return array customized attribute descriptions (name=>description)

attributeLabels() public method

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

behaviors() public method

public behaviors ( ) : array
return array

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Attribute
return Attribute the static model class

relations() public method

public relations ( ) : array
return array

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