См. определение в файле price.php строка 12
◆ clearRoundRulesCache()
static clearRoundRulesCache |
( |
|
$priceType | ) |
|
|
static |
Clear cache rules for price type.
- Аргументы
-
int | $priceType | Price type id. |
- Возвращает
- void
См. определение в файле price.php строка 153
◆ getRoundRules()
static getRoundRules |
( |
|
$priceType | ) |
|
|
static |
Return round rules list for price type.
- Аргументы
-
int | $priceType | Price type id. |
- Возвращает
- array
См. определение в файле price.php строка 136
◆ getRulesCacheId()
static getRulesCacheId |
( |
|
$priceType | ) |
|
|
staticprotected |
Return cache id for price type.
- Аргументы
-
string | int | $priceType | Price type id. |
- Возвращает
- string
См. определение в файле price.php строка 249
◆ handlerAfterUpdateCurrencyBaseRate()
static handlerAfterUpdateCurrencyBaseRate |
( |
Main\Event |
$event | ) |
|
|
static |
Handler onAfterUpdateCurrencyBaseRate for update field PRICE_SCALE after change currency base rate.
- Аргументы
-
Main\Event | $event | Event data (old and new currency rate). |
- Возвращает
- void
См. определение в файле price.php строка 30
◆ roundFraction()
static roundFraction |
( |
|
$value, |
|
|
|
$precision, |
|
|
|
$type |
|
) |
| |
|
staticprotected |
Round fraction part.
- Аргументы
-
float | int | $value | Round value. |
float | int | $precision | Precision. |
int | $type | Round type. |
- Возвращает
- float
См. определение в файле price.php строка 294
◆ roundPrice()
static roundPrice |
( |
|
$priceType, |
|
|
|
$price, |
|
|
|
$currency |
|
) |
| |
|
static |
Round price.
- Аргументы
-
int | $priceType | Price type id. |
float | int | $price | Price value. |
string | $currency | Currency. |
- Возвращает
- float|int
См. определение в файле price.php строка 199
◆ roundValue()
static roundValue |
( |
|
$value, |
|
|
|
$precision, |
|
|
|
$type |
|
) |
| |
|
static |
Round value with arbitrary precision.
- Аргументы
-
float | int | $value | Round value. |
float | int | $precision | Precision. |
int | $type | Round type. |
- Возвращает
- float|int
См. определение в файле price.php строка 221
◆ roundWhole()
static roundWhole |
( |
|
$value, |
|
|
|
$precision, |
|
|
|
$type |
|
) |
| |
|
staticprotected |
Round whole part.
- Аргументы
-
float | int | $value | Round value. |
float | int | $precision | Precision. |
int | $type | Round type. |
- Возвращает
- float|int
См. определение в файле price.php строка 262
◆ searchRoundRule()
static searchRoundRule |
( |
|
$priceType, |
|
|
|
$price, |
|
|
|
$currency = '' |
|
) |
| |
|
static |
Get rule for price value.
- Аргументы
-
int | $priceType | Price type id. |
float | int | $price | Price value. |
string | $currency | Price currency. |
- Возвращает
- array
- Аргументы
-
$currency | @noinspection PhpUnusedParameterInspection |
См. определение в файле price.php строка 174
◆ $roundRules
◆ CACHE_ID
const CACHE_ID = 'catalog_price_round_' |
◆ CACHE_TIME
const CACHE_TIME = 360000 |
◆ VALUE_EPS