• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/authmanager.php
  • Класс: for
  • Вызов: for::__construct
function __construct($userId = null)
{
	global $USER;

	if($userId === null)
	{
		if(is_object($USER) && $USER->IsAuthorized())
		{
			$this->userId = $USER->GetID();
		}
	}
	else
	{
		$this->userId = $userId;
	}
}