• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/notify.php
  • Класс: BitrixImNotify
  • Вызов: Notify::__construct
public function __construct($options = [])
{
	$this->convertText = $options['CONVERT_TEXT'] ?? null;
	$this->searchText = $options['SEARCH_TEXT'] ?? null;
	$this->searchType = $options['SEARCH_TYPE'] ?? null;
	$this->searchDate = $options['SEARCH_DATE'] ?? null;
	$this->pageLimit = $options['LIMIT'] ?? null;
	$this->lastType = $options['LAST_TYPE'] ?? null;
	$this->lastId = $options['LAST_ID'] ?? null;
	$this->firstPage = !$this->lastId && !$this->lastType;

	$chatData = $this->getChatData();
	if ($chatData !== null)
	{
		$this->chatId = (int)$chatData['CHAT_ID'];
		$this->totalCount = (int)$chatData['IM_MODEL_RELATION_CHAT_MESSAGE_COUNT'];
	}
}