Method | Description | |
---|---|---|
afterFind ( ) | ||
attributeLabels ( ) : array | ||
beforeSave ( ) : boolean | ||
decreaseQuantity ( ) | ||
getCouponByCode ( $code ) : mixed | ||
getCouponErrors ( integer $price ) : array | ||
getDiscount ( $price ) : float | ||
getIsAvailable ( integer $price ) : boolean | ||
getNumberUsagesByUser ( $userId ) : string | ||
model ( string $className = __CLASS__ ) : Coupon | Returns the static model of the specified AR class. | |
relations ( ) : array | ||
rules ( ) : array | ||
scopes ( ) : array | ||
search ( ) : CActiveDataProvider | ||
tableName ( ) : string |
public attributeLabels ( ) : array | ||
return | array | customized attribute labels (name=>label) |
public getCouponErrors ( integer $price ) : array | ||
$price | integer | |
return | array |
public getIsAvailable ( integer $price ) : boolean | ||
$price | integer | |
return | boolean |
public getNumberUsagesByUser ( $userId ) : string | ||
return | string |