phpCAS::_validateProxyExists PHP Method

_validateProxyExists() private static method

Checks of a proxy client aready exists
private static _validateProxyExists ( ) : void
return void
    private static function _validateProxyExists()
    {
        if (!is_object(self::$_PHPCAS_CLIENT)) {
            throw new CAS_OutOfSequenceBeforeProxyException();
        }
    }

Usage Example

Beispiel #1
0
 /**
  * Answer an array of proxies that are sitting in front of this application.
  * This method will only return a non-empty array if we have received and
  * validated a Proxy Ticket.
  *
  * @return array
  * @access public
  * @since 6/25/09
  */
 public static function getProxies()
 {
     phpCAS::_validateProxyExists();
     return self::$_PHPCAS_CLIENT->getProxies();
 }