CAS_Client::setServerSamlValidateURL PHP Method

setServerSamlValidateURL() public method

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

Usage Example

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