public setServerServiceValidateURL ( string $url ) : string | ||
$url | string | the serviceValidate URL |
return | 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;
}
/** * 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(); }