PHP Class common\models\Purchase

Inheritance: extends yii\db\ActiveRecord
Show file Open project: daixianceng/xiaoego.com Class Usage Examples

Public Methods

Method Description
attributeLabels ( )
behaviors ( )
clear ( $storeId )
getGoods ( ) : ActiveQuery
getIsExpired ( ) : boolean 获取该商品是否失效
getStore ( ) : ActiveQuery
getVolumeByStoreId ( $storeId )
hasGoods ( $id )
rules ( )
tableName ( )

Method Details

attributeLabels() public method

public attributeLabels ( )

behaviors() public method

public behaviors ( )

clear() public static method

public static clear ( $storeId )

getGoods() public method

public getGoods ( ) : ActiveQuery
return yii\db\ActiveQuery

getIsExpired() public method

获取该商品是否失效
public getIsExpired ( ) : boolean
return boolean

getStore() public method

public getStore ( ) : ActiveQuery
return yii\db\ActiveQuery

getVolumeByStoreId() public static method

public static getVolumeByStoreId ( $storeId )

hasGoods() public static method

public static hasGoods ( $id )

rules() public method

public rules ( )

tableName() public static method

public static tableName ( )