• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Reaction/ReactionMessages.php
  • Класс: BitrixImV2MessageReactionReactionMessages
  • Вызов: ReactionMessages::initFromArray
static function initFromArray(array $reactionArray, bool $withOwnReactions = true): self
{
	$reactions = new static([], $withOwnReactions);

	foreach ($reactionArray as $reaction)
	{
		$reactions->addReactionMessage($reaction);
	}

	return $reactions;
}