CAS_Client::setServerSamlValidateURL PHP Метод

setServerSamlValidateURL() публичный Метод

This method sets the samlValidate URL of the CAS server.
public setServerSamlValidateURL ( string $url ) : string
$url string the samlValidate URL
Результат 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
 /**
  * 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