hasAttributes() public method

Check whether attributes are available
public hasAttributes ( ) : boolean
return boolean attributes available
Beispiel #1
0
 /**
  * Answer true if there are attributes for the authenticated user.
  *
  * @warning should only be called after phpCAS::forceAuthentication()
  * or phpCAS::checkAuthentication().
  *
  * @return bool
  */
 public static function hasAttributes()
 {
     phpCAS::_validateClientExists();
     try {
         return self::$_PHPCAS_CLIENT->hasAttributes();
     } catch (Exception $e) {
         phpCAS::error(get_class($e) . ': ' . $e->getMessage());
     }
 }