Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс DiscountCouponsManagerBase
+ Граф наследования:DiscountCouponsManagerBase:

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

static getRegistryType ()
 
static initUseMode ($mode=self::MODE_CLIENT, $params=array())
 
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=array(), $clearStorage=false)
 
static reInit ($mode=self::MODE_CLIENT, $params=array(), $clearStorage=false)
 
static isEntered ()
 
static add ($coupon)
 
static delete ($coupon)
 
static clear ($clearStorage=false)
 
static migrateStorage ($oldUser)
 
static get ($extMode=true, $filter=array(), $show=false, $final=false)
 
static getForApply ($filter, $product=array(), $uniqueDiscount=false)
 
static getOrderedCoupons ($extMode=true, $filter=array())
 
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 getSession ()
 
static checkBaseData (&$data, $checkCode=self::COUPON_CHECK_OK)
 
static checkFullData (&$data, $mode=self::COUPON_MODE_FULL, $checkCode=self::COUPON_CHECK_OK, $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 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 $coupons = array()
 
static $init = false
 
static $useMode = self::MODE_CLIENT
 
static $errors = array()
 
static $onlySaleDiscount = null
 
static $userId = null
 
static $couponProviders = array()
 
static $couponTypes = array()
 
static $couponIndex = 0
 
static $orderId = null
 
static $allowedSave = false
 
static $checkActivity = true
 
static $useOrderCoupons = true
 
static $clearFields
 
static $timeFields
 
static $allowCouponStorage = 0
 

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

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

Методы

◆ add()

static add (   $coupon)
static

Add coupon in manager.

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

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

◆ checkBaseData()

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

Checks the basic coupon fields.

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

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

◆ checkFullData()

static checkFullData ( $data,
  $mode = self::COUPON_MODE_FULL,
  $checkCode = self::COUPON_CHECK_OK,
  $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 строка 1665

◆ clear()

static clear (   $clearStorage = false)
static

Clear coupon storage.

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

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

◆ clearApply()

static clearApply (   $all = true)
static

Clear applied data for coupons.

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

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

◆ clearApplyCoupon()

static clearApplyCoupon (   $coupon)
static

Clear applied data for coupon.

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

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

◆ clearErrors()

static clearErrors ( )
static

Clear errors list.

Возвращает
void

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

◆ clearSavedCoupons()

static clearSavedCoupons (   $coupon)
staticprotected

Clear order saved coupons.

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

◆ clearSystemData()

static clearSystemData ( $coupons)
staticprotected

Clear system data.

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

◆ convertOldFilterFields()

static convertOldFilterFields ( array &  $filter)
staticprotected

Convert old filter fields.

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

◆ createApplyFields()

static createApplyFields ( $couponData)
staticprotected

Create applied fields.

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

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

◆ delete()

static delete (   $coupon)
static

Delete coupon from manager.

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

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

◆ deleteApplyByProduct()

static deleteApplyByProduct (   $product)
static

Clear applied information for product.

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

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

◆ eraseAppliedCoupons()

static eraseAppliedCoupons (   $result)
staticprotected

Clear applied coupons.

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

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

◆ fillCouponHints()

static fillCouponHints ( $coupons)
staticprotected

Fill coupon hints.

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

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

◆ fillUserInfo()

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

Fill client information.

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

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

◆ filterArrayCoupons()

static filterArrayCoupons ( $coupons,
  $filter 
)
staticprotected

Filter coupons list.

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

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

◆ filterCoupons()

static filterCoupons (   $filter,
  $getId = false 
)
staticprotected

Filter manager coupons list.

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

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

◆ filterFreezeCoupons()

static filterFreezeCoupons (   $coupon)
staticprotected

Filter for remove freeze coupons.

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

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

◆ filterFreezeOrderedCoupons()

static filterFreezeOrderedCoupons (   $coupon)
staticprotected

Filter for remove freeze ordered coupons.

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

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

◆ filterOneRowCoupons()

static filterOneRowCoupons (   $coupon,
  $hash 
)
staticprotected

Clear one row coupons.

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

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

◆ filterOrderCoupons()

static filterOrderCoupons (   $coupon)
static

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

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

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

◆ filterUniqueDiscount()

static filterUniqueDiscount ( $coupons)
staticprotected

Returns one coupon for one discount.

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

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

◆ filterUnknownCoupons()

static filterUnknownCoupons (   $coupon)
staticprotected

Filter for remove unknown coupons.

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

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

◆ finalApply()

static finalApply ( )
static

Change status coupons for save.

Возвращает
void

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

◆ freezeCouponStorage()

static freezeCouponStorage ( )
static

Disable get coupons for calculate discounts.

Возвращает
void

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

◆ get()

static get (   $extMode = true,
  $filter = array(),
  $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 строка 804

◆ getCatalogProductHash()

static getCatalogProductHash (   $product)
staticprotected

Create catalog product hash for old custom providers.

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

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

◆ getCheckCodeList()

static getCheckCodeList (   $extendedMode = false)
static

Returns check code list.

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

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

◆ getCheckCodeMessage()

static getCheckCodeMessage (   $code)
static

Returns description of check code.

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

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

◆ getData()

static getData (   $coupon,
  $checkCoupon = true 
)
static

Returns information about coupon.

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

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

◆ getEmptyCouponFields()

static getEmptyCouponFields (   $coupon)
staticprotected

Returns empty coupon (default field values).

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

◆ getEnteredCoupon()

static getEnteredCoupon (   $coupon,
  $clearData = false 
)
static

Returns entered coupon data.

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

@noinspection PhpUndefinedMethodInspection

@noinspection PhpUndefinedMethodInspection

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

◆ getErrors()

static getErrors ( )
static

Returns error list.

Возвращает
array

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

◆ getForApply()

static getForApply (   $filter,
  $product = array(),
  $uniqueDiscount = false 
)
static

Get coupons list for apply.

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

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

◆ getOrderedCoupons()

static getOrderedCoupons (   $extMode = true,
  $filter = array() 
)
static

Returns coupons for current order.

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

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

◆ getOrderId()

static getOrderId ( )
static

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

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

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

◆ getProductHash()

static getProductHash (   $product)
staticprotected

Create product hash.

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

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

◆ getRegistryType()

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

NotImplementedException

Возвращает
string

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

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

◆ getSession()

static getSession ( )
staticprotected

Session object.

If session is not accessible, returns null and add error.

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

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

◆ getStatusList()

static getStatusList (   $extendedMode = false)
static

Returns coupon status list.

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

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

◆ getUseMode()

static getUseMode ( )
static

Returns use mode.

Возвращает
int

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

◆ getUserId()

static getUserId ( )
static

Returns user id.

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

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

◆ init()

static init (   $mode = self::MODE_CLIENT,
  $params = array(),
  $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 строка 443

◆ initUseDiscount()

static initUseDiscount ( )
staticprotected

Initialization coupons providers.

Возвращает
void

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

◆ initUseMode()

static initUseMode (   $mode = self::MODE_CLIENT,
  $params = array() 
)
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 строка 103

◆ initUserId()

static initUserId ( )
staticprotected

Get user by fuser id.

Возвращает
void

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

◆ isEntered()

static isEntered ( )
static

Returns true, if coupons were are entered.

Возвращает
bool

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

◆ isExist()

static isExist (   $coupon)
static

Checks if a coupon exists.

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

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

◆ isFrozenCouponStorage()

static isFrozenCouponStorage ( )
static

Returns true, if disallow get coupons for calculate discounts.

Возвращает
bool

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

◆ isSuccess()

static isSuccess ( )
static

Returns a sign of success.

Возвращает
bool

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

◆ isUsedOrderCouponsForApply()

static isUsedOrderCouponsForApply ( )
static

Returns use ordered coupons for apply.

Возвращает
bool

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

◆ logout()

static logout ( )
static

Clear coupons storage with logout from public.

Возвращает
void

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

◆ migrateStorage()

static migrateStorage (   $oldUser)
static

Change coupons owner in manager or order mode.

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

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

◆ reInit()

static reInit (   $mode = self::MODE_CLIENT,
  $params = array(),
  $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 строка 505

◆ saveApplied()

static saveApplied ( )
static

Save applied coupons.

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

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

◆ saveToStorage()

static saveToStorage ( )
staticprotected

Save current coupons to session storage.

Возвращает
void

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

◆ setApply()

static setApply (   $coupon,
  $data 
)
static

Set applied information for basket.

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

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

◆ setApplyByProduct()

static 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 строка 1090

◆ setCoupons()

static setCoupons (   $couponsList,
  $checkCoupons = true 
)
staticprotected

Set coupons list.

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

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

◆ setUseOnlySaleDiscounts()

static setUseOnlySaleDiscounts (   $mode)
static

Reload discount coupons providers.

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

◆ unFreezeCouponStorage()

static unFreezeCouponStorage ( )
static

Enable get coupons for calculate discounts.

Возвращает
void

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

◆ usedByClient()

static usedByClient ( )
static

Verifies that the client mode being used.

Возвращает
bool

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

◆ usedByExternal()

static usedByExternal ( )
static

Verifies that the external order mode being used.

Возвращает
bool

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

◆ usedByManager()

static usedByManager ( )
static

Verifies that the manager mode being used.

Возвращает
bool

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

◆ useSavedCouponsForApply()

static useSavedCouponsForApply (   $state)
static

Set use ordered coupons for apply.

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

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

◆ verifyApplied()

static verifyApplied ( )
static

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

Возвращает
Result

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

Данные класса

◆ $allowCouponStorage

$allowCouponStorage = 0
staticprotected

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

◆ $allowedSave

$allowedSave = false
staticprotected

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

◆ $checkActivity

$checkActivity = true
staticprotected

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

◆ $clearFields

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

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

◆ $couponIndex

$couponIndex = 0
staticprotected

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

◆ $couponProviders

$couponProviders = array()
staticprotected

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

◆ $coupons

$coupons = array()
staticprotected

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

◆ $couponTypes

$couponTypes = array()
staticprotected

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

◆ $errors

$errors = array()
staticprotected

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

◆ $init

$init = false
staticprotected

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

◆ $onlySaleDiscount

$onlySaleDiscount = null
staticprotected

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

◆ $orderId

$orderId = null
staticprotected

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

◆ $timeFields

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

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

◆ $useMode

$useMode = self::MODE_CLIENT
staticprotected

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

◆ $useOrderCoupons

$useOrderCoupons = true
staticprotected

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

◆ $userId

$userId = null
staticprotected

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

◆ COUPON_CHECK_ALREADY_MAX_USED

const COUPON_CHECK_ALREADY_MAX_USED = 0x0100

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

◆ COUPON_CHECK_BAD_USER_ID

const COUPON_CHECK_BAD_USER_ID = 0x0080

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

◆ COUPON_CHECK_CORRUPT_DATA

const COUPON_CHECK_CORRUPT_DATA = 0x0400

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

◆ COUPON_CHECK_NO_ACTIVE

const COUPON_CHECK_NO_ACTIVE = 0x0002

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

◆ COUPON_CHECK_NO_ACTIVE_DISCOUNT

const COUPON_CHECK_NO_ACTIVE_DISCOUNT = 0x0010

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

◆ COUPON_CHECK_NOT_APPLIED

const COUPON_CHECK_NOT_APPLIED = 0x0800

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

◆ COUPON_CHECK_NOT_FOUND

const COUPON_CHECK_NOT_FOUND = 0x0001

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

◆ COUPON_CHECK_OK

const COUPON_CHECK_OK = 0x0000

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

◆ COUPON_CHECK_RANGE_ACTIVE_FROM

const COUPON_CHECK_RANGE_ACTIVE_FROM = 0x0004

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

◆ COUPON_CHECK_RANGE_ACTIVE_FROM_DISCOUNT

const COUPON_CHECK_RANGE_ACTIVE_FROM_DISCOUNT = 0x0020

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

◆ COUPON_CHECK_RANGE_ACTIVE_TO

const COUPON_CHECK_RANGE_ACTIVE_TO = 0x0008

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

◆ COUPON_CHECK_RANGE_ACTIVE_TO_DISCOUNT

const COUPON_CHECK_RANGE_ACTIVE_TO_DISCOUNT = 0x0040

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

◆ COUPON_CHECK_UNKNOWN_TYPE

const COUPON_CHECK_UNKNOWN_TYPE = 0x0200

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

◆ COUPON_MODE_FULL

const COUPON_MODE_FULL = 0x0002

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

◆ COUPON_MODE_SIMPLE

const COUPON_MODE_SIMPLE = 0x0001

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

◆ EVENT_ON_BUILD_COUPON_PROVIDES

const EVENT_ON_BUILD_COUPON_PROVIDES = 'onBuildCouponProviders'

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

◆ EVENT_ON_COUPON_ADD

const EVENT_ON_COUPON_ADD = 'onManagerCouponAdd'

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

◆ EVENT_ON_COUPON_APPLY

const EVENT_ON_COUPON_APPLY = 'onManagerCouponApply'

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

◆ EVENT_ON_COUPON_APPLY_PRODUCT

const EVENT_ON_COUPON_APPLY_PRODUCT = 'onManagerCouponApplyByProduct'

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

◆ EVENT_ON_COUPON_DELETE

const EVENT_ON_COUPON_DELETE = 'onManagerCouponDelete'

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

◆ EVENT_ON_SAVE_APPLIED_COUPONS

const EVENT_ON_SAVE_APPLIED_COUPONS = 'onManagerSaveApplied'

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

◆ MODE_CLIENT

const MODE_CLIENT = 0x0001

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

◆ MODE_EXTERNAL

const MODE_EXTERNAL = 0x0010

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

◆ MODE_MANAGER

const MODE_MANAGER = 0x0002

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

◆ MODE_ORDER

const MODE_ORDER = 0x0004

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

◆ MODE_SYSTEM

const MODE_SYSTEM = 0x0008

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

◆ STATUS_APPLYED

const STATUS_APPLYED = 0x0004

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

◆ STATUS_ENTERED

const STATUS_ENTERED = 0x0002

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

◆ STATUS_FREEZE

const STATUS_FREEZE = 0x0010

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

◆ STATUS_NOT_APPLYED

const STATUS_NOT_APPLYED = 0x0008

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

◆ STATUS_NOT_FOUND

const STATUS_NOT_FOUND = 0x0001

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

◆ STORAGE_CLIENT_COUPONS

const STORAGE_CLIENT_COUPONS = 'CATALOG_USER_COUPONS'

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

◆ STORAGE_MANAGER_COUPONS

const STORAGE_MANAGER_COUPONS = 'CATALOG_MANAGE_COUPONS'

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