PHP Class GiftDAO, ojs

Inheritance: extends PKPGiftDAO
Afficher le fichier Open project: pkp/ojs

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

Constructor
public __construct ( )

_redeemGiftSubscription() public méthode

Redeem a gift subscription for a user.
public _redeemGiftSubscription ( &$gift ) : integer
$gift Gift
Résultat integer Status code indicating whether gift subscription could be redeemed

newDataObject() public méthode

Construct a new data object corresponding to this DAO.
public newDataObject ( ) : Gift
Résultat Gift

redeemGift() public méthode

Redeem a gift for a user.
public redeemGift ( $assocType, $assocId, $userId, $giftId ) : integer
$assocType int
$assocId int
$userId int
$giftId int
Résultat integer Status code indicating whether gift could be redeemed