Scalr_Account_User::getUserInfo PHP Method

getUserInfo() public method

public getUserInfo ( )
    public function getUserInfo()
    {
        $info = [];
        $info['id'] = $this->id;
        $info['status'] = $this->status;
        $info['email'] = $this->getEmail();
        $info['fullname'] = $this->fullname;
        $info['dtcreated'] = Scalr_Util_DateTime::convertTz($this->dtCreated);
        $info['dtlastlogin'] = $this->dtLastLogin ? Scalr_Util_DateTime::convertTz($this->dtLastLogin) : 'Never';
        $info['dtlastloginhr'] = $this->dtLastLogin ? Scalr_Util_DateTime::getFuzzyTimeString($this->dtLastLogin) : 'Never';
        $info['gravatarhash'] = $this->getGravatarHash();
        $info['type'] = $this->type;
        $info['comments'] = $this->comments;
        $info['is2FaEnabled'] = $this->getSetting(Scalr_Account_User::SETTING_SECURITY_2FA_GGL) == '1' ? true : false;
        $info['password'] = $this->password ? true : false;
        return $info;
    }