1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс DiscountCouponsManagerBase
Граф наследования:DiscountCouponsManagerBase:
DiscountCouponsManager

Открытые статические члены

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 = []

Подробное описание

См. определение в файле discountcouponsmanagerbase.php строка 12

Методы

◆ add()

add ( $coupon)
static

Add coupon in manager.

Аргументы
string$couponAdded coupon.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 590

◆ checkBaseData()

checkBaseData ( & $data,
$checkCode = self::COUPON_CHECK_OK )
staticprotected

Checks the basic coupon fields.

Аргументы
array&$dataCoupon data.
int$checkCodeStart status.
Возвращает
int

См. определение в файле discountcouponsmanagerbase.php строка 1898

◆ checkFullData()

checkFullData ( & $data,
$mode,
$checkCode,
$currentTimestamp )
staticprotected

Checks the extended coupon fields.

Аргументы
array&$dataCoupon data.
int$modeCoupon mode (full or simple).
int$checkCodeStart check status.
int$currentTimestampCurrent time.
Возвращает
int

См. определение в файле discountcouponsmanagerbase.php строка 2005

◆ clear()

clear ( $clearStorage = false)
static

Clear coupon storage.

Аргументы
bool$clearStorageClear coupon session storage.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 703

◆ clearApply()

clearApply ( $all = true)
static

Clear applied data for coupons.

Аргументы
bool$allClear for coupons or not saved.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 1545

◆ clearApplyCoupon()

clearApplyCoupon ( $coupon)
static

Clear applied data for coupon.

Аргументы
string$couponCoupon.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 1507

◆ clearErrors()

clearErrors ( )
static

Clear errors list.

Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 311

◆ clearSavedCoupons()

clearSavedCoupons ( $coupon)
staticprotected

Clear order saved coupons.

См. определение в файле discountcouponsmanagerbase.php строка 2849

◆ clearSystemData()

clearSystemData ( & $coupons)
staticprotected

Clear system data.

См. определение в файле discountcouponsmanagerbase.php строка 2861

◆ convertOldFilterFields()

convertOldFilterFields ( array & $filter)
staticprotected

Convert old filter fields.

См. определение в файле discountcouponsmanagerbase.php строка 2883

◆ createApplyFields()

createApplyFields ( & $couponData)
staticprotected

Create applied fields.

Аргументы
array&$couponDataCoupon data.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2236

◆ delete()

delete ( $coupon)
static

Delete coupon from manager.

Аргументы
string$couponDeleted coupon.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 653

◆ deleteApplyByProduct()

deleteApplyByProduct ( $product)
static

Clear applied information for product.

Аргументы
array$productProduct description.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 1438

◆ eraseAppliedCoupons()

eraseAppliedCoupons ( $result)
staticprotected

Clear applied coupons.

Аргументы
array$resultApplied coupons.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2210

◆ fillCouponHints()

fillCouponHints ( & $coupons)
staticprotected

Fill coupon hints.

Аргументы
array&$couponsCoupons list.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2738

◆ fillUserInfo()

fillUserInfo ( & $result,
$existCoupon,
$checkCode )
staticprotected

Fill client information.

Аргументы
array&$resultCoupon data.
array$existCouponUser data.
int$checkCodeChecked result.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2093

◆ filterArrayCoupons()

filterArrayCoupons ( & $coupons,
$filter )
staticprotected

Filter coupons list.

Аргументы
array&$couponsCoupons list.
array$filterCoupon filter.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2572

◆ filterCoupons()

filterCoupons ( $filter,
$getId = false )
staticprotected

Filter manager coupons list.

Аргументы
array$filterFilter for coupons.
bool$getIdResturn Id or full data.
Возвращает
array

См. определение в файле discountcouponsmanagerbase.php строка 2469

◆ filterFreezeCoupons()

filterFreezeCoupons ( $coupon)
staticprotected

Filter for remove freeze coupons.

Аргументы
array$couponCoupon data.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 2332

◆ filterFreezeOrderedCoupons()

filterFreezeOrderedCoupons ( $coupon)
staticprotected

Filter for remove freeze ordered coupons.

Аргументы
array$couponCoupon data.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 2352

◆ filterLockedCoupons()

filterLockedCoupons ( array & $couponList)
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 2431

◆ filterOneRowCoupons()

filterOneRowCoupons ( $coupon,
$hash )
staticprotected

Clear one row coupons.

Аргументы
array$couponCoupon data.
string$hashProduct hash.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 2391

◆ filterOrderCoupons()

filterOrderCoupons ( $coupon)
static

Returns true if the coupon was used in the order and saved.

Аргументы
array$couponCoupon data.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 1865

◆ filterUniqueDiscount()

filterUniqueDiscount ( & $coupons)
staticprotected

Returns one coupon for one discount.

Аргументы
array&$couponsCoupons list.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2406

◆ filterUnknownCoupons()

filterUnknownCoupons ( $coupon)
staticprotected

Filter for remove unknown coupons.

Аргументы
array$couponCoupon data.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 2316

◆ finalApply()

finalApply ( )
static

Change status coupons for save.

Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 1480

◆ freezeCouponStorage()

freezeCouponStorage ( )
static

Disable get coupons for calculate discounts.

Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 447

◆ get()

get ( $extMode = true,
$filter = [],
$show = false,
$final = false )
static

Get coupons list.

Аргументы
bool$extModeGet full information or coupons only.
array$filterCoupons filter.
bool$showGet for show or apply.
bool$finalChange status ENTERED to NOT_APPLIED.
Возвращает
array|bool

См. определение в файле discountcouponsmanagerbase.php строка 921

◆ getCatalogProductHash()

getCatalogProductHash ( $product)
staticprotected

Create catalog product hash for old custom providers.

Аргументы
array$productProduct description.
Возвращает
string

См. определение в файле discountcouponsmanagerbase.php строка 2703

◆ getCheckCodeList()

getCheckCodeList ( $extendedMode = false)
static

Returns check code list.

Аргументы
bool$extendedModeGet codes or codes with description.
Возвращает
array

См. определение в файле discountcouponsmanagerbase.php строка 351

◆ getCheckCodeMessage()

getCheckCodeMessage ( $code)
static

Returns description of check code.

Аргументы
int$codeCode value.
Возвращает
string|null

См. определение в файле discountcouponsmanagerbase.php строка 396

◆ getData()

getData ( $coupon,
$checkCoupon = true )
static

Returns information about coupon.

Аргументы
string$couponCoupon for search.
bool$checkCouponCheck coupon data.
Возвращает
array|false

См. определение в файле discountcouponsmanagerbase.php строка 1588

◆ getEmptyCouponFields()

getEmptyCouponFields ( $coupon)
staticprotected

Returns empty coupon (default field values).

См. определение в файле discountcouponsmanagerbase.php строка 2910

◆ getEnteredCoupon()

getEnteredCoupon ( $coupon,
$clearData = false )
static

Returns entered coupon data.

Аргументы
string$couponCoupon code.
bool$clearDataClear data for save order coupon.
Возвращает
bool|array

См. определение в файле discountcouponsmanagerbase.php строка 1768

◆ getErrors()

getErrors ( )
static

Returns error list.

Возвращает
array

См. определение в файле discountcouponsmanagerbase.php строка 301

◆ getForApply()

getForApply ( $filter,
$product = [],
$uniqueDiscount = false )
static

Get coupons list for apply.

Аргументы
array$filterCoupons filter.
array$productProduct description.
bool$uniqueDiscountGet one coupon for discount.
Возвращает
array|bool

См. определение в файле discountcouponsmanagerbase.php строка 986

◆ getOrderedCoupons()

getOrderedCoupons ( $extMode = true,
$filter = [] )
static

Returns coupons for current order.

Аргументы
bool$extModeGet full information or coupons only.
array$filterCoupons filter.
Возвращает
array

См. определение в файле discountcouponsmanagerbase.php строка 1048

◆ getOrderId()

getOrderId ( )
static

Returns order id, if current use mode self::MODE_ORDER.

Возвращает
null|int

См. определение в файле discountcouponsmanagerbase.php строка 260

◆ getProductHash()

getProductHash ( $product)
staticprotected

Create product hash.

Аргументы
array$productProduct description.
Возвращает
string

См. определение в файле discountcouponsmanagerbase.php строка 2672

◆ getRegistryType()

getRegistryType ( )
static
Исключения
Main

NotImplementedException

Возвращает
string

Переопределяется в DiscountCouponsManager.

См. определение в файле discountcouponsmanagerbase.php строка 91

◆ getStatusList()

getStatusList ( $extendedMode = false)
static

Returns coupon status list.

Аргументы
bool$extendedModeGet status Ids or Ids with description.
Возвращает
array

См. определение в файле discountcouponsmanagerbase.php строка 322

◆ getUseMode()

getUseMode ( )
static

Returns use mode.

Возвращает
int

См. определение в файле discountcouponsmanagerbase.php строка 204

◆ getUserId()

getUserId ( )
static

Returns user id.

Возвращает
null|int

См. определение в файле discountcouponsmanagerbase.php строка 244

◆ init()

init ( $mode = self::MODE_CLIENT,
$params = [],
$clearStorage = false )
static

Initialization coupon manager.

Аргументы
int$modeDiscount manager mode.
array$paramsInitial params (userId, orderId, oldUserId) keys are case-sensitive:
  • int userId Order owner (for MODE_MANAGER or MODE_ORDER only)
  • int orderId Edit order id (for MODE_ORDER only(!))
  • int oldUserId Old order owner (for MODE_MANAGER or MODE_ORDER only)
.
bool$clearStorageClear coupon session storage.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 476

◆ initUseDiscount()

initUseDiscount ( )
staticprotected

Initialization coupons providers.

Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2299

◆ initUseMode()

initUseMode ( $mode = self::MODE_CLIENT,
$params = [] )
static

Init use mode and user id.

Аргументы
int$modeDiscount manager mode.
array$paramsInitial params (userId, orderId, oldUserId) keys are case-sensitive:
  • int userId Order owner (for MODE_MANAGER or MODE_ORDER only)
  • int orderId Edit order id (for MODE_ORDER only(!))
  • int oldUserId Old order owner (for MODE_MANAGER or MODE_ORDER only)
.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 109

◆ initUserId()

initUserId ( )
staticprotected

Get user by fuser id.

Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2116

◆ isEntered()

isEntered ( )
static

Returns true, if coupons were are entered.

Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 579

◆ isExist()

isExist ( $coupon)
static

Checks if a coupon exists.

Аргументы
string$couponCoupon for check.
Возвращает
array|bool

См. определение в файле discountcouponsmanagerbase.php строка 1701

◆ isFrozenCouponStorage()

isFrozenCouponStorage ( )
static

Returns true, if disallow get coupons for calculate discounts.

Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 457

◆ isSuccess()

isSuccess ( )
static

Returns a sign of success.

Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 291

◆ isUsedOrderCouponsForApply()

isUsedOrderCouponsForApply ( )
static

Returns use ordered coupons for apply.

Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 427

◆ logout()

logout ( )
static

Clear coupons storage with logout from public.

Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 1843

◆ migrateStorage()

migrateStorage ( $oldUser)
static

Change coupons owner in manager or order mode.

Аргументы
int$oldUserOld user id.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 780

◆ needLockCoupon()

needLockCoupon ( string $coupon)
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 2947

◆ reInit()

reInit ( $mode = self::MODE_CLIENT,
$params = [],
$clearStorage = false )
static

Unconditional reinitialization coupon manager.

Аргументы
int$modeDiscount manager mode.
array$paramsInitial params (userId, orderId, oldUserId) keys are case-sensitive:
  • int userId Order owner (for MODE_MANAGER or MODE_ORDER only)
  • int orderId Edit order id (for MODE_ORDER only(!))
  • int oldUserId Old order owner (for MODE_MANAGER or MODE_ORDER only)
.
bool$clearStorageClear coupon session storage.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 564

◆ saveApplied()

saveApplied ( )
static

Save applied coupons.

Возвращает
Main\Result

См. определение в файле discountcouponsmanagerbase.php строка 1146

◆ saveToStorage()

saveToStorage ( )
staticprotected

Save current coupons to session storage.

Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2168

◆ setApply()

setApply ( $coupon,
$data )
static

Set applied information for basket.

Аргументы
string$couponCoupon.
array$dataApply data (basket, delivery).
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 1355

◆ setApplyByProduct()

setApplyByProduct ( $product,
$couponsList,
$oldMode = false )
static

Set applied information for product.

Аргументы
array$productProduct description.
array$couponsListCoupons for product.
bool$oldModeCompatibility mode with old custom providers.
Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 1272

◆ setCoupons()

setCoupons ( $couponsList,
$checkCoupons = true )
staticprotected

Set coupons list.

Аргументы
array$couponsListCoupons list.
bool$checkCouponsFind coupons.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 2786

◆ setUseOnlySaleDiscounts()

setUseOnlySaleDiscounts ( $mode)
static

Reload discount coupons providers.

См. определение в файле discountcouponsmanagerbase.php строка 1877

◆ unFreezeCouponStorage()

unFreezeCouponStorage ( )
static

Enable get coupons for calculate discounts.

Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 437

◆ usedByClient()

usedByClient ( )
static

Verifies that the client mode being used.

Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 214

◆ usedByExternal()

usedByExternal ( )
static

Verifies that the external order mode being used.

Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 234

◆ usedByManager()

usedByManager ( )
static

Verifies that the manager mode being used.

Возвращает
bool

См. определение в файле discountcouponsmanagerbase.php строка 224

◆ useSavedCouponsForApply()

useSavedCouponsForApply ( $state)
static

Set use ordered coupons for apply.

Аргументы
bool$stateUse state.
Возвращает
void

См. определение в файле discountcouponsmanagerbase.php строка 413

◆ verifyApplied()

verifyApplied ( )
static

Verifies the current status of new applied coupons. Used before order save.

Возвращает
Result

См. определение в файле discountcouponsmanagerbase.php строка 1092

Поля

◆ $allowCouponStorage

int $allowCouponStorage = 0
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 83

◆ $allowedSave

bool $allowedSave = false
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 63

◆ $checkActivity

bool $checkActivity = true
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 64

◆ $clearFields

array $clearFields
staticprotected
Инициализатор
= [
'STATUS',
'CHECK_CODE',
'DISCOUNT_NAME',
'DISCOUNT_ACTIVE',
'SAVED',
'BASKET',
'DELIVERY',
]

См. определение в файле discountcouponsmanagerbase.php строка 67

◆ $couponIndex

int $couponIndex = 0
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 61

◆ $couponProviders

array $couponProviders = []
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 59

◆ $coupons

array $coupons = []
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 53

◆ $couponTypes

array $couponTypes = []
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 60

◆ $errors

array $errors = []
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 56

◆ $init

bool $init = false
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 54

◆ $lockedCoupons

array $lockedCoupons = []
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 85

◆ $onlySaleDiscount

bool $onlySaleDiscount = null
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 57

◆ $orderId

int $orderId = null
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 62

◆ $timeFields

array $timeFields
staticprotected
Инициализатор
= [
'DISCOUNT_ACTIVE_FROM',
'DISCOUNT_ACTIVE_TO',
'ACTIVE_FROM',
'ACTIVE_TO',
]

См. определение в файле discountcouponsmanagerbase.php строка 76

◆ $useMode

int $useMode = self::MODE_CLIENT
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 55

◆ $useOrderCoupons

bool $useOrderCoupons = true
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 65

◆ $userId

int $userId = null
staticprotected

См. определение в файле discountcouponsmanagerbase.php строка 58

◆ COUPON_CHECK_ALREADY_MAX_USED

const COUPON_CHECK_ALREADY_MAX_USED = 0x0100

См. определение в файле discountcouponsmanagerbase.php строка 35

◆ COUPON_CHECK_BAD_USER_ID

const COUPON_CHECK_BAD_USER_ID = 0x0080

См. определение в файле discountcouponsmanagerbase.php строка 34

◆ COUPON_CHECK_CORRUPT_DATA

const COUPON_CHECK_CORRUPT_DATA = 0x0400

См. определение в файле discountcouponsmanagerbase.php строка 37

◆ COUPON_CHECK_NO_ACTIVE

const COUPON_CHECK_NO_ACTIVE = 0x0002

См. определение в файле discountcouponsmanagerbase.php строка 28

◆ COUPON_CHECK_NO_ACTIVE_DISCOUNT

const COUPON_CHECK_NO_ACTIVE_DISCOUNT = 0x0010

См. определение в файле discountcouponsmanagerbase.php строка 31

◆ COUPON_CHECK_NOT_APPLIED

const COUPON_CHECK_NOT_APPLIED = 0x0800

См. определение в файле discountcouponsmanagerbase.php строка 38

◆ COUPON_CHECK_NOT_FOUND

const COUPON_CHECK_NOT_FOUND = 0x0001

См. определение в файле discountcouponsmanagerbase.php строка 27

◆ COUPON_CHECK_OK

const COUPON_CHECK_OK = 0x0000

См. определение в файле discountcouponsmanagerbase.php строка 26

◆ COUPON_CHECK_RANGE_ACTIVE_FROM

const COUPON_CHECK_RANGE_ACTIVE_FROM = 0x0004

См. определение в файле discountcouponsmanagerbase.php строка 29

◆ COUPON_CHECK_RANGE_ACTIVE_FROM_DISCOUNT

const COUPON_CHECK_RANGE_ACTIVE_FROM_DISCOUNT = 0x0020

См. определение в файле discountcouponsmanagerbase.php строка 32

◆ COUPON_CHECK_RANGE_ACTIVE_TO

const COUPON_CHECK_RANGE_ACTIVE_TO = 0x0008

См. определение в файле discountcouponsmanagerbase.php строка 30

◆ COUPON_CHECK_RANGE_ACTIVE_TO_DISCOUNT

const COUPON_CHECK_RANGE_ACTIVE_TO_DISCOUNT = 0x0040

См. определение в файле discountcouponsmanagerbase.php строка 33

◆ COUPON_CHECK_UNKNOWN_TYPE

const COUPON_CHECK_UNKNOWN_TYPE = 0x0200

См. определение в файле discountcouponsmanagerbase.php строка 36

◆ COUPON_MODE_FULL

const COUPON_MODE_FULL = 0x0002

См. определение в файле discountcouponsmanagerbase.php строка 41

◆ COUPON_MODE_SIMPLE

const COUPON_MODE_SIMPLE = 0x0001

См. определение в файле discountcouponsmanagerbase.php строка 40

◆ EVENT_ON_BUILD_COUPON_PROVIDES

const EVENT_ON_BUILD_COUPON_PROVIDES = 'onBuildCouponProviders'

См. определение в файле discountcouponsmanagerbase.php строка 43

◆ EVENT_ON_COUPON_ADD

const EVENT_ON_COUPON_ADD = 'onManagerCouponAdd'

См. определение в файле discountcouponsmanagerbase.php строка 45

◆ EVENT_ON_COUPON_APPLY

const EVENT_ON_COUPON_APPLY = 'onManagerCouponApply'

См. определение в файле discountcouponsmanagerbase.php строка 48

◆ EVENT_ON_COUPON_APPLY_PRODUCT

const EVENT_ON_COUPON_APPLY_PRODUCT = 'onManagerCouponApplyByProduct'

См. определение в файле discountcouponsmanagerbase.php строка 47

◆ EVENT_ON_COUPON_DELETE

const EVENT_ON_COUPON_DELETE = 'onManagerCouponDelete'

См. определение в файле discountcouponsmanagerbase.php строка 46

◆ EVENT_ON_SAVE_APPLIED_COUPONS

const EVENT_ON_SAVE_APPLIED_COUPONS = 'onManagerSaveApplied'

См. определение в файле discountcouponsmanagerbase.php строка 44

◆ MODE_CLIENT

const MODE_CLIENT = 0x0001

См. определение в файле discountcouponsmanagerbase.php строка 14

◆ MODE_EXTERNAL

const MODE_EXTERNAL = 0x0010

См. определение в файле discountcouponsmanagerbase.php строка 18

◆ MODE_MANAGER

const MODE_MANAGER = 0x0002

См. определение в файле discountcouponsmanagerbase.php строка 15

◆ MODE_ORDER

const MODE_ORDER = 0x0004

См. определение в файле discountcouponsmanagerbase.php строка 16

◆ MODE_SYSTEM

const MODE_SYSTEM = 0x0008

См. определение в файле discountcouponsmanagerbase.php строка 17

◆ STATUS_APPLYED

const STATUS_APPLYED = 0x0004

См. определение в файле discountcouponsmanagerbase.php строка 22

◆ STATUS_ENTERED

const STATUS_ENTERED = 0x0002

См. определение в файле discountcouponsmanagerbase.php строка 21

◆ STATUS_FREEZE

const STATUS_FREEZE = 0x0010

См. определение в файле discountcouponsmanagerbase.php строка 24

◆ STATUS_NOT_APPLYED

const STATUS_NOT_APPLYED = 0x0008

См. определение в файле discountcouponsmanagerbase.php строка 23

◆ STATUS_NOT_FOUND

const STATUS_NOT_FOUND = 0x0001

См. определение в файле discountcouponsmanagerbase.php строка 20

◆ STORAGE_CLIENT_COUPONS

const STORAGE_CLIENT_COUPONS = 'CATALOG_USER_COUPONS'

См. определение в файле discountcouponsmanagerbase.php строка 51

◆ STORAGE_MANAGER_COUPONS

const STORAGE_MANAGER_COUPONS = 'CATALOG_MANAGE_COUPONS'

См. определение в файле discountcouponsmanagerbase.php строка 50


Объявления и описания членов класса находятся в файле: