PHP Класс Item

Наследование: extends BaseItem
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

attributeLabels() публичный метод

public attributeLabels ( ) : array
Результат array customized attribute labels (name=>label)

beforeSave() публичный метод

public beforeSave ( )

getBest() публичный метод

public getBest ( )

getBtnList() публичный метод

得到购物收藏按钮
public getBtnList ( ) : type
Результат type

getDiscount() публичный метод

public getDiscount ( )

getHolderJs() публичный метод

得到HolderJs
public getHolderJs ( type $width = '150', type $height = '150', $text = 'No Picture' ) : type
$width type
$height type
Результат type

getHot() публичный метод

public getHot ( )

getListThumb() публичный метод

得到商品列表缩略图
public getListThumb ( ) : type
Результат type

getMainPic() публичный метод

得到商品主图
public getMainPic ( ) : type
Результат type

getMainPicPath() публичный метод

得到商品主图路径
public getMainPicPath ( ) : type
Результат type

getMainPicUrl() публичный метод

得到商品主图Url地址
public getMainPicUrl ( ) : type
Результат type

getNew() публичный метод

public getNew ( )

getPromote() публичный метод

public getPromote ( )

getRecentThumb() публичный метод

得到最近商品缩略图
public getRecentThumb ( ) : type
Результат type

getRecommendThumb() публичный метод

得到商品推荐缩略图
public getRecommendThumb ( ) : type
Результат type

getShow() публичный метод

public getShow ( )

getSmallThumb() публичный метод

得到商品小图,显示于购物车中
public getSmallThumb ( ) : type
Результат type

getTitle() публичный метод

得到商品标题
public getTitle ( ) : type
Результат type

getUrl() публичный метод

得到商品URL地址
public getUrl ( ) : string
Результат string the URL that shows the detail of the item

model() публичный статический метод

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : Item
$className string active record class name.
Результат Item the static model class

relations() публичный метод

public relations ( ) : array
Результат array relational rules.

rules() публичный метод

public rules ( ) : array
Результат array validation rules for model attributes.

tableName() публичный метод

public tableName ( ) : string
Результат string the associated database table name