Bitrix API

Params extends Registry

Tags
implements

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'

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'

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'
public mixed LINK_ACTIVE = 'LINK_ACTIVE'

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'

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
self

addType()

Add new message parameter description.

public static addType(string $paramName, array<string|int, mixed> $description) : void
Parameters
$paramName : string
$description : array<string|int, mixed>

fill()

public fill(array<string, mixed> $values) : self
Parameters
$values : array<string, mixed>
Return values
self

filter()

public filter(callable $predicate) : $this
Parameters
$predicate : callable
Return values
$this

getAny()

public getAny() : T|null
Return values
T|null

getMessageId()

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

getType()

Returns message parameter description.

public static getType(string $paramName) : array<string|int, mixed>
Parameters
$paramName : string
Tags
@return

array<string: type, string: className, mixed: default, callable: saveValueFilter, callable: loadValueFilter>

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
bool

isSet()

public isSet(string $paramName) : bool
Parameters
$paramName : string
Return values
bool

loadByMessageId()

public loadByMessageId(int $messageId) : Result
Parameters
$messageId : int
Return values
Result

merge()

public merge(Registry<string|int, T$registry) : static
Parameters
$registry : Registry<string|int, T>
Return values
static

offsetExists()

public offsetExists(string $offset) : bool
Parameters
$offset : string
Return values
bool

offsetUnset()

public offsetUnset(string $offset) : void
Parameters
$offset : string

remove()

public remove([string $paramName = '' ]) : self
Parameters
$paramName : string = ''
Return values
self

set()

public set(string $paramName, mixed $parameter) : self
Parameters
$paramName : string
$parameter : mixed
Return values
self

setMessageId()

public setMessageId(int $messageId) : $this
Parameters
$messageId : int
Return values
$this

toArray()

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>

        
On this page

Search results