RelationTable extends DataManager uses DeleteByFilterTrait, UpdateByFilterTrait
Class RelationTable
Fields:
- ID int mandatory
- CHAT_ID int mandatory
- MESSAGE_TYPE string(1) optional default 'P'
- USER_ID int mandatory
- START_ID int optional
- LAST_ID int optional
- LAST_SEND_ID int optional
- LAST_FILE_ID int optional
- LAST_READ datetime optional
- STATUS int optional
- CALL_STATUS int optional
- NOTIFY_BLOCK bool optional default 'N'
- CHAT reference to [](\Bitrix\Im\Model\MessageTable)
- START reference to [](\Bitrix\Im\Model\MessageTable)
- LAST_SEND reference to [](\Bitrix\Im\Model\MessageTable)
- LAST reference to [](\Bitrix\Im\Model\MessageTable)
- USER reference to [](\Bitrix\Main\UserTable)
Table of Contents
Methods
- createCollection() : EO_Relation_Collection
- createObject() : EO_Relation
- deleteBatch() : int
- deleteByFilter() : void
- generateSearchContent() : string
- getById() : EO_Relation_Result
- getByPrimary() : EO_Relation_Result
- getEntity() : EO_Relation_Entity
- getList() : EO_Relation_Result
- getMap() : array<string|int, mixed>
- Returns entity map definition.
- getTableName() : string
- Returns DB table name for entity.
- query() : EO_Relation_Query
- updateByFilter() : mixed
- validateMessageStatus() : array<string|int, mixed>
- Returns validators for MESSAGE_STATUS field.
- validateMessageType() : array<string|int, mixed>
- Returns validators for MESSAGE_TYPE field.
- validateReason() : array<string|int, mixed>
- Returns validators for REASON field.
- wakeUpCollection() : EO_Relation_Collection
- wakeUpObject() : EO_Relation
Methods
createCollection()
public
static createCollection() : EO_Relation_Collection
Return values
EO_Relation_CollectioncreateObject()
public
static createObject([mixed $setDefaultValues = = 'true' ]) : EO_Relation
Parameters
- $setDefaultValues : mixed = = 'true'
Return values
EO_RelationdeleteBatch()
public
static deleteBatch(array<string|int, mixed> $filter[, mixed $limit = 0 ]) : int
Parameters
- $filter : array<string|int, mixed>
- $limit : mixed = 0
Return values
intdeleteByFilter()
public
static deleteByFilter(array<string|int, mixed> $filter) : void
Parameters
- $filter : array<string|int, mixed>
Tags
generateSearchContent()
public
static generateSearchContent(array<string|int, mixed> $fields) : string
Parameters
- $fields : array<string|int, mixed>
-
Record as returned by getList
Return values
stringgetById()
public
static getById(mixed $id) : EO_Relation_Result
Parameters
- $id : mixed
Return values
EO_Relation_ResultgetByPrimary()
public
static getByPrimary(mixed $primary[, array<string|int, mixed> $parameters = = '[]' ]) : EO_Relation_Result
Parameters
- $primary : mixed
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_Relation_ResultgetEntity()
public
static getEntity() : EO_Relation_Entity
Return values
EO_Relation_EntitygetList()
public
static getList([array<string|int, mixed> $parameters = = '[]' ]) : EO_Relation_Result
Parameters
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_Relation_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
stringquery()
public
static query() : EO_Relation_Query
Return values
EO_Relation_QueryupdateByFilter()
public
static updateByFilter(array<string|int, mixed> $filter, array<string|int, mixed> $fields) : mixed
Parameters
- $filter : array<string|int, mixed>
- $fields : array<string|int, mixed>
validateMessageStatus()
Returns validators for MESSAGE_STATUS field.
public
static validateMessageStatus() : array<string|int, mixed>
Return values
array<string|int, mixed>validateMessageType()
Returns validators for MESSAGE_TYPE field.
public
static validateMessageType() : array<string|int, mixed>
Return values
array<string|int, mixed>validateReason()
Returns validators for REASON field.
public
static validateReason() : array<string|int, mixed>
Return values
array<string|int, mixed>wakeUpCollection()
public
static wakeUpCollection(mixed $rows) : EO_Relation_Collection
Parameters
- $rows : mixed
Return values
EO_Relation_CollectionwakeUpObject()
public
static wakeUpObject(mixed $row) : EO_Relation
Parameters
- $row : mixed