• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/user.php
  • Класс: BitrixImUser
  • Вызов: User::__construct
protected function __construct($userId = null)
{
	global $USER;

	$this->userId = (int)$userId;
	if ($this->userId <= 0 && is_object($USER) && $USER->GetID() > 0)
	{
		$this->userId = (int)$USER->GetID();
	}
}