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
createFromMessage()
public
static createFromMessage(Message $message[, Context|null $context = null ]) : self
Parameters
Return values
selfdelete()
public
delete() : Result
Return values
Resultfill()
Fills object's fields with provided values.
public
fill(array<string|int, mixed> $source) : static
Parameters
- $source : array<string|int, mixed>
Return values
staticfillActual()
public
fillActual(array<string|int, mixed> $fieldsToFill) : self
Parameters
- $fieldsToFill : array<string|int, mixed>
Return values
selfgetAuthorId()
public
getAuthorId() : int
Return values
intgetByMessageAndUserId()
public
static getByMessageAndUserId(Message $message, int $userId) : self|null
Parameters
- $message : Message
- $userId : int
Return values
self|nullgetChatId()
public
getChatId() : int
Return values
intgetContext()
Returns the local or global context for the action.
public
getContext() : Context
Return values
ContextgetDataClass()
Returns ORM tablet class name.
public
static getDataClass() : string
Return values
stringgetDataEntity()
public
getDataEntity() : EntityObject
Return values
EntityObjectgetDateCreate()
public
getDateCreate() : DateTime
Return values
DateTimegetDateRemind()
public
getDateRemind() : DateTime
Return values
DateTimegetEntity()
public
getEntity() : Message
Return values
MessagegetEntityClassName()
Returns the class name of the entity that the link contains.
public
static getEntityClassName() : string|RestEntity
Return values
string|RestEntitygetEntityId()
Returns the ID of the entity that the link contains.
public
getEntityId() : int|null
Return values
int|nullgetId()
public
getId() : int|null
Return values
int|nullgetMessageId()
public
getMessageId() : int|null
Return values
int|nullgetPopupData()
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
PopupDatagetPrimaryId()
public
getPrimaryId() : int|null
Return values
int|nullgetRegistry()
Return link of the object's registry.
public
getRegistry() : Registry|null
Return values
Registry|nullgetRestEntityName()
Returns the name of the entity that will be used in the rest response
public
static getRestEntityName() : string
Return values
stringinitByEntity()
public
static initByEntity(EO_LinkReminder $entity) : self
Parameters
- $entity : EO_LinkReminder
Return values
selfisChanged()
Tells true if object has been changed.
public
isChanged() : bool
Return values
boolisDeleted()
Tells true if object marked to drop.
public
isDeleted() : bool
Return values
boolisReminded()
public
isReminded() : bool
Return values
boollinkEntityToMessage()
public
static linkEntityToMessage(RestEntity $entity, Message $message) : static
Parameters
- $entity : RestEntity
- $message : Message
Return values
staticload()
public
load(int|array<string|int, mixed>|EntityObject $source) : Result
Parameters
- $source : int|array<string|int, mixed>|EntityObject
Return values
ResultmarkChanged()
Marks object changed.
public
markChanged([bool|null $state = null ]) : static
Parameters
- $state : bool|null = null
Return values
staticmarkDrop()
Marks object to drop on save.
public
markDrop() : static
Return values
staticoffsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
onAfterOrmUpdate()
public
onAfterOrmUpdate(array<string|int, mixed> $fields) : self
Parameters
- $fields : array<string|int, mixed>
Return values
selfprepareFields()
public
prepareFields() : Result
Return values
Resultsave()
public
save() : Result
Return values
ResultsetAuthorId()
public
setAuthorId(int $authorId) : BaseLinkItem
Parameters
- $authorId : int
Return values
BaseLinkItemsetChatId()
public
setChatId(int $chatId) : BaseLinkItem
Parameters
- $chatId : int
Return values
BaseLinkItemsetContext()
Sets new context for operations.
public
setContext(Context|null $context) : self
Parameters
- $context : Context|null
Return values
selfsetContextUser()
public
setContextUser(mixed $user) : self
Parameters
- $user : mixed
Return values
selfsetDateCreate()
public
setDateCreate(DateTime $dateCreate) : BaseLinkItem
Parameters
- $dateCreate : DateTime
Return values
BaseLinkItemsetDateRemind()
public
setDateRemind(DateTime $dateRemind) : ReminderItem
Parameters
- $dateRemind : DateTime
Return values
ReminderItemsetEntity()
public
setEntity(RestEntity $entity) : static
Parameters
- $entity : RestEntity
Return values
staticsetEntityId()
public
setEntityId(int|null $entityId) : BaseLinkItem
Parameters
- $entityId : int|null
Return values
BaseLinkItemsetId()
public
setId(int $id) : BaseLinkItem
Parameters
- $id : int
Return values
BaseLinkItemsetIsReminded()
public
setIsReminded(bool $isReminded) : ReminderItem
Parameters
- $isReminded : bool
Return values
ReminderItemsetMessageId()
public
setMessageId(int|null $messageId) : BaseLinkItem
Parameters
- $messageId : int|null
Return values
BaseLinkItemsetMessageInfo()
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
staticsetPrimaryId()
public
setPrimaryId(int $primaryId) : self
Parameters
- $primaryId : int
Return values
selfsetRegistry()
public
setRegistry(Registry $registry) : self
Parameters
- $registry : Registry
Return values
selftoArray()
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>|nulltoRestFormatIdOnly()
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
staticwithContextUser()
Provides local context for the action.
public
withContextUser(int|User|User $user) : static
Parameters
- $user : int|User|User