• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/security/currentuser.php
  • Класс: BitrixMainSecurityCurrentUser
  • Вызов: CurrentUser::getName
public function getName()
{
	if (!isset($this->name))
	{
		$firstName = $this->getFirstName();
		$lastName = $this->getLastName();
		$this->name = $firstName.(strlen($firstName) <= 0 || strlen($lastName) <= 0 ? "" : " ").$lastName;
		if (strlen($this->name) <= 0)
			$this->name = $this->getLogin();
	}
	return $this->name;
}