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

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

static deleteByOrder ($order)
static getRegistryType ()
static getOrderCouponIterator (array $parameters)
Открытые статические члены унаследованные от OrderDiscountBase
static init ()
static setManagerConfig ($config)
static getManagerConfig ()
static saveCoupon ($coupon)
static calculateApplyCoupons ($module, $discount, $basket, $params)
static roundPrice (array $basketItem, array $roundData=array())
static roundBasket (array $basket, array $roundData=array(), array $orderData=array())
static checkDiscountProvider ($module)
static getEditUrl (array $discount)
static clearCache ()
static loadStoredDataFromDb ($order, $storageType, array $additionalFilter=array())
static loadOrderStoredDataFromDb ($order, $storageType)
static saveOrderStoredData ($order, $storageType, array $data, array $options=array())
static saveStoredDataBlock ($order, $storageType, array $block, array $options=array())
static addResultBlock ($order, array $block)
static updateResultBlock ($order, array $block)
static addRoundBlock ($order, array $block)
static updateRoundBlock ($order, array $block)

Защищенные статические члены

static validateCoupon (array $fields)
static getDiscountIterator (array $parameters)
static isValidCouponTypeInternal ($type)
static getOrderDiscountIterator (array $parameters)
static addOrderDiscountInternal (array $fields)
static checkRequiredOrderDiscountFields (array $fields)
static normalizeOrderDiscountFieldsInternal (array $rawFields)
static calculateOrderDiscountHashInternal (array $fields)
static addOrderCouponInternal (array $fields)
static getOrderDiscountModuleIterator (array $parameters)
static saveOrderDiscountModulesInternal ($orderDiscountId, array $modules)
static getResultIterator (array $parameters)
static getResultDescriptionIterator (array $parameters)
static getResultTableNameInternal ()
static getResultDescriptionTableNameInternal ()
static checkResultTableWhiteList (array $fields)
static checkResultDescriptionTableWhiteList (array $fields)
static addResultInternal (array $fields)
static addResultDescriptionInternal (array $fields)
static updateResultInternal ($id, array $fields)
static updateResultDescriptionInternal ($id, array $fields)
static getRoundResultIterator (array $parameters)
static addRoundResultInternal (array $fields)
static updateRoundResultInternal ($id, array $fields)
static getRoundTableNameInternal ()
static getStorageTypeInternal ($storageType)
static getStoredDataIterator (array $parameters)
static addStoredDataInternal (array $fields)
static updateStoredDataInternal ($id, array $fields)
static getStoredDataTableInternal ()
Защищенные статические члены унаследованные от OrderDiscountBase
static loadOrderDiscountFromDb (array $discountIds, array $discountOrder)
static getDiscountClassName ()
static isNativeModule ($module)
static getDiscountProviderActions ()
static executeDiscountProvider (array $provider, array $data)
static prepareData ($discount)
static fillAbsentDiscountFields (array $fields)
static normalizeDiscountFields (array $rawFields)
static searchDiscount ($hash)
static addCoupon (array $fields)
static addDiscount (array $fields, array $rawFields)
static loadModulesFromDb (array $discountIds)
static prepareDiscountModules (array $discount)
static transferEntityCodeFromInternal (array $row, array $transferList)
static formatBasketRuleResult (array $rule)
static formatSaleRuleResult (array $rule)
static formatSaleItemRuleResult (array $rule)
static fillRuleProductFields (array &$result, array $basketData, $index)
static loadCouponsFromDb ($order)
static getResultEntityInternal ($entity)
static getResultEntityFromInternal ($entity)
static addResultRow (array $fields)
static updateResultRow ($id, array $fields)
static getRoundEntityInternal ($entity)
static getRoundEntityFromInternal ($entity)

Дополнительные унаследованные члены

Поля данных унаследованные от OrderDiscountBase
const EVENT_ON_BUILD_DISCOUNT_PROVIDERS = 'onBuildDiscountProviders'
const ERROR_ID = 'BX_SALE_ORDER_DISCOUNT'
const PROVIDER_ACTION_PREPARE_DISCOUNT = 'prepareData'
const PROVIDER_ACTION_GET_URL = 'getEditUrl'
const PROVIDER_ACTION_APPLY_COUPON = 'calculateApplyCoupons'
const PROVIDER_ACTION_ROUND_ITEM_PRICE = 'roundPrice'
const PROVIDER_ACTION_ROUND_BASKET_PRICES = 'roundBasket'
const STORAGE_TYPE_DISCOUNT_ACTION_DATA = 'ACTION_DATA'
const STORAGE_TYPE_ORDER_CONFIG = 'ORDER_CONFIG'
const STORAGE_TYPE_ROUND_CONFIG = 'ROUND_CONFIG'
const STORAGE_TYPE_BASKET_ITEM = 'BASKET_ITEM'
Статические защищенные данные унаследованные от OrderDiscountBase
static $init = false
static $errors = array()

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

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

Методы

◆ addOrderCouponInternal()

addOrderCouponInternal ( array $fields)
staticprotected

Low-level method add new coupon for order.

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ addOrderDiscountInternal()

addOrderDiscountInternal ( array $fields)
staticprotected

Low-level method add new discount for order.

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ addResultDescriptionInternal()

addResultDescriptionInternal ( array $fields)
staticprotected

Low-level method add new result description for order.

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ addResultInternal()

addResultInternal ( array $fields)
staticprotected

Low-level method add new result discount for order.

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ addRoundResultInternal()

addRoundResultInternal ( array $fields)
staticprotected

Low-level method add new round result for order.

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ addStoredDataInternal()

addStoredDataInternal ( array $fields)
staticprotected

Low-level method add stored data for order.

Аргументы
array$fieldsTablet fields.
Возвращает
Main\Entity\AddResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ calculateOrderDiscountHashInternal()

calculateOrderDiscountHashInternal ( array $fields)
staticprotected

Calculate order discount hash.

Аргументы
array$fieldsDiscount information.
Возвращает
string|null

Переопределяет метод предка OrderDiscountBase.

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

◆ checkRequiredOrderDiscountFields()

checkRequiredOrderDiscountFields ( array $fields)
staticprotected

Returns the list of missing discount fields.

Аргументы
array$fieldsDiscount fields.
Возвращает
array

Переопределяет метод предка OrderDiscountBase.

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

◆ checkResultDescriptionTableWhiteList()

checkResultDescriptionTableWhiteList ( array $fields)
staticprotected

Low-level method returns only those fields that are in the result description table.

Аргументы
array$fields
Возвращает
array|null

Переопределяет метод предка OrderDiscountBase.

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

◆ checkResultTableWhiteList()

checkResultTableWhiteList ( array $fields)
staticprotected

Low-level method returns only those fields that are in the result table.

Аргументы
array$fields
Возвращает
array|null

Переопределяет метод предка OrderDiscountBase.

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

◆ deleteByOrder()

deleteByOrder ( $order)
static

Delete all data by order.

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

Переопределяет метод предка OrderDiscountBase.

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

◆ getDiscountIterator()

getDiscountIterator ( array $parameters)
staticprotected

Discount getList.

Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяет метод предка OrderDiscountBase.

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

◆ getOrderCouponIterator()

getOrderCouponIterator ( array $parameters)
static

Order coupons getList.

Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяет метод предка OrderDiscountBase.

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

◆ getOrderDiscountIterator()

getOrderDiscountIterator ( array $parameters)
staticprotected

Order discount getList.

Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяет метод предка OrderDiscountBase.

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

◆ getOrderDiscountModuleIterator()

getOrderDiscountModuleIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяет метод предка OrderDiscountBase.

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

◆ getRegistryType()

getRegistryType ( )
static

Return parent entity type.

Переопределяет метод предка OrderDiscountBase.

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

◆ getResultDescriptionIterator()

getResultDescriptionIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяет метод предка OrderDiscountBase.

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

◆ getResultDescriptionTableNameInternal()

getResultDescriptionTableNameInternal ( )
staticprotected

Low-level method returns result description table name.

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

Переопределяет метод предка OrderDiscountBase.

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

◆ getResultIterator()

getResultIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяет метод предка OrderDiscountBase.

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

◆ getResultTableNameInternal()

getResultTableNameInternal ( )
staticprotected

Low-level method returns result table name.

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

Переопределяет метод предка OrderDiscountBase.

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

◆ getRoundResultIterator()

getRoundResultIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяет метод предка OrderDiscountBase.

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

◆ getRoundTableNameInternal()

getRoundTableNameInternal ( )
staticprotected

Low-level method returns round result table name.

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

Переопределяет метод предка OrderDiscountBase.

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

◆ getStorageTypeInternal()

getStorageTypeInternal ( $storageType)
staticprotected

Low-level method for convert storage types to internal format.

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

Переопределяет метод предка OrderDiscountBase.

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

◆ getStoredDataIterator()

getStoredDataIterator ( array $parameters)
staticprotected
Аргументы
array$parameters\Bitrix\Main\Entity\DataManager::getList parameters.
Возвращает
Main\DB\Result|null

Переопределяет метод предка OrderDiscountBase.

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

◆ getStoredDataTableInternal()

getStoredDataTableInternal ( )
staticprotected

Low-level method returns the order stored data table name.

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

Переопределяет метод предка OrderDiscountBase.

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

◆ isValidCouponTypeInternal()

isValidCouponTypeInternal ( $type)
staticprotected

Check coupon type.

Аргументы
int$typeCoupon type.
Возвращает
bool

Переопределяет метод предка OrderDiscountBase.

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

◆ normalizeOrderDiscountFieldsInternal()

normalizeOrderDiscountFieldsInternal ( array $rawFields)
staticprotected

Clear raw order discount data.

Аргументы
array$rawFieldsDiscount information.
Возвращает
array|null

Переопределяет метод предка OrderDiscountBase.

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

◆ saveOrderDiscountModulesInternal()

saveOrderDiscountModulesInternal ( $orderDiscountId,
array $modules )
staticprotected

Low-level method save order discount modules.

Аргументы
int$orderDiscountId
array$modules
Возвращает
bool

Переопределяет метод предка OrderDiscountBase.

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

◆ updateResultDescriptionInternal()

updateResultDescriptionInternal ( $id,
array $fields )
staticprotected

Low-level method update result description for order.

Аргументы
int$idPrimary key.
array$fieldsTablet fields.
Возвращает
Main\Entity\UpdateResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ updateResultInternal()

updateResultInternal ( $id,
array $fields )
staticprotected

Low-level method update result discount for order.

Аргументы
int$idPrimary key.
array$fieldsTablet fields.
Возвращает
Main\Entity\UpdateResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ updateRoundResultInternal()

updateRoundResultInternal ( $id,
array $fields )
staticprotected

Low-level method update round result for order.

Аргументы
int$idTablet row id.
array$fieldsTablet fields.
Возвращает
Main\Entity\UpdateResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ updateStoredDataInternal()

updateStoredDataInternal ( $id,
array $fields )
staticprotected

Low-level method update stored data for order.

Аргументы
int$idTablet row id.
array$fieldsTablet fields.
Возвращает
Main\Entity\UpdateResult|null

Переопределяет метод предка OrderDiscountBase.

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

◆ validateCoupon()

validateCoupon ( array $fields)
staticprotected

Validate coupon.

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

Переопределяет метод предка OrderDiscountBase.

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


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