Voucher serie manager. Manages list of available Vouchers (fetches, deletes, etc.).
◆ __construct()
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::__construct |
( |
| ) |
|
Class constructor, initiates parent constructor (parent::oxBase()).
◆ countVouchers()
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::countVouchers |
( |
| ) |
|
Returns array of vouchers counts.
- Returns
- array
◆ delete()
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::delete |
( |
|
$sOxId = null | ) |
|
Override delete function so we can delete user group and article or category relations first.
- Parameters
-
string | $sOxId | object ID (default null) |
- Returns
- null
◆ deleteVoucherList()
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::deleteVoucherList |
( |
| ) |
|
Deletes assigned voucher list.
◆ getVoucherList()
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::getVoucherList |
( |
| ) |
|
Returns array of a vouchers assigned to this serie.
- Returns
- array
◆ getVoucherStatusByDatetime()
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::getVoucherStatusByDatetime |
( |
|
$sNow = null | ) |
|
Get voucher status base on given date (if nothing was passed, current datetime will be used as a measure).
- Parameters
-
- Returns
- int
◆ setUserGroups()
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::setUserGroups |
( |
| ) |
|
Collects and returns user group list.
- Returns
- object
◆ unsetDiscountRelations()
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::unsetDiscountRelations |
( |
| ) |
|
Removes product or dategory relations.
◆ unsetUserGroups()
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::unsetUserGroups |
( |
| ) |
|
Removes user groups relations.
◆ $_oGroups
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::$_oGroups = null |
|
protected |
◆ $_sClassName
OxidEsales\EshopCommunity\Application\Model\VoucherSerie::$_sClassName = 'oxvoucherserie' |
|
protected |
The documentation for this class was generated from the following file: