PHP Class Item

Inheritance: extends BaseItem
Afficher le fichier Open project: yinhe/yincart Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

beforeSave() public méthode

public beforeSave ( )

getBest() public méthode

public getBest ( )

getBtnList() public méthode

得到购物收藏按钮
public getBtnList ( ) : type
Résultat type

getDiscount() public méthode

public getDiscount ( )

getHolderJs() public méthode

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

getHot() public méthode

public getHot ( )

getListThumb() public méthode

得到商品列表缩略图
public getListThumb ( ) : type
Résultat type

getMainPic() public méthode

得到商品主图
public getMainPic ( ) : type
Résultat type

getMainPicPath() public méthode

得到商品主图路径
public getMainPicPath ( ) : type
Résultat type

getMainPicUrl() public méthode

得到商品主图Url地址
public getMainPicUrl ( ) : type
Résultat type

getNew() public méthode

public getNew ( )

getPromote() public méthode

public getPromote ( )

getRecentThumb() public méthode

得到最近商品缩略图
public getRecentThumb ( ) : type
Résultat type

getRecommendThumb() public méthode

得到商品推荐缩略图
public getRecommendThumb ( ) : type
Résultat type

getShow() public méthode

public getShow ( )

getSmallThumb() public méthode

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

getTitle() public méthode

得到商品标题
public getTitle ( ) : type
Résultat type

getUrl() public méthode

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

model() public static méthode

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : Item
$className string active record class name.
Résultat Item the static model class

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name