Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс DataManager
+ Граф наследования: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 getMap ()
 
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 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"
 

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

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)
 

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

static $entity
 
static $objectClass
 
static $collectionClass
 
static $currentDeletingObjects
 
static $reservedWords
 

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

Base entity data manager

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

Методы

◆ add()

static add ( array $data)
static

Adds row to entity table

Аргументы
array$dataAn array with fields like array( "fields" => array( "FIELD1" => "value1", "FIELD2" => "value2", ), "auth_context" => \Bitrix\Main\Authentication\Context object ) or just a plain array of fields.
Возвращает
AddResult Contains ID of inserted row
Исключения

Exception

Переопределяется в WorkflowInstanceTable, WorkflowStateTable, TaskTable, TaskUserTable, StoreDocumentSpecificTable, ElementTable, UserTable и UserFieldTable.

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

◆ addMulti()

static addMulti ( $rows,
$ignoreEvents = false )
static
Аргументы
$rows
bool$ignoreEvents
Возвращает
AddResult
Исключения
Main

ArgumentException

Исключения
Main

SystemException

Переопределяется в CommonElementTable.

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

◆ callOnAddEvent()

static callOnAddEvent ( $object,
$fields,
$ufdata )
staticprotected
Аргументы
$object
$fields
$ufdata

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

◆ callOnAfterAddEvent()

static callOnAfterAddEvent ( $object,
$fields,
$id )
staticprotected
Аргументы
EntityObject$object
array$fields
int$id

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

◆ callOnAfterDeleteEvent()

static callOnAfterDeleteEvent ( $object,
$entity )
staticprotected
Аргументы
$object
$entity

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

◆ callOnAfterUpdateEvent()

static callOnAfterUpdateEvent ( $object,
$fields )
staticprotected
Аргументы
EntityObject$object
$fields

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

◆ callOnBeforeAddEvent()

static callOnBeforeAddEvent ( $object,
$fields,
$result )
staticprotected
Аргументы
EntityObject$object
$fields
$result

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

◆ callOnBeforeDeleteEvent()

static callOnBeforeDeleteEvent ( $object,
$entity,
$result )
staticprotected
Аргументы
$object
$entity
$result

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

◆ callOnBeforeUpdateEvent()

static callOnBeforeUpdateEvent ( $object,
$fields,
$result )
staticprotected
Аргументы
EntityObject$object
$fields
$result

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

◆ callOnDeleteEvent()

static callOnDeleteEvent ( $object,
$entity )
staticprotected
Аргументы
$object
$entity

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

◆ callOnUpdateEvent()

static callOnUpdateEvent ( $object,
$fields,
$ufdata )
staticprotected
Аргументы
EntityObject$object
$fields
$ufdata

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

◆ checkFields()

static checkFields ( Result $result,
$primary,
array $data )
static

Checks the data fields before saving to DB. Result stores in the $result object

Аргументы
Result$result
mixed$primary
array$data
Исключения
Main

ArgumentException

Исключения
Main

SystemException

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

◆ checkUfFields()

static checkUfFields ( $object,
$ufdata,
$result )
staticprotected
Аргументы
EntityObject$object
$ufdata
Result$result

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

◆ cleanCache()

static cleanCache ( )
static

Переопределяется в TypeTable и SiteTable.

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

◆ createCollection()

static createCollection ( )
staticfinal
Возвращает
null Actual type should be annotated by orm:annotate
Исключения
Main

ArgumentException

Исключения
Main

SystemException

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

◆ createObject()

static createObject ( $setDefaultValues = true)
staticfinal
Аргументы
bool$setDefaultValues
Возвращает
null Actual type should be annotated by orm:annotate
Исключения
Main

ArgumentException

Исключения
Main

SystemException

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

◆ cryptoEnabled()

static cryptoEnabled ( $field,
$table = null )
static

Returns true if crypto is enabled for a field.

Аргументы
string$field
string$table
Возвращает
bool

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

◆ delete()

static delete ( $primary)
static

Deletes row in entity table by primary key

Аргументы
mixed$primary
Возвращает
DeleteResult
Исключения

Exception

Переопределяется в CultureTable, WorkflowStateTable, TaskTable, TaskUserTable, StoreDocumentSpecificTable, ElementTable, UserTable, UserFieldTable, KkmModelTable и PaySystemActionTable.

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

◆ enableCrypto()

static enableCrypto ( $field,
$table = null,
$mode = true )
static

Sets a flag indicating crypto support for a field.

Аргументы
string$field
string$table
bool$mode

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

◆ getById()

static getById ( $id)
static

Returns selection by entity's primary key

Аргументы
mixed$idPrimary key of the entity
Возвращает
QueryResult
Исключения
Main

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getByPrimary()

static getByPrimary ( $primary,
array $parameters = array() )
static

Returns selection by entity's primary key and optional parameters for getList()

Аргументы
mixed$primaryPrimary key of the entity
array$parametersAdditional parameters for getList()
Возвращает
QueryResult
Исключения
Main

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getCollectionClass()

static getCollectionClass ( )
static

Returns class of Object collection for current entity.

Возвращает
string|Collection

Переопределяется в ElementV1Table, ElementV2Table, BookTable, ReliabilityTable, SpaceCompositionTable, LogTable, FileDiffTable, FileIndexTable, PathIndexTable и PhraseIndexTable.

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

◆ getCollectionClassByDataClass()

static getCollectionClassByDataClass ( $dataClass)
staticprotected

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

◆ getCollectionClassName()

static getCollectionClassName ( )
staticfinal

Returns class name (without namespace) of Object collection for current entity.

Возвращает
string

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

◆ getCollectionParentClass()

static getCollectionParentClass ( )
static
Возвращает
Collection|string

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

◆ getConnectionName()

static getConnectionName ( )
static

Returns connection name for entity

Возвращает
string

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

◆ getCount()

static getCount ( $filter = array(),
array $cache = array() )
static

Performs COUNT query on entity and returns the result.

Аргументы
array | Filter$filter
array$cacheAn array of cache options "ttl" => integer indicating cache TTL
Возвращает
int
Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getEntity()

static getEntity ( )
static

Returns entity object

Возвращает
Entity
Исключения
Main

ArgumentException

Исключения
Main

SystemException

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

◆ getEntityClass()

static getEntityClass ( )
static
Возвращает
Entity|string

Переопределяется в CommonElementTable, ElementV1Table, ElementV2Table и ValueStorageTable.

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

◆ getList()

static getList ( array $parameters = array())
static

Executes the query and returns selection by parameters of the query. This function is an alias to the Query object functions

Аргументы
array$parametersAn array of query parameters, available keys are:
"select" => array of fields in the SELECT part of the query, aliases are possible in the form of "alias"=>"field";
"filter" => array of filters in the WHERE/HAVING part of the query in the form of "(condition)field"=>"value"; also could be an instance of Filter;
"group" => array of fields in the GROUP BY part of the query;
"order" => array of fields in the ORDER BY part of the query in the form of "field"=>"asc|desc";
"limit" => integer indicating maximum number of rows in the selection (like LIMIT n in MySql);
"offset" => integer indicating first row number in the selection (like LIMIT n, 100 in MySql);
"runtime" => array of entity fields created dynamically;
"cache => array of cache options:<br> "ttl" => integer indicating cache TTL;<br> "cache_joins" => boolean enabling to cache joins, false by default.
См. также
Query::filter()
Возвращает
QueryResult
Исключения
Main

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

Примеры
C:/bitrix/modules/ui/lib/Avatar/Mask/Helper.php.

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

◆ getMap()

static getMap ( )
static

Returns entity map definition. To get initialized fields

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

Переопределяется в ButtonSiteTable, DebuggerSessionDocumentTable, DebuggerSessionTable, DebuggerSessionTemplateShardsTable, DebuggerSessionWorkflowContextTable, TrackingTable, ActivityStorageTable, WorkflowDurationStatTable, WorkflowInstanceTable, WorkflowMetadataTable, WorkflowStateTable, WorkflowUserTable, TaskTable, TaskUserTable, GlobalConstTable, GlobalVarTable, AccessTable, AccessTable, EventConnectionTable, EventOriginalRecursionTable, EventSectTable, MembershipHandlerQueryTable, QueueHandledMessageTable, QueueMessageTable, RoomCategoryTable, SectionConnectionTable, SharingLinkMemberTable, SharingLinkRuleTable, SharingLinkTable, SharingObjectRuleTable, SharingLinkTable, AgentContractFileTable, AgentContractTable, AgentProductTable, CatalogIblockTable, ContractorTable, DiscountEntityTable, ExtraTable, GroupTable, GroupAccessTable, PriceTable, ProductTable, ProductCompilationTable, RoundingTable, StoreBarcodeTable, StoreBatchDocumentElementTable, StoreBatchTable, StoreDocumentBarcodeTable, StoreDocumentElementTable, StoreDocumentFileTable, StoreDocumentTable, StoreProductTable, VatTable, FileHashTable, FileSaveTable, UserTopicTable, ElementPropertyTable, ElementTable, IblockTable, CommonElementTable, PropertyFeatureTable, PropertyTable, SectionTable, TypeTable, ChatPinnedMessageTable, FileTemporaryTable, LinkCalendarTable, LinkCalendarIndexTable, LinkFavoriteTable, LinkFileTable, LinkPinTable, LinkReminderTable, LinkTaskTable, LinkUrlTable, LinkUrlIndexTable, LogTable, MessageDisappearingTable, MessageUnreadTable, MessageViewedTable, NoRelationPermissionDiskTable, OptionAccessTable, OptionGroupTable, OptionStateTable, OptionUserTable, ReactionTable, UserTable, AddressFieldTable, AddressLinkTable, AddressTable, AreaTable, LocationFieldTable, LocationNameTable, LocationTable, RecentAddressTable, SourceTable, DomainEmailTable, MailboxAccessTable, MailboxDirectoryTable, MailContactTable, MailCounterTable, MailEntityOptionsTable, MailMessageAttachmentTable, MessageAccessTable, MessageClosureTable, MessageDeleteQueueTable, MessageUploadQueueTable, OAuthTable, UserSignatureTable, ApplicationPasswordTable, GroupSubordinateTable, ModuleGroupTable, UserAuthCodeTable, UserDeviceLoginTable, UserDeviceTable, UserHitAuthTable, UserPasswordTable, UserStoredAuthTable, ParametersTable, EventLogTable, LogNotificationActionTable, LogNotificationTable, FileDuplicateTable, FileHashTable, FileVersionTable, GroupTable, CultureTable, LanguageTable, EventMessageSiteTable, EventTypeTable, GeonameTable, ToolbarItemTable, ToolbarTable, SiteTable, TemplateTable, AuthorTable, BookTable, PublisherTable, StoreBookTable, StoreTable, EntityUsageTable, FilePreviewTable, UserTable, UserFieldTable, PrototypeItemDataManager, TypeDataManager, UserFieldLangTable, UserPhoneAuthTable, UserProfileHistoryTable, ChannelTable, IncomingMessageTable, MessageTable, RestAppTable, RestrictionTable, WatchTable, OwnerEntityTable, StorageTable, PlacementLangTable, CashboxTable, CashboxCheckTable, CashboxConnectTable, CashboxZReportTable, Check2CashboxTable, CheckRelatedEntitiesTable, KkmModelTable, DeliveryRestHandlerTable, RelatedDataTable, B24integrationTokenTable, CashboxRestHandlerTable, LocalDeliveryRequestTable, OrderProcessingTable, OrderPropsTable, OrderPropsGroupTable, OrderPropsValueTable, OrderPropsVariantTable, PayableItemTable, PaymentPaySystemAvailableTable, PaySystemActionTable, ReliabilityTable, ShipmentItemTable, SynchronizerLogTable, UserGroupRestrictionTable, UserPropsTable, UserPropsValueTable, UserTransactTable, YandexSettingsTable, BasketReservationHistoryTable, BasketReservationTable, UserTable, FileTable, TemplateTable, EventTable, SpaceCompositionTable, LogTable, LogCommentTable, LogSiteTable, UserLinkTable, RubricTable, SubscriptionTable, FileDiffTable, FileIndexTable, PathIndexTable, PathLangTable, PathTreeTable, PhraseFts, PhraseIndexTable, AccessTable, ItemToFileTable, RecentlyUsedTable, AccessTable, GroupTable, ItemTable, ItemToFileTable и RecentlyUsedTable.

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

◆ getObjectClass()

◆ getObjectClassByDataClass()

static getObjectClassByDataClass ( $dataClass)
staticprotected

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

◆ getObjectClassName()

static getObjectClassName ( )
staticfinal

Returns class name (without namespace) of Object for current entity.

Возвращает
string

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

◆ getObjectParentClass()

static getObjectParentClass ( )
static
Возвращает
EntityObject|string

Переопределяется в ElementV1Table, ElementV2Table, ValueStorageTable и TypeDataManager.

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

◆ getQueryClass()

static getQueryClass ( )
static
Возвращает
Query|string

Переопределяется в CommonElementTable.

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

◆ getRow()

static getRow ( array $parameters)
static

Returns one row (or null) by parameters for getList()

Аргументы
array$parametersPrimary key of the entity
Возвращает
array|null
Исключения
Main

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getRowById()

static getRowById ( $id)
static

Returns one row (or null) by entity's primary key

Аргументы
mixed$idPrimary key of the entity
Возвращает
array|null
Исключения
Main

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getTableName()

static getTableName ( )
static

Returns DB table name for entity

Возвращает
string

Переопределяется в ButtonSiteTable, DebuggerSessionDocumentTable, DebuggerSessionTable, DebuggerSessionTemplateShardsTable, DebuggerSessionWorkflowContextTable, TrackingTable, ActivityStorageTable, WorkflowDurationStatTable, WorkflowInstanceTable, WorkflowMetadataTable, WorkflowStateTable, WorkflowUserTable, TaskTable, TaskUserTable, GlobalConstTable, GlobalVarTable, AccessTable, AccessTable, EventConnectionTable, EventOriginalRecursionTable, EventSectTable, MembershipHandlerQueryTable, QueueHandledMessageTable, QueueMessageTable, RoomCategoryTable, SectionConnectionTable, SharingLinkMemberTable, SharingLinkRuleTable, SharingLinkTable, SharingObjectRuleTable, SharingLinkTable, AgentContractFileTable, AgentContractTable, AgentProductTable, CatalogIblockTable, ContractorTable, DiscountEntityTable, ExtraTable, GroupTable, GroupAccessTable, PriceTable, ProductTable, ProductCompilationTable, RoundingTable, StoreBarcodeTable, StoreBatchDocumentElementTable, StoreBatchTable, StoreDocumentBarcodeTable, StoreDocumentElementTable, StoreDocumentFileTable, StoreDocumentTable, StoreProductTable, VatTable, FileHashTable, FileSaveTable, UserTopicTable, ElementTable, IblockTable, CommonElementTable, PropertyFeatureTable, PropertyTable, SectionTable, TypeTable, ChatPinnedMessageTable, FileTemporaryTable, LinkCalendarTable, LinkCalendarIndexTable, LinkFavoriteTable, LinkFileTable, LinkPinTable, LinkReminderTable, LinkTaskTable, LinkUrlTable, LinkUrlIndexTable, LogTable, MessageDisappearingTable, MessageUnreadTable, MessageViewedTable, NoRelationPermissionDiskTable, OptionAccessTable, OptionGroupTable, OptionStateTable, OptionUserTable, ReactionTable, AddressFieldTable, AddressLinkTable, AddressTable, AreaTable, LocationFieldTable, LocationNameTable, LocationTable, RecentAddressTable, SourceTable, DomainEmailTable, MailboxAccessTable, MailboxDirectoryTable, MailContactTable, MailCounterTable, MailEntityOptionsTable, MailMessageAttachmentTable, MessageAccessTable, MessageClosureTable, MessageDeleteQueueTable, MessageUploadQueueTable, OAuthTable, UserSignatureTable, ApplicationPasswordTable, GroupSubordinateTable, ModuleGroupTable, UserAuthCodeTable, UserDeviceLoginTable, UserDeviceTable, UserHitAuthTable, UserPasswordTable, UserStoredAuthTable, ParametersTable, EventLogTable, LogNotificationActionTable, LogNotificationTable, FileDuplicateTable, FileHashTable, FileVersionTable, GroupTable, CultureTable, LanguageTable, EventMessageSiteTable, EventTypeTable, GeonameTable, ToolbarItemTable, ToolbarTable, SiteTable, TemplateTable, AuthorTable, BookTable, PublisherTable, StoreBookTable, StoreTable, EntityUsageTable, FilePreviewTable, UserTable, UserFieldLangTable, UserPhoneAuthTable, UserProfileHistoryTable, ChannelTable, IncomingMessageTable, MessageTable, RestAppTable, RestrictionTable, WatchTable, OwnerEntityTable, StorageTable, PlacementLangTable, CashboxTable, CashboxCheckTable, CashboxConnectTable, CashboxZReportTable, Check2CashboxTable, CheckRelatedEntitiesTable, KkmModelTable, DeliveryRestHandlerTable, RelatedDataTable, B24integrationTokenTable, CashboxRestHandlerTable, LocalDeliveryRequestTable, OrderProcessingTable, OrderPropsTable, OrderPropsGroupTable, OrderPropsValueTable, OrderPropsVariantTable, PayableItemTable, PaymentPaySystemAvailableTable, PaySystemActionTable, ReliabilityTable, ShipmentItemTable, SynchronizerLogTable, UserGroupRestrictionTable, UserPropsTable, UserPropsValueTable, UserTransactTable, YandexSettingsTable, BasketReservationHistoryTable, BasketReservationTable, UserTable, FileTable, TemplateTable, EventTable, SpaceCompositionTable, LogTable, LogCommentTable, LogSiteTable, UserLinkTable, RubricTable, SubscriptionTable, FileDiffTable, FileIndexTable, PathIndexTable, PathLangTable, PathTreeTable, PhraseIndexTable, AccessTable, ItemToFileTable, RecentlyUsedTable, AccessTable, GroupTable, ItemTable, ItemToFileTable и RecentlyUsedTable.

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

◆ getTitle()

static getTitle ( )
static
Возвращает
string

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

◆ getUfId()

static getUfId ( )
static

Переопределяется в StoreDocumentSpecificTable, ProductTable, BookTable, UserTable, LogTable и LogCommentTable.

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

◆ isUtm()

static isUtm ( )
static

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

◆ isUts()

static isUts ( )
static

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

◆ onAdd()

static onAdd ( Event $event)
static

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

◆ onAfterAdd()

static onAfterAdd ( Event $event)
static

Переопределяется в WorkflowDurationStatTable, IblockTable, PrototypeItemDataManager и TypeDataManager.

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

◆ onAfterDelete()

static onAfterDelete ( Event $event)
static

Переопределяется в IblockTable, SectionTable и TypeDataManager.

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

◆ onAfterUpdate()

static onAfterUpdate ( Event $event)
static

Переопределяется в IblockTable, PrototypeItemDataManager и TypeDataManager.

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

◆ onBeforeAdd()

static onBeforeAdd ( Event $event)
static

Переопределяется в PrototypeItemDataManager и OrderPropsTable.

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

◆ onBeforeDelete()

static onBeforeDelete ( Event $event)
static

Переопределяется в PrototypeItemDataManager и TypeDataManager.

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

◆ onBeforeUpdate()

static onBeforeUpdate ( Event $event)
static

Переопределяется в GlobalConstTable, GlobalVarTable, PrototypeItemDataManager, TypeDataManager и OrderPropsTable.

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

◆ onDelete()

static onDelete ( Event $event)
static

Переопределяется в SectionTable и FilePreviewTable.

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

◆ onUpdate()

static onUpdate ( Event $event)
static

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

◆ postInitialize()

static postInitialize ( Entity $entity)
static
Аргументы
Entity$entity
Возвращает
null

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

◆ query()

static query ( )
static

Creates and returns the Query object for the entity

Возвращает
Query
Исключения
Main

ArgumentException

Исключения
Main

SystemException

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

◆ replaceFieldName()

static replaceFieldName ( $data = array())
staticprotected
Аргументы
array$data
Возвращает
array
Исключения
Main

ArgumentException

Исключения
Main

SystemException

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

◆ setCurrentDeletingObject()

static setCurrentDeletingObject ( $object)
static
Аргументы
EntityObject$object

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

◆ setDefaultScope()

static setDefaultScope ( $query)
static
Аргументы
Query$query
Возвращает
Query

Переопределяется в StoreDocumentSpecificTable и CommonElementTable.

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

◆ unsetEntity()

static unsetEntity ( $class)
static

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

◆ update()

static update ( $primary,
array $data )
static

Updates row in entity table by primary key

Аргументы
mixed$primary
array$dataAn array with fields like array( "fields" => array( "FIELD1" => "value1", "FIELD2" => "value2", ), "auth_context" => \Bitrix\Main\Authentication\Context object ) or just a plain array of fields.
Возвращает
UpdateResult
Исключения

Exception

Аргументы
mixed$primary
array$data
Возвращает
Entity\UpdateResult
Исключения
Main

ArgumentException

Исключения
Main

Db\SqlQueryException

Исключения
Main

SystemException

Переопределяется в WorkflowInstanceTable, WorkflowStateTable, TaskTable, TaskUserTable, StoreDocumentSpecificTable, ElementTable, CultureTable, UserTable и UserFieldTable.

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

◆ validatePrimary()

static validatePrimary ( $primary)
staticprotected
Аргументы
$primary
Исключения
Main

ArgumentException

Исключения
Main

SystemException

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

◆ wakeUpCollection()

static wakeUpCollection ( $rows)
staticfinal
См. также
Collection::wakeUp()
Аргументы
$rows
Возвращает
null Actual type should be annotated by orm:annotate
Исключения
Main

ArgumentException

Исключения
Main

SystemException

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

◆ wakeUpObject()

static wakeUpObject ( $row)
staticfinal
См. также
EntityObject::wakeUp()
Аргументы
$row
Возвращает
null Actual type should be annotated by orm:annotate
Исключения
Main

ArgumentException

Исключения
Main

SystemException

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

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

◆ $collectionClass

$collectionClass
staticprotected

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

◆ $currentDeletingObjects

$currentDeletingObjects
staticprotected

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

◆ $entity

$entity
staticprotected

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

◆ $objectClass

$objectClass
staticprotected

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

◆ $reservedWords

$reservedWords
staticprotected
Инициализатор
= [
'abstract', 'and', 'array', 'as', 'break', 'callable', 'case', 'catch', 'class', 'clone', 'const', 'continue',
'declare', 'default', 'die', 'do', 'echo', 'else', 'elseif', 'empty', 'enddeclare', 'endfor', 'endforeach',
'endif', 'endswitch', 'endwhile', 'eval', 'exit', 'extends', 'final', 'finally', 'for', 'foreach', 'function',
'global', 'goto', 'if', 'implements', 'include', 'include_once', 'instanceof', 'insteadof', 'interface', 'isset',
'list', 'namespace', 'new', 'or', 'print', 'private', 'protected', 'public', 'require', 'require_once', 'return',
'static', 'switch', 'throw', 'trait', 'try', 'unset', 'use', 'var', 'while', 'xor', 'yield',
'self', 'parent',
'int', 'float', 'bool', 'string', 'true', 'false', 'null', 'void', 'iterable', 'object', 'resource', 'mixed', 'numeric',
]

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

◆ EVENT_ON_ADD

const EVENT_ON_ADD = "OnAdd"

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

◆ EVENT_ON_AFTER_ADD

const EVENT_ON_AFTER_ADD = "OnAfterAdd"

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

◆ EVENT_ON_AFTER_DELETE

const EVENT_ON_AFTER_DELETE = "OnAfterDelete"

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

◆ EVENT_ON_AFTER_UPDATE

const EVENT_ON_AFTER_UPDATE = "OnAfterUpdate"

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

◆ EVENT_ON_BEFORE_ADD

const EVENT_ON_BEFORE_ADD = "OnBeforeAdd"

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

◆ EVENT_ON_BEFORE_DELETE

const EVENT_ON_BEFORE_DELETE = "OnBeforeDelete"

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

◆ EVENT_ON_BEFORE_UPDATE

const EVENT_ON_BEFORE_UPDATE = "OnBeforeUpdate"

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

◆ EVENT_ON_DELETE

const EVENT_ON_DELETE = "OnDelete"

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

◆ EVENT_ON_UPDATE

const EVENT_ON_UPDATE = "OnUpdate"

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