• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/principal.php
  • Класс: CDavPrincipal
  • Вызов: CDavPrincipal::InitializeFromArray
public function InitializeFromArray($arUser)
{
	$this->userId = $arUser['ID'];
	$this->login = $arUser['LOGIN'];
	$this->name = $arUser["NAME"].($arUser["NAME"] == '' || $arUser["LAST_NAME"] == '' ? "" : " ").$arUser["LAST_NAME"];
	if (empty($this->name))
		$this->name = $this->login;
	$this->email = $arUser['EMAIL'];

	$this->arUserGroups = CUser::GetUserGroup($this->userId);
	$this->isAdmin = in_array(1, $this->arUserGroups);
}