Метод | Описание | |
---|---|---|
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 | ||
Результат | array | customized attribute labels (name=>label) |
public getCouponErrors ( integer $price ) : array | ||
$price | integer | |
Результат | array |
public getIsAvailable ( integer $price ) : boolean | ||
$price | integer | |
Результат | boolean |
public getNumberUsagesByUser ( $userId ) : string | ||
Результат | string |