• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/security/user.php
  • Класс: BitrixSenderSecurityUser
  • Вызов: User::getObject
public function getObject()
{
	if ($this->object)
	{
		return $this->object;
	}

	if ($this->isCurrent())
	{
		$this->object = (is_object($GLOBALS['USER']) && ($GLOBALS['USER'] instanceof CUser)) ? $GLOBALS['USER'] : null;
	}

	if (!$this->object)
	{
		$this->object = new CUser();
	}

	return $this->object;
}