ObjectLockTable extends DataManager
FinalYes
Class ObjectLockTable
Fields:
- ID int mandatory
- TOKEN string(255) mandatory
- OBJECT_ID int mandatory
- CREATED_BY int mandatory
- CREATE_TIME datetime mandatory
- EXPIRY_TIME datetime optional
- TYPE int mandatory
- IS_EXCLUSIVE int optional
Table of Contents
Constants
- MAX_LENGTH_BATCH_MYSQL_QUERY = \Bitrix\Disk\Internals\Db\SqlHelper::MAX_LENGTH_BATCH_MYSQL_QUERY
- TYPE_READ = 3
- TYPE_WRITE = 2
Methods
- className() : string
- createCollection() : EO_ObjectLock_Collection
- createObject() : EO_ObjectLock
- deleteByFilter() : bool
- Deletes rows by filter.
- getById() : EO_ObjectLock_Result
- getByPrimary() : EO_ObjectLock_Result
- getEntity() : EO_ObjectLock_Entity
- getList() : EO_ObjectLock_Result
- getListOfTypeValues() : mixed
- getMap() : array<string|int, mixed>
- Returns entity map definition
- getTableName() : string
- Returns DB table name for entity
- merge() : mixed
- query() : EO_ObjectLock_Query
- Creates and returns the Query object for the entity
- validateToken() : array<string|int, mixed>
- Returns validators for TOKEN field.
- wakeUpCollection() : EO_ObjectLock_Collection
- wakeUpObject() : EO_ObjectLock
Constants
MAX_LENGTH_BATCH_MYSQL_QUERY
public
mixed
MAX_LENGTH_BATCH_MYSQL_QUERY
= \Bitrix\Disk\Internals\Db\SqlHelper::MAX_LENGTH_BATCH_MYSQL_QUERY
TYPE_READ
public
mixed
TYPE_READ
= 3
TYPE_WRITE
public
mixed
TYPE_WRITE
= 2
Methods
className()
public
static className() : string
Return values
string —the fully qualified name of this class.
createCollection()
public
static createCollection() : EO_ObjectLock_Collection
Return values
EO_ObjectLock_CollectioncreateObject()
public
static createObject([mixed $setDefaultValues = = 'true' ]) : EO_ObjectLock
Parameters
- $setDefaultValues : mixed = = 'true'
Return values
EO_ObjectLockdeleteByFilter()
Deletes rows by filter.
public
static deleteByFilter(array<string|int, mixed> $filter) : bool
Parameters
- $filter : array<string|int, mixed>
-
Filter
Tags
Return values
boolgetById()
public
static getById(mixed $id) : EO_ObjectLock_Result
Parameters
- $id : mixed
Return values
EO_ObjectLock_ResultgetByPrimary()
public
static getByPrimary(mixed $primary[, array<string|int, mixed> $parameters = = '[]' ]) : EO_ObjectLock_Result
Parameters
- $primary : mixed
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_ObjectLock_ResultgetEntity()
public
static getEntity() : EO_ObjectLock_Entity
Return values
EO_ObjectLock_EntitygetList()
public
static getList([array<string|int, mixed> $parameters = = '[]' ]) : EO_ObjectLock_Result
Parameters
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_ObjectLock_ResultgetListOfTypeValues()
public
static getListOfTypeValues() : mixed
getMap()
Returns entity map definition
public
static getMap() : array<string|int, mixed>
Return values
array<string|int, mixed>getTableName()
Returns DB table name for entity
public
static getTableName() : string
Return values
stringmerge()
public
static merge(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
query()
Creates and returns the Query object for the entity
public
static query() : EO_ObjectLock_Query
Return values
EO_ObjectLock_QueryvalidateToken()
Returns validators for TOKEN field.
public
static validateToken() : array<string|int, mixed>
Return values
array<string|int, mixed>wakeUpCollection()
public
static wakeUpCollection(mixed $rows) : EO_ObjectLock_Collection
Parameters
- $rows : mixed
Return values
EO_ObjectLock_CollectionwakeUpObject()
public
static wakeUpObject(mixed $row) : EO_ObjectLock
Parameters
- $row : mixed