1<?php declare(strict_types=1);
17 $this->isEnabled = \Bitrix\Main\Loader::includeModule(
'im');
28 public function getParams(
int $messageId,
bool $withDefault =
false): ?array
32 return \CIMMessageParam::Get($messageId,
false, $withDefault);
47 public function getParam(
int $messageId,
string $name,
bool $withDefault =
false)
51 return \CIMMessageParam::Get($messageId, $name, $withDefault);
66 public function setParams(
int $messageId, array $values,
bool $sendPull =
true): bool
73 \CIMMessageParam::Set($messageId, $values)
74 && \CIMMessageParam::SendPull($messageId, array_keys($values))
79 return \CIMMessageParam::Set($messageId, $values);
96 public function setParam(
int $messageId,
string $name, $value,
bool $sendPull =
true): bool
103 \CIMMessageParam::Set($messageId, [$name => $value])
104 && \CIMMessageParam::SendPull($messageId, [$name])
109 return \CIMMessageParam::Set($messageId, [$name => $value]);
getParam(int $messageId, string $name, bool $withDefault=false)
setParams(int $messageId, array $values, bool $sendPull=true)
getParams(int $messageId, bool $withDefault=false)
setParam(int $messageId, string $name, $value, bool $sendPull=true)