Ejemplo n.º 1
0
 /**
  * Return user login
  * If custom login not available it will be fetched from DB
  *
  * @return string
  */
 public function getUserLogin()
 {
     if ($this->userLogin === null && $this->userId) {
         $this->userLogin = \Bitrix\Main\UserTable::query()->addFilter('=ID', $this->getUserId())->addSelect('LOGIN')->exec()->fetch();
         $this->userLogin = $this->userLogin['LOGIN'];
     }
     return $this->userLogin;
 }