CAS_Client::setServerServiceValidateURL PHP Метод

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

This method sets the serviceValidate URL of the CAS server.
public setServerServiceValidateURL ( string $url ) : string
$url string the serviceValidate URL
Результат string serviceValidate URL
    public function setServerServiceValidateURL($url)
    {
        // Argument Validation
        if (gettype($url) != 'string') {
            throw new CAS_TypeMismatchException($url, '$url', 'string');
        }
        return $this->_server['service_validate_url'] = $url;
    }

Usage Example

Пример #1
0
 /**
  * Set the serviceValidate URL of the CAS server.
  * Used only in CAS 1.0 validations
  *
  * @param string $url the serviceValidate URL
  *
  * @return void
  */
 public static function setServerServiceValidateURL($url = '')
 {
     phpCAS::traceBegin();
     phpCAS::_validateClientExists();
     try {
         self::$_PHPCAS_CLIENT->setServerServiceValidateURL($url);
     } catch (Exception $e) {
         phpCAS::error(get_class($e) . ': ' . $e->getMessage());
     }
     phpCAS::traceEnd();
 }
CAS_Client