CAS_Client::isProxy PHP Method

isProxy() public method

Tells if a CAS client is a CAS proxy or not
public isProxy ( ) : true
return true when the CAS client is a CAs proxy, false otherwise
    public function isProxy()
    {
        return $this->_proxy;
    }

Usage Example

 /**
  * The constructor of the class, should be called only by inherited classes.
  *
  * @param CAS_Client $cas_parent the CAS _client instance that creates the
  * current object.
  *
  * @return void
  *
  * @protected
  */
 function __construct($cas_parent)
 {
     phpCAS::traceBegin();
     if (!$cas_parent->isProxy()) {
         phpCAS::error('defining PGT storage makes no sense when not using a CAS proxy');
     }
     phpCAS::traceEnd();
 }
CAS_Client