PHP 클래스 Item

상속: extends BaseItem
파일 보기 프로젝트 열기: yinhe/yincart 1 사용 예제들

공개 메소드들

메소드 설명
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