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

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

static getTableName ()
 
static getMap ()
 
static deleteByDiscounts (array $discountIds)
 
static deleteByDiscount ($discountId)
 
static fillByDiscount (array $discount)
 
static getGiftsData (array $discount)
 
static getProductsData (array $discount)
 
- Открытые статические члены унаследованные от DataManager
static getEntity ()
 
static unsetEntity ($class)
 
static getConnectionName ()
 
static getTitle ()
 
static getObjectClass ()
 
static getObjectClassName ()
 
static getCollectionClass ()
 
static getCollectionClassName ()
 
static getObjectParentClass ()
 
static getCollectionParentClass ()
 
static getQueryClass ()
 
static getEntityClass ()
 
static createObject ($setDefaultValues=true)
 
static createCollection ()
 
static wakeUpObject ($row)
 
static wakeUpCollection ($rows)
 
static getUfId ()
 
static isUts ()
 
static isUtm ()
 
static setDefaultScope ($query)
 
static postInitialize (Entity $entity)
 
static getByPrimary ($primary, array $parameters=array())
 
static getById ($id)
 
static getRowById ($id)
 
static getRow (array $parameters)
 
static getList (array $parameters=array())
 
static getCount ($filter=array(), array $cache=array())
 
static query ()
 
static checkFields (Result $result, $primary, array $data)
 
static add (array $data)
 
static addMulti ($rows, $ignoreEvents=false)
 
static update ($primary, array $data)
 
static delete ($primary)
 
static enableCrypto ($field, $table=null, $mode=true)
 
static cryptoEnabled ($field, $table=null)
 
static setCurrentDeletingObject ($object)
 
static cleanCache ()
 
static onBeforeAdd (Event $event)
 
static onAdd (Event $event)
 
static onAfterAdd (Event $event)
 
static onBeforeUpdate (Event $event)
 
static onUpdate (Event $event)
 
static onAfterUpdate (Event $event)
 
static onBeforeDelete (Event $event)
 
static onDelete (Event $event)
 
static onAfterDelete (Event $event)
 

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

const MAX_LENGTH_BATCH_MYSQL_QUERY = 2048
 
- Открытые атрибуты унаследованные от DataManager
const EVENT_ON_BEFORE_ADD = "OnBeforeAdd"
 
const EVENT_ON_ADD = "OnAdd"
 
const EVENT_ON_AFTER_ADD = "OnAfterAdd"
 
const EVENT_ON_BEFORE_UPDATE = "OnBeforeUpdate"
 
const EVENT_ON_UPDATE = "OnUpdate"
 
const EVENT_ON_AFTER_UPDATE = "OnAfterUpdate"
 
const EVENT_ON_BEFORE_DELETE = "OnBeforeDelete"
 
const EVENT_ON_DELETE = "OnDelete"
 
const EVENT_ON_AFTER_DELETE = "OnAfterDelete"
 

Дополнительные унаследованные члены

- Защищенные статические члены унаследованные от DataManager
static getObjectClassByDataClass ($dataClass)
 
static getCollectionClassByDataClass ($dataClass)
 
static replaceFieldName ($data=array())
 
static validatePrimary ($primary)
 
static checkUfFields ($object, $ufdata, $result)
 
static callOnBeforeAddEvent ($object, $fields, $result)
 
static callOnAddEvent ($object, $fields, $ufdata)
 
static callOnAfterAddEvent ($object, $fields, $id)
 
static callOnBeforeUpdateEvent ($object, $fields, $result)
 
static callOnUpdateEvent ($object, $fields, $ufdata)
 
static callOnAfterUpdateEvent ($object, $fields)
 
static callOnBeforeDeleteEvent ($object, $entity, $result)
 
static callOnDeleteEvent ($object, $entity)
 
static callOnAfterDeleteEvent ($object, $entity)
 
- Статические защищенные данные унаследованные от DataManager
static $entity
 
static $objectClass
 
static $collectionClass
 
static $currentDeletingObjects
 
static $reservedWords
 

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

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

Методы

◆ deleteByDiscount()

static deleteByDiscount ( $discountId)
static

Deletes rows by discount id.

Аргументы
int$discountIdId of discount.
Возвращает
void

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

◆ deleteByDiscounts()

static deleteByDiscounts ( array $discountIds)
static

Deletes rows by discounts.

Аргументы
array$discountIdsList of discount ids.
Возвращает
void

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

◆ fillByDiscount()

static fillByDiscount ( array $discount)
static

Fills table of related data by discount.

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

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

◆ getGiftsData()

static getGiftsData ( array $discount)
static

Returns gift data which contains list of section id, element id. It's gifts for the discount.

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

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

◆ getMap()

static getMap ( )
static

Returns entity map definition.

Возвращает
array

Переопределяет метод предка DataManager.

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

◆ getProductsData()

static getProductsData ( array $discount)
static

Returns main product data which contains list of section id, element id. It's main products for the discount.

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

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

◆ getTableName()

static getTableName ( )
static

Returns DB table name for entity.

Возвращает
string

Переопределяет метод предка DataManager.

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

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

◆ MAX_LENGTH_BATCH_MYSQL_QUERY

const MAX_LENGTH_BATCH_MYSQL_QUERY = 2048

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