PHP Class ProductToCategory

The followings are the available columns in table 'product_to_category':
Inheritance: extends CActiveRecord
显示文件 Open project: damnpoet/yiicart Class Usage Examples

Public Methods

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

model() public static method

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