PHP Class AttributeValue

Specifies the value of an element
Inheritance: extends AbstractAttributeTypeMixed
Exibir arquivo Open project: yupe/yupe Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
behaviors ( ) : array
column ( $type ) : string
getFilePath ( ) : null | string
model ( string $className = __CLASS__ ) : AttributeValue 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.
store ( $attributeId, $value, Product $product ) : boolean
tableName ( ) : string
value ( null $default = null ) : boolean | float | integer | null | string

Method Details

attributeLabels() public method

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

behaviors() public method

public behaviors ( ) : array
return array

column() public method

public column ( $type ) : string
$type
return string

getFilePath() public method

public getFilePath ( ) : null | string
return null | string

model() public static method

Please note that you should have this exact method in all your CActiveRecord descendants!
public static model ( string $className = __CLASS__ ) : AttributeValue
$className string active record class name.
return AttributeValue 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.

store() public method

public store ( $attributeId, $value, Product $product ) : boolean
$attributeId
$value
$product Product
return boolean

tableName() public method

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

value() public method

public value ( null $default = null ) : boolean | float | integer | null | string
$default null
return boolean | float | integer | null | string