|
| static | roundZeroValue ($value) |
| static | roundValue ($value, $currency) |
| static | setUseMode ($mode, array $config=array()) |
| static | getUseMode () |
| static | isCalculateMode () |
| static | isManualMode () |
| static | isMixedMode () |
| static | checkUseMode (array $list) |
| static | getPercentMode () |
| static | getCurrency () |
| static | clearApplyCounter () |
| static | getApplyCounter () |
| static | increaseApplyCounter () |
| static | disableBasketFilter () |
| static | enableBasketFilter () |
| static | usedBasketFilter () |
| static | fillCompatibleFields (array &$order) |
| static | filterBasketForAction (array $item) |
| static | getActionDescription () |
| static | getActionResult () |
| static | setApplyResultMode ($mode) |
| static | getApplyResultMode () |
| static | setApplyResult (array $applyResult) |
| static | setStoredData (array $data) |
| static | getStoredData () |
| static | setActionStoredData (array $data) |
| static | getActionStoredData () |
| static | clearAction () |
| static | applyToBasket (array &$order, array $action, $filter) |
| static | applyCumulativeToBasket (array &$order, array $ranges, array $configuration=array(), $filter=null) |
| static | applyToDelivery (array &$order, array $action) |
| static | applySimpleGift (array &$order, $filter) |
| static | getBasketForApply (array $basket, $filter, $action=array()) |
| static | setActionDescription ($type, $description) |
| static | setActionResult ($entity, array $actionResult) |
| static | clearEntityActionResult ($entity, array $entityParams=array()) |
| static | getPercentByValue ($basket, $value) |
| static | percentToValue ($basketRow, $percent) |
| static | getActionConfiguration (array $discount) |
См. определение в файле actions.php строка 10
◆ applyCumulativeToBasket()
| applyCumulativeToBasket |
( |
array & | $order, |
|
|
array | $ranges, |
|
|
array | $configuration = array(), |
|
|
| $filter = null ) |
|
static |
Cumulative action.
- Аргументы
-
| array | &$order | Order data. |
| array | $ranges | |
| array | $configuration | |
| callable | null | $filter | |
- Возвращает
- void
- Исключения
-
ArgumentOutOfRangeException
См. определение в файле actions.php строка 613
◆ applySimpleGift()
| applySimpleGift |
( |
array & | $order, |
|
|
| $filter ) |
|
static |
Simple gift action.
- Аргументы
-
| array | &$order | Order data. |
| callable | $filter | Filter. |
- Исключения
-
ArgumentOutOfRangeException
- Возвращает
- void
См. определение в файле actions.php строка 942
◆ applyToBasket()
| applyToBasket |
( |
array & | $order, |
|
|
array | $action, |
|
|
| $filter ) |
|
static |
Basket action.
- Аргументы
-
| array | &$order | Order data. |
| array | $action | Action detail keys are case sensitive:
-
float|int VALUE Discount value.
-
char UNIT Discount type.
-
string CURRENCY Currency discount (optional).
-
char MAX_BOUND Max bound (optional).
. |
| callable | $filter | Filter for basket items. |
- Возвращает
- void
См. определение в файле actions.php строка 455
◆ applyToDelivery()
Delivery action.
- Аргументы
-
| array | &$order | Order data. |
| array | $action | Action detail keys are case sensitive:
-
float|int VALUE Discount value.
-
char UNIT Discount type.
-
string CURRENCY Currency discount (optional).
-
char MAX_BOUND Max bound.
. |
- Возвращает
- void
См. определение в файле actions.php строка 852
◆ calculateDiscountPrice()
| calculateDiscountPrice |
( |
| $value, |
|
|
| $unit, |
|
|
array | $basketRow, |
|
|
| $limitValue, |
|
|
| $maxBound ) |
|
staticprotected |
Calculate simple discount result.
- Аргументы
-
| int | float | $value | Discount value. |
| string | $unit | Discount value type. |
| array | $basketRow | Basket item. |
| int | float | null | $limitValue | Max discount value. |
| bool | $maxBound | Allow set price to 0, if discount more than price. |
- Возвращает
- array
См. определение в файле actions.php строка 1394
◆ checkUseMode()
| checkUseMode |
( |
array | $list | ) |
|
|
static |
Check current use actions mode.
- Аргументы
-
- Возвращает
- bool
См. определение в файле actions.php строка 181
◆ clearAction()
Clear actions description and result.
- Возвращает
- void
См. определение в файле actions.php строка 431
◆ clearApplyCounter()
Clear apply counter.
- Возвращает
- void
См. определение в файле actions.php строка 211
◆ clearEntityActionResult()
| clearEntityActionResult |
( |
| $entity, |
|
|
array | $entityParams = array() ) |
|
static |
- Аргументы
-
| int | $entity | Entity id. |
| array | $entityParams | Entity params (optional). |
- Возвращает
- void
См. определение в файле actions.php строка 1166
◆ compareBasketResultDescr()
| compareBasketResultDescr |
( |
array | $action, |
|
|
| $resultDescr ) |
|
staticprotected |
Return check result for error mode.
- Аргументы
-
| array | $action | Action description. |
| array | $resultDescr | Result description. |
- Возвращает
- bool
См. определение в файле actions.php строка 1320
◆ disableBasketFilter()
Disable basket filter for mixed apply mode.
- Возвращает
- void
См. определение в файле actions.php строка 241
◆ enableBasketFilter()
Enable basket filter for mixed apply mode.
- Возвращает
- void
См. определение в файле actions.php строка 253
◆ fillCompatibleFields()
| fillCompatibleFields |
( |
array & | $order | ) |
|
|
static |
Fill compatible fields for old public api.
- Аргументы
-
- Возвращает
- void
См. определение в файле actions.php строка 276
◆ fillDiscountPrice()
| fillDiscountPrice |
( |
array & | $basketRow, |
|
|
| $price, |
|
|
| $discount ) |
|
staticprotected |
Fill price fields in basket item.
- Аргументы
-
| array | &$basketRow | Basket item fields. |
| int | float | $price | New price. |
| int | float | $discount | Value of the discount change. |
- Возвращает
- void
См. определение в файле actions.php строка 1437
◆ filterBasketForAction()
| filterBasketForAction |
( |
array | $item | ) |
|
|
static |
Basket filter.
- Аргументы
-
- Возвращает
- bool
См. определение в файле actions.php строка 307
◆ getActionConfiguration()
| getActionConfiguration |
( |
array | $discount | ) |
|
|
static |
◆ getActionDescription()
Return all actions description.
- Возвращает
- array
См. определение в файле actions.php строка 326
◆ getActionResult()
Return all actions results.
- Возвращает
- array
См. определение в файле actions.php строка 336
◆ getActionStoredData()
Return stored action.
- Возвращает
- array|null
См. определение в файле actions.php строка 418
◆ getActionStructure()
| getActionStructure |
( |
array | $discount | ) |
|
|
staticprotected |
◆ getApplyCounter()
Return current apply counter.
- Возвращает
- int
См. определение в файле actions.php строка 221
◆ getApplyResultMode()
Return apply result format mode.
- Возвращает
- int
См. определение в файле actions.php строка 361
◆ getBasketForApply()
| getBasketForApply |
( |
array | $basket, |
|
|
| $filter, |
|
|
| $action = array() ) |
|
static |
Return basket item for action apply.
- Аргументы
-
| array | $basket | Basket. |
| mixed | $filter | Filter. |
| array | $action | Prepare data. |
- Возвращает
- mixed
См. определение в файле actions.php строка 1002
◆ getCurrency()
Return calculate currency.
- Возвращает
- string
См. определение в файле actions.php строка 201
◆ getPercentByValue()
| getPercentByValue |
( |
| $basket, |
|
|
| $value ) |
|
static |
Return percent value.
- Аргументы
-
| array | $basket | Basket. |
| int | float | $value | Value. |
- Возвращает
- float
См. определение в файле actions.php строка 1196
◆ getPercentMode()
Return calculate mode for percent discount.
- Возвращает
- int
См. определение в файле actions.php строка 191
◆ getStoredData()
Return stored data after discount calculation.
- Возвращает
- array
См. определение в файле actions.php строка 393
◆ getUseMode()
Returns current use actions mode.
- Возвращает
- int
См. определение в файле actions.php строка 140
◆ increaseApplyCounter()
Increment current apply counter. Use BEFORE discount action apply.
- Возвращает
- void
См. определение в файле actions.php строка 231
◆ isCalculateMode()
Check calculate mode.
- Возвращает
- bool
См. определение в файле actions.php строка 150
◆ isManualMode()
Check manual mode.
- Возвращает
- bool
См. определение в файле actions.php строка 160
◆ isMixedMode()
Check mixed mode.
- Возвращает
- bool
См. определение в файле actions.php строка 170
◆ percentToValue()
| percentToValue |
( |
| $basketRow, |
|
|
| $percent ) |
|
static |
Calculate percent price.
- Аргументы
-
| array | $basketRow | Basket item. |
| float | $percent | Percent value. |
- Возвращает
- float
См. определение в файле actions.php строка 1223
◆ roundValue()
| roundValue |
( |
| $value, |
|
|
| $currency ) |
|
static |
Rounded value with sale rules.
- Аргументы
-
| float | int | $value | Value. |
| string | $currency | Currency. |
- Возвращает
- float
@noinspection PhpInternalEntityUsedInspection
- Аргументы
-
| $currency | @noinspection PhpUnusedParameterInspection |
См. определение в файле actions.php строка 78
◆ roundZeroValue()
Check for zero value.
- Аргументы
-
| float | int | $value | Price or discount value. |
- Возвращает
- float|int
См. определение в файле actions.php строка 66
◆ setActionDescription()
| setActionDescription |
( |
| $type, |
|
|
| $description ) |
|
static |
Save action description.
- Аргументы
-
| int | $type | Action object type. |
| array | $description | Description. |
- Возвращает
- void
См. определение в файле actions.php строка 1083
◆ setActionResult()
| setActionResult |
( |
| $entity, |
|
|
array | $actionResult ) |
|
static |
Save result.
- Аргументы
-
| int | $entity | Action object type. |
| array | $actionResult | Result description. |
- Возвращает
- void
См. определение в файле actions.php строка 1122
◆ setActionStoredData()
| setActionStoredData |
( |
array | $data | ) |
|
|
static |
Fill action data to store.
- Аргументы
-
| array | $data | Action data to store. |
- Возвращает
- void
См. определение в файле actions.php строка 404
◆ setApplyResult()
| setApplyResult |
( |
array | $applyResult | ) |
|
|
static |
Set apply result list.
- Аргументы
-
| array | $applyResult | Apply data. |
- Возвращает
- void
См. определение в файле actions.php строка 372
◆ setApplyResultMode()
| setApplyResultMode |
( |
| $mode | ) |
|
|
static |
Set apply result format mode.
- Аргументы
-
| int | $mode | Apply result mode. |
- Возвращает
- void
См. определение в файле actions.php строка 347
◆ setStoredData()
| setStoredData |
( |
array | $data | ) |
|
|
static |
Fill data to store for discount.
- Аргументы
-
- Возвращает
- void
См. определение в файле actions.php строка 383
◆ setUseMode()
Set use actions mode.
- Аргументы
-
| int | $mode | Use mode. |
| array | $config | Config. |
- Возвращает
- void
См. определение в файле actions.php строка 91
◆ usedBasketFilter()
Return is enabled basket filter mixed apply mode.
- Возвращает
- bool
См. определение в файле actions.php строка 265
◆ $actionDescription
| $actionDescription = array() |
|
staticprotected |
◆ $actionResult
◆ $applyCounter
| $applyCounter = self::APPLY_COUNTER_START |
|
staticprotected |
◆ $applyResult
◆ $applyResultMode
| $applyResultMode = self::APPLY_RESULT_MODE_COUNTER |
|
staticprotected |
◆ $currencyId
◆ $percentValueMode
| $percentValueMode = self::PERCENT_FROM_CURRENT_PRICE |
|
staticprotected |
◆ $siteId
◆ $storedData
◆ $useBasketFilter
◆ $useMode
| $useMode = self::MODE_CALCULATE |
|
staticprotected |
◆ ACTION_TYPE_DISCOUNT
| const ACTION_TYPE_DISCOUNT = 'D' |
◆ ACTION_TYPE_EXTRA
| const ACTION_TYPE_EXTRA = 'E' |
◆ APPLY_COUNTER_START
| const APPLY_COUNTER_START = -1 |
◆ APPLY_RESULT_MODE_COUNTER
| const APPLY_RESULT_MODE_COUNTER = 0x0001 |
◆ APPLY_RESULT_MODE_DESCR
| const APPLY_RESULT_MODE_DESCR = 0x0002 |
◆ APPLY_RESULT_MODE_SIMPLE
| const APPLY_RESULT_MODE_SIMPLE = 0x0004 |
◆ BASKET_APPLIED_FIELD
| const BASKET_APPLIED_FIELD = 'DISCOUNT_APPLIED' |
◆ GIFT_SELECT_TYPE_ALL
| const GIFT_SELECT_TYPE_ALL = 'all' |
◆ GIFT_SELECT_TYPE_ONE
| const GIFT_SELECT_TYPE_ONE = 'one' |
◆ MODE_CALCULATE
| const MODE_CALCULATE = 0x0001 |
◆ MODE_MANUAL
| const MODE_MANUAL = 0x0002 |
◆ MODE_MIXED
| const MODE_MIXED = 0x0004 |
◆ PERCENT_FROM_BASE_PRICE
| const PERCENT_FROM_BASE_PRICE = 0x0002 |
◆ PERCENT_FROM_CURRENT_PRICE
| const PERCENT_FROM_CURRENT_PRICE = 0x0001 |
◆ RESULT_ENTITY_BASKET
| const RESULT_ENTITY_BASKET = 0x0001 |
◆ RESULT_ENTITY_DELIVERY
| const RESULT_ENTITY_DELIVERY = 0x0002 |
◆ RESULT_ENTITY_ORDER
| const RESULT_ENTITY_ORDER = 0x0004 |
◆ VALUE_EPS
◆ VALUE_TYPE_CLOSEOUT
| const VALUE_TYPE_CLOSEOUT = 'C' |
◆ VALUE_TYPE_FIX
| const VALUE_TYPE_FIX = 'F' |
◆ VALUE_TYPE_PERCENT
| const VALUE_TYPE_PERCENT = 'P' |
◆ VALUE_TYPE_SUMM
| const VALUE_TYPE_SUMM = 'S' |
Объявления и описания членов класса находятся в файле: