Params extends Registry
Tags
Table of Contents
Constants
- ATTACH = 'ATTACH'
- AVATAR = 'AVATAR'
- BETA = 'BETA'
- CALL_ID = 'CALL_ID'
- CAN_ANSWER = 'CAN_ANSWER'
- CHAT_ID = 'CHAT_ID'
- CHAT_LAST_DATE = 'CHAT_LAST_DATE'
- CHAT_MESSAGE = 'CHAT_MESSAGE'
- CHAT_USER = 'CHAT_USER'
- CODE = 'CODE'
- COMPONENT_ID = 'COMPONENT_ID'
- COMPONENT_PARAMS = 'COMPONENT_PARAMS'
- COPILOT_PROMPT_CODE = 'COPILOT_PROMPT_CODE'
- COPILOT_ROLE = 'COPILOT_ROLE'
- CRM_FORM_FILLED = 'CRM_FORM_FILLED'
- CRM_FORM_ID = 'CRM_FORM_ID'
- CRM_FORM_SEC = 'CRM_FORM_SEC'
- DATE_TEXT = 'DATE_TEXT'
- DATE_TS = 'DATE_TS'
- EVENT_MESSAGE_PARAM_TYPE_INIT = 'OnMessageParamTypesInit'
- FAVORITE = 'FAVORITE'
- FILE_ID = 'FILE_ID'
- FORWARD_CHAT_TITLE = 'FORWARD_CHAT_TITLE'
- FORWARD_CONTEXT_ID = 'FORWARD_CONTEXT_ID'
- FORWARD_ID = 'FORWARD_ID'
- FORWARD_USER_ID = 'FORWARD_USER_ID'
- IS_DELETED = 'IS_DELETED'
- IS_DELIVERED = 'IS_DELIVERED'
- IS_EDITED = 'IS_EDITED'
- IS_ERROR = 'IS_ERROR'
- IS_PINNED = 'IS_PINNED'
- IS_ROBOT_MESSAGE = 'IS_ROBOT_MESSAGE'
- KEYBOARD = 'KEYBOARD'
- KEYBOARD_ACTION = 'KEYBOARD_ACTION'
- KEYBOARD_UID = 'KEYBOARD_UID'
- LARGE_FONT = 'LARGE_FONT'
- LIKE = 'LIKE'
- LINK_ACTIVE = 'LINK_ACTIVE'
- MENU = 'MENU'
- NAME = 'NAME'
- NOTIFY = 'NOTIFY'
- REPLY_ID = 'REPLY_ID'
- SENDING = 'SENDING'
- SENDING_TS = 'SENDING_TS'
- STYLE_CLASS = 'CLASS'
- TYPE = 'TYPE'
- URL_ID = 'URL_ID'
- URL_ONLY = 'URL_ONLY'
- USER_ID = 'USER_ID'
- USERS = 'USERS'
Methods
- __clone() : mixed
- add() : self
- addType() : void
- Add new message parameter description.
- create() : MessageParameter
- Returns instance of Parameter.
- delete() : Result
- Drops all message params.
- fill() : self
- filter() : $this
- get() : MessageParameter
- getAny() : T|null
- getMessageId() : int|null
- getType() : array<string|int, mixed>
- Returns message parameter description.
- initTypes() : void
- Loads specific modules message parameter types from .settings.php.
- isLoaded() : bool
- Tells true if paraams have been loaded from DB.
- isSet() : bool
- isValid() : Result
- load() : Result
- loadByMessage() : Result
- loadByMessageId() : Result
- merge() : static
- offsetExists() : bool
- offsetGet() : MessageParameter
- offsetSet() : void
- Alias to add method.
- offsetUnset() : void
- remove() : self
- save() : Result
- Saves changes.
- set() : self
- setMessageId() : $this
- toArray() : mixed
- toPullFormat() : array<string|int, mixed>
- toRestFormat() : array<string, string|array<string|int, mixed>>
- unsetByKeys() : void
Constants
ATTACH
public
mixed
ATTACH
= 'ATTACH'
AVATAR
public
mixed
AVATAR
= 'AVATAR'
BETA
public
mixed
BETA
= 'BETA'
CALL_ID
public
mixed
CALL_ID
= 'CALL_ID'
CAN_ANSWER
public
mixed
CAN_ANSWER
= 'CAN_ANSWER'
CHAT_ID
public
mixed
CHAT_ID
= 'CHAT_ID'
CHAT_LAST_DATE
public
mixed
CHAT_LAST_DATE
= 'CHAT_LAST_DATE'
CHAT_MESSAGE
public
mixed
CHAT_MESSAGE
= 'CHAT_MESSAGE'
CHAT_USER
public
mixed
CHAT_USER
= 'CHAT_USER'
CODE
public
mixed
CODE
= 'CODE'
COMPONENT_ID
public
mixed
COMPONENT_ID
= 'COMPONENT_ID'
COMPONENT_PARAMS
public
mixed
COMPONENT_PARAMS
= 'COMPONENT_PARAMS'
COPILOT_PROMPT_CODE
public
mixed
COPILOT_PROMPT_CODE
= 'COPILOT_PROMPT_CODE'
COPILOT_ROLE
public
mixed
COPILOT_ROLE
= 'COPILOT_ROLE'
CRM_FORM_FILLED
public
mixed
CRM_FORM_FILLED
= 'CRM_FORM_FILLED'
CRM_FORM_ID
public
mixed
CRM_FORM_ID
= 'CRM_FORM_ID'
CRM_FORM_SEC
public
mixed
CRM_FORM_SEC
= 'CRM_FORM_SEC'
DATE_TEXT
public
mixed
DATE_TEXT
= 'DATE_TEXT'
DATE_TS
public
mixed
DATE_TS
= 'DATE_TS'
EVENT_MESSAGE_PARAM_TYPE_INIT
public
mixed
EVENT_MESSAGE_PARAM_TYPE_INIT
= 'OnMessageParamTypesInit'
FAVORITE
public
mixed
FAVORITE
= 'FAVORITE'
FILE_ID
public
mixed
FILE_ID
= 'FILE_ID'
FORWARD_CHAT_TITLE
public
mixed
FORWARD_CHAT_TITLE
= 'FORWARD_CHAT_TITLE'
FORWARD_CONTEXT_ID
public
mixed
FORWARD_CONTEXT_ID
= 'FORWARD_CONTEXT_ID'
FORWARD_ID
public
mixed
FORWARD_ID
= 'FORWARD_ID'
FORWARD_USER_ID
public
mixed
FORWARD_USER_ID
= 'FORWARD_USER_ID'
IS_DELETED
public
mixed
IS_DELETED
= 'IS_DELETED'
IS_DELIVERED
public
mixed
IS_DELIVERED
= 'IS_DELIVERED'
IS_EDITED
public
mixed
IS_EDITED
= 'IS_EDITED'
IS_ERROR
public
mixed
IS_ERROR
= 'IS_ERROR'
IS_PINNED
public
mixed
IS_PINNED
= 'IS_PINNED'
IS_ROBOT_MESSAGE
public
mixed
IS_ROBOT_MESSAGE
= 'IS_ROBOT_MESSAGE'
KEYBOARD
public
mixed
KEYBOARD
= 'KEYBOARD'
KEYBOARD_ACTION
public
mixed
KEYBOARD_ACTION
= 'KEYBOARD_ACTION'
KEYBOARD_UID
public
mixed
KEYBOARD_UID
= 'KEYBOARD_UID'
LARGE_FONT
public
mixed
LARGE_FONT
= 'LARGE_FONT'
LIKE
public
mixed
LIKE
= 'LIKE'
LINK_ACTIVE
public
mixed
LINK_ACTIVE
= 'LINK_ACTIVE'
MENU
public
mixed
MENU
= 'MENU'
NAME
public
mixed
NAME
= 'NAME'
NOTIFY
public
mixed
NOTIFY
= 'NOTIFY'
REPLY_ID
public
mixed
REPLY_ID
= 'REPLY_ID'
SENDING
public
mixed
SENDING
= 'SENDING'
SENDING_TS
public
mixed
SENDING_TS
= 'SENDING_TS'
STYLE_CLASS
public
mixed
STYLE_CLASS
= 'CLASS'
TYPE
public
mixed
TYPE
= 'TYPE'
URL_ID
public
mixed
URL_ID
= 'URL_ID'
URL_ONLY
public
mixed
URL_ONLY
= 'URL_ONLY'
USER_ID
public
mixed
USER_ID
= 'USER_ID'
USERS
public
mixed
USERS
= 'USERS'
Methods
__clone()
public
__clone() : mixed
add()
public
add(mixed $parameter) : self
Parameters
- $parameter : mixed
Return values
selfaddType()
Add new message parameter description.
public
static addType(string $paramName, array<string|int, mixed> $description) : void
Parameters
- $paramName : string
- $description : array<string|int, mixed>
create()
Returns instance of Parameter.
public
static create(string $paramName) : MessageParameter
Parameters
- $paramName : string
Return values
MessageParameterdelete()
Drops all message params.
public
delete() : Result
Return values
Resultfill()
public
fill(array<string, mixed> $values) : self
Parameters
- $values : array<string, mixed>
Return values
selffilter()
public
filter(callable $predicate) : $this
Parameters
- $predicate : callable
Return values
$thisget()
public
get(string $paramName) : MessageParameter
Parameters
- $paramName : string
Return values
MessageParametergetAny()
public
getAny() : T|null
Return values
T|nullgetMessageId()
public
getMessageId() : int|null
Return values
int|nullgetType()
Returns message parameter description.
public
static getType(string $paramName) : array<string|int, mixed>
Parameters
- $paramName : string
Tags
Return values
array<string|int, mixed>initTypes()
Loads specific modules message parameter types from .settings.php.
public
static initTypes() : void
isLoaded()
Tells true if paraams have been loaded from DB.
public
isLoaded() : bool
Return values
boolisSet()
public
isSet(string $paramName) : bool
Parameters
- $paramName : string
Return values
boolisValid()
public
isValid() : Result
Return values
Resultload()
public
load(array<string|int, mixed>|Collection|EntityObject|EO_MessageParam_Collection|EO_MessageParam $source) : Result
Parameters
- $source : array<string|int, mixed>|Collection|EntityObject|EO_MessageParam_Collection|EO_MessageParam
Return values
ResultloadByMessage()
public
loadByMessage(Message $message) : Result
Parameters
- $message : Message
Return values
ResultloadByMessageId()
public
loadByMessageId(int $messageId) : Result
Parameters
- $messageId : int
Return values
Resultmerge()
public
merge(Registry<string|int, T> $registry) : static
Parameters
- $registry : Registry<string|int, T>
Return values
staticoffsetExists()
public
offsetExists(string $offset) : bool
Parameters
- $offset : string
Return values
booloffsetGet()
public
offsetGet(mixed $key) : MessageParameter
Parameters
- $key : mixed
Return values
MessageParameteroffsetSet()
Alias to add method.
public
offsetSet(string $offset, MessageParameter $entry) : void
Parameters
- $offset : string
- $entry : MessageParameter
Tags
offsetUnset()
public
offsetUnset(string $offset) : void
Parameters
- $offset : string
remove()
public
remove([string $paramName = '' ]) : self
Parameters
- $paramName : string = ''
Return values
selfsave()
Saves changes.
public
save() : Result
Return values
Resultset()
public
set(string $paramName, mixed $parameter) : self
Parameters
- $paramName : string
- $parameter : mixed
Return values
selfsetMessageId()
public
setMessageId(int $messageId) : $this
Parameters
- $messageId : int
Return values
$thistoArray()
public
toArray() : mixed
toPullFormat()
public
toPullFormat([array<string|int, mixed>|null $extraParams = null ]) : array<string|int, mixed>
Parameters
- $extraParams : array<string|int, mixed>|null = null
Return values
array<string|int, mixed>toRestFormat()
public
toRestFormat() : array<string, string|array<string|int, mixed>>
Return values
array<string, string|array<string|int, mixed>>unsetByKeys()
public
unsetByKeys(array<string|int, mixed> $keys) : void
Parameters
- $keys : array<string|int, mixed>