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

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

static disableUserFieldsCheck ()
static getType ()
static getMap ()
static checkFields (ORM\Data\Result $result, $primary, array $data)
static getItemUserFieldEntityId ()
static onBeforeAdd (Event $event)
static onAfterAdd (Event $event)
static onBeforeUpdate (Event $event)
static onAfterUpdate (Event $event)
static onBeforeDelete (Event $event)
static isOwnField (string $fieldName)
static getOwnFieldNames ()
static getUserFieldValues (int $id, array $userFields)
static updateUserFieldValues (int $id, array $fields)
static deleteUserFieldValues (int $id)
Открытые статические члены унаследованные от DataManager
static getEntity ()
static unsetEntity ($class)
static getTableName ()
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, array $parameters=[])
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 isCacheable ()
static onAdd (Event $event)
static onUpdate (Event $event)
static onDelete (Event $event)
static onAfterDelete (Event $event)

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

static getTemporaryStorage ()
static getErrorFromException ()
static modifyValuesBeforeSave ($id, array $data, array $options=[])
static convertValuesBeforeSave (array $data, array $userFields)
static convertSingleValueBeforeSave ($value, array $userField)
static isNotNull ($value)
Защищенные статические члены унаследованные от DataManager
static getObjectClassByDataClass ($dataClass)
static getCollectionClassByDataClass ($dataClass)
static replaceFieldName ($data=array())
static validatePrimary ($primary)
static checkUfFields ($object, $ufdata, $result)
static getAddStrategy ()
static sysAddInternal (AddStrategy $strategy, array $data, bool $ignoreEvents=false,)
static sysAddMultiInternal (AddStrategy $strategy, array $multiData, bool $ignoreEvents=false,)
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)

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

static $temporaryStorage
static $isCheckUserFields = true
Статические защищенные данные унаследованные от DataManager
static $entity
static $objectClass
static $collectionClass
static $currentDeletingObjects

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

Поля данных унаследованные от 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"

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

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

Методы

◆ checkFields()

checkFields ( ORM\Data\Result $result,
$primary,
array $data )
static

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

◆ convertSingleValueBeforeSave()

convertSingleValueBeforeSave ( $value,
array $userField )
staticprotected

Modify value before save.

Аргументы
mixed$valueValue for converting.
array$userFieldField array.
Возвращает
mixed

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

◆ convertValuesBeforeSave()

convertValuesBeforeSave ( array $data,
array $userFields )
staticprotected

Convert values of user fields using their callback.

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

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

◆ deleteUserFieldValues()

deleteUserFieldValues ( int $id)
static

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

◆ disableUserFieldsCheck()

disableUserFieldsCheck ( )
static

This method disabled check that required user fields are not empty for the next saving (no matter, add or update). This check will be disabled only once. You should invoke this method before every saving.

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

◆ getErrorFromException()

getErrorFromException ( )
staticprotected

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

◆ getItemUserFieldEntityId()

getItemUserFieldEntityId ( )
static

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

◆ getMap()

getMap ( )
static

Returns entity map definition. To get initialized fields

См. также
\Bitrix\Main\ORM\Entity::getFields() and \Bitrix\Main\ORM\Entity::getField()

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

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

◆ getOwnFieldNames()

getOwnFieldNames ( )
static

Returns list of field names that are not user fields.

Возвращает
array

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

◆ getTemporaryStorage()

getTemporaryStorage ( )
staticprotected

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

◆ getType()

getType ( )
static

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

◆ getUserFieldValues()

getUserFieldValues ( int $id,
array $userFields )
static

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

◆ isNotNull()

isNotNull ( $value)
staticprotected

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

◆ isOwnField()

isOwnField ( string $fieldName)
static

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

◆ modifyValuesBeforeSave()

modifyValuesBeforeSave ( $id,
array $data,
array $options = [] )
staticprotected
Аргументы
$id
array$data
array$options
Возвращает
Main\ORM\EventResult

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

◆ onAfterAdd()

onAfterAdd ( Event $event)
static

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

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

◆ onAfterUpdate()

onAfterUpdate ( Event $event)
static

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

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

◆ onBeforeAdd()

onBeforeAdd ( Event $event)
static

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

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

◆ onBeforeDelete()

onBeforeDelete ( Event $event)
static

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

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

◆ onBeforeUpdate()

onBeforeUpdate ( Event $event)
static

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

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

◆ updateUserFieldValues()

updateUserFieldValues ( int $id,
array $fields )
static

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

Поля

◆ $isCheckUserFields

$isCheckUserFields = true
staticprotected

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

◆ $temporaryStorage

$temporaryStorage
staticprotected

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


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