PHP Class Sku

Author: : [email protected]
Inheritance: extends MY_Controller
Exibir arquivo Open project: yinhe/yincart Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
beforeSave ( )
getSkusData ( $item_id )
model ( string $className = __CLASS__ ) : Sku 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 method

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

beforeSave() public method

public beforeSave ( )

getSkusData() public static method

public static getSkusData ( $item_id )

model() public static method

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