phpCAS::getAttributes PHP 메소드

getAttributes() 공개 정적인 메소드

Answer attributes about the authenticated user.
public static getAttributes ( ) : array
리턴 array
    public static function getAttributes()
    {
        phpCAS::_validateClientExists();
        try {
            return self::$_PHPCAS_CLIENT->getAttributes();
        } catch (Exception $e) {
            phpCAS::error(get_class($e) . ': ' . $e->getMessage());
        }
    }

Usage Example

예제 #1
0
파일: NXUser.php 프로젝트: nitroxy/nxauth
 public function __construct()
 {
     $this->attr = phpCAS::getAttributes();
     $this->attr['username'] = phpCAS::getUser();
     $this->id = $this->attr['user_id'];
     unset($this->attr['sequence_token']);
 }
All Usage Examples Of phpCAS::getAttributes