PHP Class ItemProp

The followings are the available columns in table 'item_prop':
Inheritance: extends YActiveRecord
Datei anzeigen Open project: yinhe/yincart Class Usage Examples

Public Methods

Method Description
attrCategory ( integer $id, boolean $returnAttr = false, null $index = null, integer $level = 1 ) : mixed 分类属性
attributeLabels ( ) : array
getChildsId ( type $id ) : type 获取指定id的所有后代,不含指定id
getMeChildsId ( mixed $id ) : array 获得指定id的所有后代,含指定id
getPropArrayValues ( )
getPropCheckBoxListValues ( $label = '', $selected = '' )
getPropOptionValues ( $label = '', $selected = '' )
getPropTextFieldValues ( $label = '', $value = '' )
getPropValues ( )
model ( string $className = __CLASS__ ) : ItemProp 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.
setPropValues ( $PropValues ) * 循环遍历SpecValue[spec_value][]插入数据库 群Zend Framework(95700611) zwp(279795206)友情提示
tableName ( ) : string

Method Details

attrCategory() public method

分类属性
public attrCategory ( integer $id, boolean $returnAttr = false, null $index = null, integer $level = 1 ) : mixed
$id integer 分类ID
$returnAttr boolean false则返回分类列表,true则返回该对象的分类值
$index null 结合$returnAttr使用。如果$returnAttr为true, 若指定$index,则返回指定$index对应的值,否则返回当前对象对应的分类值
$level integer 层级
return mixed

attributeLabels() public method

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

getChildsId() public static method

获取指定id的所有后代,不含指定id
public static getChildsId ( type $id ) : type
$id type 指定id, 有可能是array
return type 所有后代id的一维数组

getMeChildsId() public method

获得指定id的所有后代,含指定id
public getMeChildsId ( mixed $id ) : array
$id mixed 指定id, 有可能是array
return array 所有后代的和指定id的一维数组

getPropArrayValues() public method

public getPropArrayValues ( )

getPropCheckBoxListValues() public method

public getPropCheckBoxListValues ( $label = '', $selected = '' )

getPropOptionValues() public method

public getPropOptionValues ( $label = '', $selected = '' )

getPropTextFieldValues() public method

public getPropTextFieldValues ( $label = '', $value = '' )

getPropValues() public method

public getPropValues ( )

model() public static method

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

setPropValues() public method

* 循环遍历SpecValue[spec_value][]插入数据库 群Zend Framework(95700611) zwp(279795206)友情提示
public setPropValues ( $PropValues )

tableName() public method

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