Bitrix API

ReminderItem extends BaseLinkItem uses ContextCustomer

Table of Contents

Methods

__construct()  : mixed
createFromMessage()  : self
delete()  : Result
fill()  : static
Fills object's fields with provided values.
fillActual()  : self
getAuthorId()  : int
getByMessageAndUserId()  : self|null
getChatId()  : int
getContext()  : Context
Returns the local or global context for the action.
getDataClass()  : string
Returns ORM tablet class name.
getDataEntity()  : EntityObject
getDateCreate()  : DateTime
getDateRemind()  : DateTime
getEntity()  : Message
getEntityClassName()  : string|RestEntity
Returns the class name of the entity that the link contains.
getEntityId()  : int|null
Returns the ID of the entity that the link contains.
getId()  : int|null
getMessageId()  : int|null
getPopupData()  : PopupData
Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.
getPrimaryId()  : int|null
getRegistry()  : Registry|null
Return link of the object's registry.
getRestEntityName()  : string
Returns the name of the entity that will be used in the rest response
initByEntity()  : self
isChanged()  : bool
Tells true if object has been changed.
isDeleted()  : bool
Tells true if object marked to drop.
isReminded()  : bool
linkEntityToMessage()  : static
load()  : Result
markChanged()  : static
Marks object changed.
markDrop()  : static
Marks object to drop on save.
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void
onAfterOrmUpdate()  : self
prepareFields()  : Result
save()  : Result
setAuthorId()  : BaseLinkItem
setChatId()  : BaseLinkItem
setContext()  : self
Sets new context for operations.
setContextUser()  : self
setDateCreate()  : BaseLinkItem
setDateRemind()  : ReminderItem
setEntity()  : static
setEntityId()  : BaseLinkItem
setId()  : BaseLinkItem
setIsReminded()  : ReminderItem
setMessageId()  : BaseLinkItem
setMessageInfo()  : static
Associates the entity with the passed message by filling in the messageId, chatId and authorId
setPrimaryId()  : self
setRegistry()  : self
toArray()  : array<string|int, mixed>
Returns object state as array.
toRestFormat()  : array<string|int, mixed>|null
Returns an array in JSON like format to return the entity as a rest response.
toRestFormatIdOnly()  : array<string|int, mixed>
Returns an array containing the id of the link and the id of the linked entity, or an array of such arrays
withContext()  : static
Provides local context for the action.
withContextUser()  : static
Provides local context for the action.

Methods

__construct()

public __construct([mixed $source = null ]) : mixed
Parameters
$source : mixed = null

fill()

Fills object's fields with provided values.

public fill(array<string|int, mixed> $source) : static
Parameters
$source : array<string|int, mixed>
Return values
static

fillActual()

public fillActual(array<string|int, mixed> $fieldsToFill) : self
Parameters
$fieldsToFill : array<string|int, mixed>
Return values
self

getAuthorId()

public getAuthorId() : int
Return values
int

getByMessageAndUserId()

public static getByMessageAndUserId(Message $message, int $userId) : self|null
Parameters
$message : Message
$userId : int
Return values
self|null

getDataClass()

Returns ORM tablet class name.

public static getDataClass() : string
Return values
string

getEntityClassName()

Returns the class name of the entity that the link contains.

public static getEntityClassName() : string|RestEntity
Return values
string|RestEntity

getEntityId()

Returns the ID of the entity that the link contains.

public getEntityId() : int|null
Return values
int|null

getId()

public getId() : int|null
Return values
int|null

getMessageId()

public getMessageId() : int|null
Return values
int|null

getPopupData()

Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.

public getPopupData([array<string|int, mixed> $excludedList = [] ]) : PopupData
Parameters
$excludedList : array<string|int, mixed> = []
Return values
PopupData

getPrimaryId()

public getPrimaryId() : int|null
Return values
int|null

getRestEntityName()

Returns the name of the entity that will be used in the rest response

public static getRestEntityName() : string
Return values
string

initByEntity()

public static initByEntity(EO_LinkReminder $entity) : self
Parameters
$entity : EO_LinkReminder
Return values
self

isReminded()

public isReminded() : bool
Return values
bool

markChanged()

Marks object changed.

public markChanged([bool|null $state = null ]) : static
Parameters
$state : bool|null = null
Return values
static

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed

onAfterOrmUpdate()

public onAfterOrmUpdate(array<string|int, mixed> $fields) : self
Parameters
$fields : array<string|int, mixed>
Return values
self

setContext()

Sets new context for operations.

public setContext(Context|null $context) : self
Parameters
$context : Context|null
Return values
self

setContextUser()

public setContextUser(mixed $user) : self
Parameters
$user : mixed
Return values
self

setMessageInfo()

Associates the entity with the passed message by filling in the messageId, chatId and authorId

public setMessageInfo(Message $message) : static
Parameters
$message : Message
Return values
static

setPrimaryId()

public setPrimaryId(int $primaryId) : self
Parameters
$primaryId : int
Return values
self

toArray()

Returns object state as array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

toRestFormat()

Returns an array in JSON like format to return the entity as a rest response.

public toRestFormat([array<string|int, mixed> $option = [] ]) : array<string|int, mixed>|null
Parameters
$option : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null

toRestFormatIdOnly()

Returns an array containing the id of the link and the id of the linked entity, or an array of such arrays

public toRestFormatIdOnly() : array<string|int, mixed>
Return values
array<string|int, mixed>

withContext()

Provides local context for the action.

public withContext(Context|null $context) : static
Parameters
$context : Context|null
Return values
static

withContextUser()

Provides local context for the action.

public withContextUser(int|User|User $user) : static
Parameters
$user : int|User|User
Return values
static

        
On this page

Search results