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
コード例 #1
0
ファイル: CAS.php プロジェクト: DCUnit711/Demeter
 /**
  * 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();
 }