CAS_Client::setURL PHP Method

setURL() public method

This method sets the URL of the current request
public setURL ( string $url ) : void
$url string url to set for service
return void
    public function setURL($url)
    {
        // Argument Validation
        if (gettype($url) != 'string') {
            throw new CAS_TypeMismatchException($url, '$url', 'string');
        }
        $this->_url = $url;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Set the fixed URL that will be set as the CAS service parameter. When this
  * method is not called, a phpCAS script uses its own URL.
  *
  * @param string $url the URL
  *
  * @return void
  */
 public static function setFixedServiceURL($url)
 {
     phpCAS::traceBegin();
     phpCAS::_validateProxyExists();
     try {
         self::$_PHPCAS_CLIENT->setURL($url);
     } catch (Exception $e) {
         phpCAS::error(get_class($e) . ': ' . $e->getMessage());
     }
     phpCAS::traceEnd();
 }
CAS_Client