• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Chat.php
  • Класс: BitrixImV2Chat
  • Вызов: Chat::getRelations
public function getRelations(array $options = []): RelationCollection
{
	$optionsHash = md5(serialize($options));

	if (isset($this->relations[$optionsHash]))
	{
		return $this->relations[$optionsHash];
	}

	$filter = $options['FILTER'] ?? [];
	$filter['CHAT_ID'] = $this->getChatId();

	$relations = RelationCollection::find(
		$filter,
		[],
		$options['LIMIT'] ?? null,
		$this->context,
		$options['SELECT'] ?? RelationCollection::COMMON_FIELDS
	);

	$this->relations[$optionsHash] = $relations;

	return $this->relations[$optionsHash];
}