RecentlyUsedTable extends DataManager
FinalYes
Class RecentlyUsedTable
Fields:
- ID int mandatory
- USER_ID int mandatory
- OBJECT_ID int mandatory
- CREATE_TIME datetime mandatory
Table of Contents
Constants
- MAX_COUNT_FOR_USER = 50
- MAX_LENGTH_BATCH_MYSQL_QUERY = \Bitrix\Disk\Internals\Db\SqlHelper::MAX_LENGTH_BATCH_MYSQL_QUERY
Methods
- className() : string
- createCollection() : EO_RecentlyUsed_Collection
- createObject() : EO_RecentlyUsed
- deleteByFilter() : bool
- Deletes rows by filter.
- deleteOldObjects() : void
- Deletes old objects from recently used log by user.
- getById() : EO_RecentlyUsed_Result
- getByPrimary() : EO_RecentlyUsed_Result
- getEntity() : EO_RecentlyUsed_Entity
- getList() : EO_RecentlyUsed_Result
- getMap() : array<string|int, mixed>
- Returns entity map definition
- getTableName() : string
- Returns DB table name for entity
- merge() : mixed
- query() : EO_RecentlyUsed_Query
- Creates and returns the Query object for the entity
- wakeUpCollection() : EO_RecentlyUsed_Collection
- wakeUpObject() : EO_RecentlyUsed
Constants
MAX_COUNT_FOR_USER
public
mixed
MAX_COUNT_FOR_USER
= 50
MAX_LENGTH_BATCH_MYSQL_QUERY
public
mixed
MAX_LENGTH_BATCH_MYSQL_QUERY
= \Bitrix\Disk\Internals\Db\SqlHelper::MAX_LENGTH_BATCH_MYSQL_QUERY
Methods
className()
public
static className() : string
Return values
string —the fully qualified name of this class.
createCollection()
public
static createCollection() : EO_RecentlyUsed_Collection
Return values
EO_RecentlyUsed_CollectioncreateObject()
public
static createObject([mixed $setDefaultValues = = 'true' ]) : EO_RecentlyUsed
Parameters
- $setDefaultValues : mixed = = 'true'
Return values
EO_RecentlyUseddeleteByFilter()
Deletes rows by filter.
public
static deleteByFilter(array<string|int, mixed> $filter) : bool
Parameters
- $filter : array<string|int, mixed>
-
Filter
Tags
Return values
booldeleteOldObjects()
Deletes old objects from recently used log by user.
public
static deleteOldObjects(int $userId) : void
Parameters
- $userId : int
-
User id.
getById()
public
static getById(mixed $id) : EO_RecentlyUsed_Result
Parameters
- $id : mixed
Return values
EO_RecentlyUsed_ResultgetByPrimary()
public
static getByPrimary(mixed $primary[, array<string|int, mixed> $parameters = = '[]' ]) : EO_RecentlyUsed_Result
Parameters
- $primary : mixed
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_RecentlyUsed_ResultgetEntity()
public
static getEntity() : EO_RecentlyUsed_Entity
Return values
EO_RecentlyUsed_EntitygetList()
public
static getList([array<string|int, mixed> $parameters = = '[]' ]) : EO_RecentlyUsed_Result
Parameters
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_RecentlyUsed_ResultgetMap()
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_RecentlyUsed_Query
Return values
EO_RecentlyUsed_QuerywakeUpCollection()
public
static wakeUpCollection(mixed $rows) : EO_RecentlyUsed_Collection
Parameters
- $rows : mixed
Return values
EO_RecentlyUsed_CollectionwakeUpObject()
public
static wakeUpObject(mixed $row) : EO_RecentlyUsed
Parameters
- $row : mixed