phpCAS::getAttributes PHP Method

getAttributes() public static method

Answer attributes about the authenticated user.
public static getAttributes ( ) : array
return 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

Example #1
0
 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