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

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

static getTableName ()
static getMap ()
static validateModuleId ()
static validateName ()
static validateDiscountHash ()
static getDiscountByHash ($hash)
static calculateHash ($discount)
static calculateRuleHash ($discount)
static prepareDiscountData ($discount)
static getEmptyFields ($discount)
static getDiscountModules ($discount)
static clearList ($discount)

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

static $requiredFields
static $replaceFields
static $revertFields

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

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

Методы

◆ calculateHash()

calculateHash ( $discount)
static

Calculate discount hash.

Аргументы
array$discountDiscount data.
Возвращает
bool|string

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

◆ calculateRuleHash()

calculateRuleHash ( $discount)
static

Calculate hash for fields CONDITIONS and ACTIONS.

Аргументы
array$discountDiscount data.
Возвращает
bool|string

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

◆ clearList()

clearList ( $discount)
static

Remove discount list.

Аргументы
array | int$discountOrder discount list.
Возвращает
void

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

◆ getDiscountByHash()

getDiscountByHash ( $hash)
static

Return discount id by hash.

Аргументы
string$hashDiscount hash.
Возвращает
int|bool

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

◆ getDiscountModules()

getDiscountModules ( $discount)
static

Return discount modules list.

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

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

◆ getEmptyFields()

getEmptyFields ( $discount)
static

Return fields list, need for prepareDiscountData.

Аргументы
array$discountDiscount data.
Возвращает
array|bool

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

◆ getMap()

getMap ( )
static

Returns entity map definition.

Возвращает
array

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

◆ getTableName()

getTableName ( )
static

Returns DB table name for entity.

Возвращает
string

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

◆ prepareDiscountData()

prepareDiscountData ( $discount)
static

Prepare discount data for save.

Аргументы
array$discountDiscount data.
Возвращает
array|bool

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

◆ validateDiscountHash()

validateDiscountHash ( )
static

Returns validators for DISCOUNT_HASH field.

Возвращает
array

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

◆ validateModuleId()

validateModuleId ( )
static

Returns validators for MODULE_ID field.

Возвращает
array

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

◆ validateName()

validateName ( )
static

Returns validators for NAME field.

Возвращает
array

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

Поля

◆ $replaceFields

$replaceFields
staticprotected
Инициализатор
'DISCOUNT_ID' => 'ID',
'CONDITIONS' => 'CONDITIONS_LIST',
'ACTIONS' => 'ACTIONS_LIST',
'MODULE_ID' => 'MODULE'
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804

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

◆ $requiredFields

$requiredFields
staticprotected
Инициализатор
'MODULE_ID',
'DISCOUNT_ID',
'NAME',
'CONDITIONS',
'UNPACK',
'ACTIONS',
'APPLICATION',
'USE_COUPONS',
'SORT',
'PRIORITY',
'LAST_DISCOUNT',
'ACTIONS_DESCR'
)

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

◆ $revertFields

$revertFields
staticprotected
Инициализатор
'CONDITIONS' => 'CONDITIONS_LIST',
'ACTIONS' => 'ACTIONS_LIST'
)

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


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