|
static | setUserId (array &$result, array $data, array $keys) |
|
static | setTimestamp (array &$result, array $data, array $keys) |
|
См. определение в файле rounding.php строка 43
◆ allowClearCache()
static allowClearCache |
( |
| ) |
|
|
static |
Allow clear cache after multiuse add/update/delete.
- Возвращает
- void
См. определение в файле rounding.php строка 261
◆ clearCache()
Clear managed cache.
- Возвращает
- void
См. определение в файле rounding.php строка 306
◆ clearPriceTypeIds()
static clearPriceTypeIds |
( |
| ) |
|
|
static |
Clear price type ids.
- Возвращает
- void
См. определение в файле rounding.php строка 281
◆ deleteByPriceType()
static deleteByPriceType |
( |
|
$priceType | ) |
|
|
static |
Delete rules by price type.
- Аргументы
-
string | int | $priceType | Price type id. |
- Возвращает
- void
См. определение в файле rounding.php строка 322
◆ disallowClearCache()
static disallowClearCache |
( |
| ) |
|
|
static |
Disallow clear cache before multiuse add/update/delete.
- Возвращает
- void
См. определение в файле rounding.php строка 271
◆ getMap()
Returns entity map definition.
- Возвращает
- array
См. определение в файле rounding.php строка 69
◆ getPresetRoundingValues()
static getPresetRoundingValues |
( |
| ) |
|
|
static |
Get preset rounding precision values for public interfaces and all kinds of validations
- Возвращает
- array
См. определение в файле rounding.php строка 366
◆ getRoundTypes()
static getRoundTypes |
( |
|
$full = false | ) |
|
|
static |
Return round types.
- Аргументы
-
bool | $full | Get types with description. |
- Возвращает
- array
См. определение в файле rounding.php строка 342
◆ getTableName()
Returns DB table name for entity.
- Возвращает
- string
См. определение в файле rounding.php строка 59
◆ isAllowedClearCache()
static isAllowedClearCache |
( |
| ) |
|
|
static |
Returns current allow mode for cache clearing.
- Возвращает
- bool
См. определение в файле rounding.php строка 251
◆ onAfterAdd()
static onAfterAdd |
( |
Main\Entity\Event |
$event | ) |
|
|
static |
Default onAfterAdd handler. Absolutely necessary.
- Аргументы
-
Main\Entity\Event | $event | Current data for add. |
- Возвращает
- void
См. определение в файле rounding.php строка 149
◆ onAfterDelete()
static onAfterDelete |
( |
Main\Entity\Event |
$event | ) |
|
|
static |
Default onAfterDelete handler. Absolutely necessary.
- Аргументы
-
Main\Entity\Event | $event | Current data for delete. |
- Возвращает
- void
См. определение в файле rounding.php строка 241
◆ onAfterUpdate()
static onAfterUpdate |
( |
Main\Entity\Event |
$event | ) |
|
|
static |
Default onAfterUpdate handler. Absolutely necessary.
- Аргументы
-
Main\Entity\Event | $event | Current data for update. |
- Возвращает
- void
См. определение в файле rounding.php строка 211
◆ onBeforeAdd()
static onBeforeAdd |
( |
Main\Entity\Event |
$event | ) |
|
|
static |
Default onBeforeAdd handler. Absolutely necessary.
- Аргументы
-
Main\Entity\Event | $event | Current data for add. |
- Возвращает
- Main\Entity\EventResult
См. определение в файле rounding.php строка 127
◆ onBeforeUpdate()
static onBeforeUpdate |
( |
Main\Entity\Event |
$event | ) |
|
|
static |
Default onBeforeUpdate handler. Absolutely necessary.
- Аргументы
-
Main\Entity\Event | $event | Current data for update. |
- Возвращает
- Main\Entity\EventResult
См. определение в файле rounding.php строка 165
◆ onDelete()
static onDelete |
( |
Main\Entity\Event |
$event | ) |
|
|
static |
Default onDelete handler. Absolutely necessary.
- Аргументы
-
Main\Entity\Event | $event | Current data for delete. |
- Возвращает
- void
См. определение в файле rounding.php строка 222
◆ onUpdate()
static onUpdate |
( |
Main\Entity\Event |
$event | ) |
|
|
static |
Default onUpdate handler. Absolutely necessary.
- Аргументы
-
Main\Entity\Event | $event | Current data for update. |
- Возвращает
- void
См. определение в файле rounding.php строка 187
◆ setPriceTypeIds()
static setPriceTypeIds |
( |
|
$priceTypes | ) |
|
|
static |
Set price type list for cache clearing.
- Аргументы
-
string | int | array | $priceTypes | Price types for cache clearing. |
- Возвращает
- void
См. определение в файле rounding.php строка 292
◆ setTimestamp()
static setTimestamp |
( |
array & |
$result, |
|
|
array |
$data, |
|
|
array |
$keys |
|
) |
| |
|
staticprotected |
Fill datetime fields.
- Аргументы
-
array | &$result | Modified data for add/update discount. |
array | $data | Current data for add/update discount. |
array | $keys | List with checked keys (datetime info). |
- Возвращает
- void
См. определение в файле rounding.php строка 429
◆ setUserId()
static setUserId |
( |
array & |
$result, |
|
|
array |
$data, |
|
|
array |
$keys |
|
) |
| |
|
staticprotected |
Fill user id fields.
- Аргументы
-
array | &$result | Modified data for add/update discount. |
array | $data | Current data for add/update discount. |
array | $keys | List with checked keys (userId info). |
- Возвращает
- void
@noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection
См. определение в файле rounding.php строка 400
◆ $clearCache
◆ $priceTypeIds
◆ ROUND_DOWN
const ROUND_DOWN = 0x0004 |
◆ ROUND_MATH
const ROUND_MATH = 0x0001 |
◆ ROUND_UP