PHP Class Item

Inheritance: extends BaseItem
Datei anzeigen Open project: yinhe/yincart Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
beforeSave ( )
getBest ( )
getBtnList ( ) : type 得到购物收藏按钮
getDiscount ( )
getHolderJs ( type $width = '150', type $height = '150', $text = 'No Picture' ) : type 得到HolderJs
getHot ( )
getListThumb ( ) : type 得到商品列表缩略图
getMainPic ( ) : type 得到商品主图
getMainPicPath ( ) : type 得到商品主图路径
getMainPicUrl ( ) : type 得到商品主图Url地址
getNew ( )
getPromote ( )
getRecentThumb ( ) : type 得到最近商品缩略图
getRecommendThumb ( ) : type 得到商品推荐缩略图
getShow ( )
getSmallThumb ( ) : type 得到商品小图,显示于购物车中
getTitle ( ) : type 得到商品标题
getUrl ( ) : string 得到商品URL地址
model ( string $className = __CLASS__ ) : Item 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 ( )

getBest() public method

public getBest ( )

getBtnList() public method

得到购物收藏按钮
public getBtnList ( ) : type
return type

getDiscount() public method

public getDiscount ( )

getHolderJs() public method

得到HolderJs
public getHolderJs ( type $width = '150', type $height = '150', $text = 'No Picture' ) : type
$width type
$height type
return type

getHot() public method

public getHot ( )

getListThumb() public method

得到商品列表缩略图
public getListThumb ( ) : type
return type

getMainPic() public method

得到商品主图
public getMainPic ( ) : type
return type

getMainPicPath() public method

得到商品主图路径
public getMainPicPath ( ) : type
return type

getMainPicUrl() public method

得到商品主图Url地址
public getMainPicUrl ( ) : type
return type

getNew() public method

public getNew ( )

getPromote() public method

public getPromote ( )

getRecentThumb() public method

得到最近商品缩略图
public getRecentThumb ( ) : type
return type

getRecommendThumb() public method

得到商品推荐缩略图
public getRecommendThumb ( ) : type
return type

getShow() public method

public getShow ( )

getSmallThumb() public method

得到商品小图,显示于购物车中
public getSmallThumb ( ) : type
return type

getTitle() public method

得到商品标题
public getTitle ( ) : type
return type

getUrl() public method

得到商品URL地址
public getUrl ( ) : string
return string the URL that shows the detail of the item

model() public static method

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