public static function hasAttribute($key)
    {
        phpCAS::_validateClientExists();

        try {
            return self::$_PHPCAS_CLIENT->hasAttribute($key);
        } catch (Exception $e) {
            phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
        }
    }
public static function hasAttribute($key)
    {
        phpCAS::_validateClientExists();

        try {
            return self::$_PHPCAS_CLIENT->hasAttribute($key);
        } catch (Exception $e) {
            phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
        }
    }
public static function hasAttribute ( $ key ) { phpCAS :: _validateClientExists ( ) ; try { return self :: $ _PHPCAS_CLIENT -> hasAttribute ( $ key ) ; } catch ( Exception $ e ) { phpCAS :: error ( get_class ( $ e ) . ': ' . $ e -> getMessage ( ) ) ; } }
Answer true if an attribute exists for the authenticated user.

@param string $key attribute name

@return bool
@warning should only be called after phpCAS::forceAuthentication()
or phpCAS::checkAuthentication().
Answer true if an attribute exists for the authenticated user .