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

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

static getTableName ()
 
static getMap ()
 
static onBeforeAdd (Main\Entity\Event $event)
 
static onAfterAdd (Main\Entity\Event $event)
 
static onBeforeUpdate (Main\Entity\Event $event)
 
static onUpdate (Main\Entity\Event $event)
 
static onAfterUpdate (Main\Entity\Event $event)
 
static onDelete (Main\Entity\Event $event)
 
static onAfterDelete (Main\Entity\Event $event)
 
static isAllowedClearCache ()
 
static allowClearCache ()
 
static disallowClearCache ()
 
static clearPriceTypeIds ()
 
static setPriceTypeIds ($priceTypes)
 
static clearCache ()
 
static deleteByPriceType ($priceType)
 
static getRoundTypes ($full=false)
 
static getPresetRoundingValues ()
 

Открытые атрибуты

const ROUND_MATH = 0x0001
 
const ROUND_UP = 0x0002
 
const ROUND_DOWN = 0x0004
 

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

static setUserId (array &$result, array $data, array $keys)
 
static setTimestamp (array &$result, array $data, array $keys)
 

Статические защищенные данные

static $clearCache = 0
 
static $priceTypeIds = array()
 

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

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

Методы

◆ allowClearCache()

static allowClearCache ( )
static

Allow clear cache after multiuse add/update/delete.

Возвращает
void

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

◆ clearCache()

static clearCache ( )
static

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$priceTypePrice type id.
Возвращает
void

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

◆ disallowClearCache()

static disallowClearCache ( )
static

Disallow clear cache before multiuse add/update/delete.

Возвращает
void

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

◆ getMap()

static getMap ( )
static

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$fullGet types with description.
Возвращает
array

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

◆ getTableName()

static getTableName ( )
static

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$eventCurrent data for add.
Возвращает
void

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

◆ onAfterDelete()

static onAfterDelete ( Main\Entity\Event  $event)
static

Default onAfterDelete handler. Absolutely necessary.

Аргументы
Main\Entity\Event$eventCurrent data for delete.
Возвращает
void

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

◆ onAfterUpdate()

static onAfterUpdate ( Main\Entity\Event  $event)
static

Default onAfterUpdate handler. Absolutely necessary.

Аргументы
Main\Entity\Event$eventCurrent data for update.
Возвращает
void

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

◆ onBeforeAdd()

static onBeforeAdd ( Main\Entity\Event  $event)
static

Default onBeforeAdd handler. Absolutely necessary.

Аргументы
Main\Entity\Event$eventCurrent 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$eventCurrent 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$eventCurrent data for delete.
Возвращает
void

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

◆ onUpdate()

static onUpdate ( Main\Entity\Event  $event)
static

Default onUpdate handler. Absolutely necessary.

Аргументы
Main\Entity\Event$eventCurrent data for update.
Возвращает
void

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

◆ setPriceTypeIds()

static setPriceTypeIds (   $priceTypes)
static

Set price type list for cache clearing.

Аргументы
string | int | array$priceTypesPrice types for cache clearing.
Возвращает
void

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

◆ setTimestamp()

static setTimestamp ( array &  $result,
array  $data,
array  $keys 
)
staticprotected

Fill datetime fields.

Аргументы
array&$resultModified data for add/update discount.
array$dataCurrent data for add/update discount.
array$keysList with checked keys (datetime info).
Возвращает
void

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

◆ setUserId()

static setUserId ( array &  $result,
array  $data,
array  $keys 
)
staticprotected

Fill user id fields.

Аргументы
array&$resultModified data for add/update discount.
array$dataCurrent data for add/update discount.
array$keysList with checked keys (userId info).
Возвращает
void

@noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection

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

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

◆ $clearCache

$clearCache = 0
staticprotected

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

◆ $priceTypeIds

$priceTypeIds = array()
staticprotected

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

◆ ROUND_DOWN

const ROUND_DOWN = 0x0004

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

◆ ROUND_MATH

const ROUND_MATH = 0x0001

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

◆ ROUND_UP

const ROUND_UP = 0x0002

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