Метод | Описание | |
---|---|---|
__construct ( ) | Constructor | |
_redeemGiftSubscription ( &$gift ) : integer | Redeem a gift subscription for a user. | |
newDataObject ( ) : Gift | Construct a new data object corresponding to this DAO. | |
redeemGift ( $assocType, $assocId, $userId, $giftId ) : integer | Redeem a gift for a user. |
public _redeemGiftSubscription ( &$gift ) : integer | ||
$gift | Gift | |
Результат | integer | Status code indicating whether gift subscription could be redeemed |
public newDataObject ( ) : Gift | ||
Результат | Gift |
public redeemGift ( $assocType, $assocId, $userId, $giftId ) : integer | ||
$assocType | int | |
$assocId | int | |
$userId | int | |
$giftId | int | |
Результат | integer | Status code indicating whether gift could be redeemed |