• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/MessageCollection.php
  • Класс: BitrixImV2MessageCollection
  • Вызов: MessageCollection::fillParams
public function fillParams(): self
{
	$messageIds = $this->getIds();
	if (!$this->isParamsFilled && !empty($messageIds))
	{
		$paramsCollection = MessageParamTable::query()
			->setSelect(['*'])
			->whereIn('MESSAGE_ID', $this->getIds())
			->fetchCollection()
		;

		foreach ($paramsCollection as $paramRow)
		{
			$this[$paramRow->getMessageId()]->getParams(true)->load($paramRow);
		}

		$this->isParamsFilled = true;
	}

	return $this;
}