public static function getAttributes() { phpCAS::_validateClientExists(); try { return self::$_PHPCAS_CLIENT->getAttributes(); } catch (Exception $e) { phpCAS::error(get_class($e) . ': ' . $e->getMessage()); } }
public function __construct() { $this->attr = phpCAS::getAttributes(); $this->attr['username'] = phpCAS::getUser(); $this->id = $this->attr['user_id']; unset($this->attr['sequence_token']); }