• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/classes/general/im_chat.php
  • Класс: CIMChat
  • Вызов: CIMChat::__construct
function __construct($user_id = null, $arParams = Array())
{
	if (is_null($user_id))
	{
		global $USER;
		if (is_object($USER))
		{
			$this->user_id = intval($USER->GetID());
		}
	}
	else
	{
		$this->user_id = intval($user_id);
	}

	if (isset($arParams['HIDE_LINK']) && $arParams['HIDE_LINK'] == 'Y')
	{
		$this->bHideLink = true;
	}
}