CAS_Client::setServerProxyValidateURL PHP Method

setServerProxyValidateURL() public method

This method sets the proxyValidate URL of the CAS server.
public setServerProxyValidateURL ( string $url ) : string
$url string the proxyValidate URL
return string proxyValidate URL
    public function setServerProxyValidateURL($url)
    {
        // Argument Validation
        if (gettype($url) != 'string') {
            throw new CAS_TypeMismatchException($url, '$url', 'string');
        }
        return $this->_server['proxy_validate_url'] = $url;
    }

Usage Example

示例#1
0
文件: CAS.php 项目: DCUnit711/Demeter
 /**
  * Set the proxyValidate URL of the CAS server.
  * Used for all CAS 2.0 validations
  *
  * @param string $url the proxyValidate URL
  *
  * @return void
  */
 public static function setServerProxyValidateURL($url = '')
 {
     phpCAS::traceBegin();
     phpCAS::_validateClientExists();
     try {
         self::$_PHPCAS_CLIENT->setServerProxyValidateURL($url);
     } catch (Exception $e) {
         phpCAS::error(get_class($e) . ': ' . $e->getMessage());
     }
     phpCAS::traceEnd();
 }
CAS_Client