|
static | getRegistryType () |
|
static | initUseMode ($mode=self::MODE_CLIENT, $params=[]) |
|
static | getUseMode () |
|
static | usedByClient () |
|
static | usedByManager () |
|
static | usedByExternal () |
|
static | getUserId () |
|
static | getOrderId () |
|
static | isSuccess () |
|
static | getErrors () |
|
static | clearErrors () |
|
static | getStatusList ($extendedMode=false) |
|
static | getCheckCodeList ($extendedMode=false) |
|
static | getCheckCodeMessage ($code) |
|
static | useSavedCouponsForApply ($state) |
|
static | isUsedOrderCouponsForApply () |
|
static | unFreezeCouponStorage () |
|
static | freezeCouponStorage () |
|
static | isFrozenCouponStorage () |
|
static | init ($mode=self::MODE_CLIENT, $params=[], $clearStorage=false) |
|
static | reInit ($mode=self::MODE_CLIENT, $params=[], $clearStorage=false) |
|
static | isEntered () |
|
static | add ($coupon) |
|
static | delete ($coupon) |
|
static | clear ($clearStorage=false) |
|
static | migrateStorage ($oldUser) |
|
static | get ($extMode=true, $filter=[], $show=false, $final=false) |
|
static | getForApply ($filter, $product=[], $uniqueDiscount=false) |
|
static | getOrderedCoupons ($extMode=true, $filter=[]) |
|
static | verifyApplied () |
|
static | saveApplied () |
|
static | setApplyByProduct ($product, $couponsList, $oldMode=false) |
|
static | setApply ($coupon, $data) |
|
static | deleteApplyByProduct ($product) |
|
static | finalApply () |
|
static | clearApplyCoupon ($coupon) |
|
static | clearApply ($all=true) |
|
static | getData ($coupon, $checkCoupon=true) |
|
static | isExist ($coupon) |
|
static | getEnteredCoupon ($coupon, $clearData=false) |
|
static | logout () |
|
static | filterOrderCoupons ($coupon) |
|
static | setUseOnlySaleDiscounts ($mode) |
|
|
const | MODE_CLIENT = 0x0001 |
|
const | MODE_MANAGER = 0x0002 |
|
const | MODE_ORDER = 0x0004 |
|
const | MODE_SYSTEM = 0x0008 |
|
const | MODE_EXTERNAL = 0x0010 |
|
const | STATUS_NOT_FOUND = 0x0001 |
|
const | STATUS_ENTERED = 0x0002 |
|
const | STATUS_APPLYED = 0x0004 |
|
const | STATUS_NOT_APPLYED = 0x0008 |
|
const | STATUS_FREEZE = 0x0010 |
|
const | COUPON_CHECK_OK = 0x0000 |
|
const | COUPON_CHECK_NOT_FOUND = 0x0001 |
|
const | COUPON_CHECK_NO_ACTIVE = 0x0002 |
|
const | COUPON_CHECK_RANGE_ACTIVE_FROM = 0x0004 |
|
const | COUPON_CHECK_RANGE_ACTIVE_TO = 0x0008 |
|
const | COUPON_CHECK_NO_ACTIVE_DISCOUNT = 0x0010 |
|
const | COUPON_CHECK_RANGE_ACTIVE_FROM_DISCOUNT = 0x0020 |
|
const | COUPON_CHECK_RANGE_ACTIVE_TO_DISCOUNT = 0x0040 |
|
const | COUPON_CHECK_BAD_USER_ID = 0x0080 |
|
const | COUPON_CHECK_ALREADY_MAX_USED = 0x0100 |
|
const | COUPON_CHECK_UNKNOWN_TYPE = 0x0200 |
|
const | COUPON_CHECK_CORRUPT_DATA = 0x0400 |
|
const | COUPON_CHECK_NOT_APPLIED = 0x0800 |
|
const | COUPON_MODE_SIMPLE = 0x0001 |
|
const | COUPON_MODE_FULL = 0x0002 |
|
const | EVENT_ON_BUILD_COUPON_PROVIDES = 'onBuildCouponProviders' |
|
const | EVENT_ON_SAVE_APPLIED_COUPONS = 'onManagerSaveApplied' |
|
const | EVENT_ON_COUPON_ADD = 'onManagerCouponAdd' |
|
const | EVENT_ON_COUPON_DELETE = 'onManagerCouponDelete' |
|
const | EVENT_ON_COUPON_APPLY_PRODUCT = 'onManagerCouponApplyByProduct' |
|
const | EVENT_ON_COUPON_APPLY = 'onManagerCouponApply' |
|
const | STORAGE_MANAGER_COUPONS = 'CATALOG_MANAGE_COUPONS' |
|
const | STORAGE_CLIENT_COUPONS = 'CATALOG_USER_COUPONS' |
|
static | checkBaseData (&$data, $checkCode=self::COUPON_CHECK_OK) |
|
static | checkFullData (&$data, $mode, $checkCode, $currentTimestamp) |
|
static | fillUserInfo (&$result, $existCoupon, $checkCode) |
|
static | initUserId () |
|
static | saveToStorage () |
|
static | eraseAppliedCoupons ($result) |
|
static | createApplyFields (&$couponData) |
|
static | initUseDiscount () |
|
static | filterUnknownCoupons ($coupon) |
|
static | filterFreezeCoupons ($coupon) |
|
static | filterFreezeOrderedCoupons ($coupon) |
|
static | filterOneRowCoupons ($coupon, $hash) |
|
static | filterUniqueDiscount (&$coupons) |
|
static | filterLockedCoupons (array &$couponList) |
|
static | filterCoupons ($filter, $getId=false) |
|
static | filterArrayCoupons (&$coupons, $filter) |
|
static | getProductHash ($product) |
|
static | getCatalogProductHash ($product) |
|
static | fillCouponHints (&$coupons) |
|
static | setCoupons ($couponsList, $checkCoupons=true) |
|
static | clearSavedCoupons ($coupon) |
|
static | clearSystemData (&$coupons) |
|
static | convertOldFilterFields (array &$filter) |
|
static | getEmptyCouponFields ($coupon) |
|
static | needLockCoupon (string $coupon) |
|
static array | $coupons = [] |
|
static bool | $init = false |
|
static int | $useMode = self::MODE_CLIENT |
|
static array | $errors = [] |
|
static bool | $onlySaleDiscount = null |
|
static int | $userId = null |
|
static array | $couponProviders = [] |
|
static array | $couponTypes = [] |
|
static int | $couponIndex = 0 |
|
static int | $orderId = null |
|
static bool | $allowedSave = false |
|
static bool | $checkActivity = true |
|
static bool | $useOrderCoupons = true |
|
static array | $clearFields |
|
static array | $timeFields |
|
static int | $allowCouponStorage = 0 |
|
static array | $lockedCoupons = [] |
|
См. определение в файле discountcouponsmanager.php строка 5