Relation implements ArrayAccess, RegistryEntry, ActiveRecord uses FieldAccessImplementation, ActiveRecordImplementation, RegistryEntryImplementation, ContextCustomer
Table of Contents
Interfaces
- ArrayAccess
- RegistryEntry
- ActiveRecord
Methods
- __construct() : mixed
- delete() : Result
- fill() : static
- Fills object's fields with provided values.
- fillActual() : self
- fillRestriction() : self
- getCallStatus() : int|null
- getChat() : Chat
- getChatId() : int|null
- getContext() : Context
- Returns the local or global context for the action.
- getCounter() : int|null
- getDataClass() : string
- Returns ORM tablet class name.
- getDataEntity() : EntityObject
- getId() : int|null
- getLastFileId() : int|null
- getLastId() : int|null
- getLastRead() : DateTime|null
- getLastSendId() : int|null
- getLastSendMessageId() : int|null
- getManager() : bool|null
- getMessageStatus() : string|null
- getMessageType() : string|null
- getNotifyBlock() : bool|null
- getPrimaryId() : int|null
- getReason() : Reason
- getRegistry() : Registry|null
- Return link of the object's registry.
- getStartCounter() : int|null
- getStartId() : int|null
- getStatus() : int|null
- getUnreadId() : int|null
- getUser() : User
- getUserId() : int|null
- isChanged() : bool
- Tells true if object has been changed.
- isDeleted() : bool
- Tells true if object marked to drop.
- load() : Result
- markAsFake() : self
- 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
- prepareReasonForLoad() : Reason
- prepareReasonForSave() : string
- save() : Result
- Saves object state into database.
- setCallStatus() : Relation
- setChatId() : Relation
- setContext() : self
- Sets new context for operations.
- setContextUser() : self
- setCounter() : Relation
- setId() : Relation
- setLastFileId() : Relation
- setLastId() : Relation
- setLastRead() : Relation
- setLastSendId() : Relation
- setLastSendMessageId() : Relation
- setManager() : Relation
- setMessageStatus() : Relation
- setMessageType() : Relation
- setNotifyBlock() : Relation
- setPrimaryId() : self
- setReason() : self
- setRegistry() : self
- setStartCounter() : Relation
- setStartId() : Relation
- setStatus() : Relation
- setUnreadId() : Relation
- setUserId() : Relation
- toArray() : array<string|int, mixed>
- Returns object state as array.
- 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
delete()
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
selffillRestriction()
public
fillRestriction(bool $hideHistory, Chat $chat) : self
Parameters
- $hideHistory : bool
- $chat : Chat
Return values
selfgetCallStatus()
public
getCallStatus() : int|null
Return values
int|nullgetChat()
public
getChat() : Chat
Return values
ChatgetChatId()
public
getChatId() : int|null
Return values
int|nullgetContext()
Returns the local or global context for the action.
public
getContext() : Context
Return values
ContextgetCounter()
public
getCounter() : int|null
Return values
int|nullgetDataClass()
Returns ORM tablet class name.
public
static getDataClass() : string
Return values
stringgetDataEntity()
public
getDataEntity() : EntityObject
Return values
EntityObjectgetId()
public
getId() : int|null
Return values
int|nullgetLastFileId()
public
getLastFileId() : int|null
Return values
int|nullgetLastId()
public
getLastId() : int|null
Return values
int|nullgetLastRead()
public
getLastRead() : DateTime|null
Return values
DateTime|nullgetLastSendId()
public
getLastSendId() : int|null
Return values
int|nullgetLastSendMessageId()
public
getLastSendMessageId() : int|null
Return values
int|nullgetManager()
public
getManager() : bool|null
Return values
bool|nullgetMessageStatus()
public
getMessageStatus() : string|null
Return values
string|nullgetMessageType()
public
getMessageType() : string|null
Return values
string|nullgetNotifyBlock()
public
getNotifyBlock() : bool|null
Return values
bool|nullgetPrimaryId()
public
getPrimaryId() : int|null
Return values
int|nullgetReason()
public
getReason() : Reason
Return values
ReasongetRegistry()
Return link of the object's registry.
public
getRegistry() : Registry|null
Return values
Registry|nullgetStartCounter()
public
getStartCounter() : int|null
Return values
int|nullgetStartId()
public
getStartId() : int|null
Return values
int|nullgetStatus()
public
getStatus() : int|null
Return values
int|nullgetUnreadId()
public
getUnreadId() : int|null
Return values
int|nullgetUser()
public
getUser() : User
Return values
UsergetUserId()
public
getUserId() : int|null
Return values
int|nullisChanged()
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
boolload()
public
load(int|array<string|int, mixed>|EntityObject $source) : Result
Parameters
- $source : int|array<string|int, mixed>|EntityObject
Return values
ResultmarkAsFake()
public
markAsFake() : self
Return values
selfmarkChanged()
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
ResultprepareReasonForLoad()
public
prepareReasonForLoad(string $reason) : Reason
Parameters
- $reason : string
Return values
ReasonprepareReasonForSave()
public
prepareReasonForSave(Reason $reason) : string
Parameters
- $reason : Reason
Return values
stringsave()
Saves object state into database.
public
save() : Result
Return values
ResultsetCallStatus()
public
setCallStatus(int|null $callStatus) : Relation
Parameters
- $callStatus : int|null
Return values
RelationsetChatId()
public
setChatId(int|null $chatId) : Relation
Parameters
- $chatId : int|null
Return values
RelationsetContext()
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
selfsetCounter()
public
setCounter(int|null $counter) : Relation
Parameters
- $counter : int|null
Return values
RelationsetId()
public
setId(int|null $id) : Relation
Parameters
- $id : int|null
Return values
RelationsetLastFileId()
public
setLastFileId(int|null $lastFileId) : Relation
Parameters
- $lastFileId : int|null
Return values
RelationsetLastId()
public
setLastId(int|null $lastId) : Relation
Parameters
- $lastId : int|null
Return values
RelationsetLastRead()
public
setLastRead(DateTime|null $lastRead) : Relation
Parameters
- $lastRead : DateTime|null
Return values
RelationsetLastSendId()
public
setLastSendId(int|null $lastSendId) : Relation
Parameters
- $lastSendId : int|null
Return values
RelationsetLastSendMessageId()
public
setLastSendMessageId(int|null $lastSendMessageId) : Relation
Parameters
- $lastSendMessageId : int|null
Return values
RelationsetManager()
public
setManager(bool|null $manager) : Relation
Parameters
- $manager : bool|null
Return values
RelationsetMessageStatus()
public
setMessageStatus(string|null $messageStatus) : Relation
Parameters
- $messageStatus : string|null
Return values
RelationsetMessageType()
public
setMessageType(string|null $messageType) : Relation
Parameters
- $messageType : string|null
Return values
RelationsetNotifyBlock()
public
setNotifyBlock(bool|null $notifyBlock) : Relation
Parameters
- $notifyBlock : bool|null
Return values
RelationsetPrimaryId()
public
setPrimaryId(int $primaryId) : self
Parameters
- $primaryId : int
Return values
selfsetReason()
public
setReason(Reason $reason) : self
Parameters
- $reason : Reason
Return values
selfsetRegistry()
public
setRegistry(Registry $registry) : self
Parameters
- $registry : Registry
Return values
selfsetStartCounter()
public
setStartCounter(int|null $startCounter) : Relation
Parameters
- $startCounter : int|null
Return values
RelationsetStartId()
public
setStartId(int|null $startId) : Relation
Parameters
- $startId : int|null
Return values
RelationsetStatus()
public
setStatus(int|null $status) : Relation
Parameters
- $status : int|null
Return values
RelationsetUnreadId()
public
setUnreadId(int|null $unreadId) : Relation
Parameters
- $unreadId : int|null
Return values
RelationsetUserId()
public
setUserId(int|null $userId) : Relation
Parameters
- $userId : int|null
Return values
RelationtoArray()
Returns object state as array.
public
toArray() : 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