public function setServerLoginURL($url) { // Argument Validation if (gettype($url) != 'string') { throw new CAS_TypeMismatchException($url, '$url', 'string'); } return $this->_server['login_url'] = $url; }
/** * Set the login URL of the CAS server. * * @param string $url the login URL * * @return void * @since 0.4.21 by Wyman Chan */ public static function setServerLoginURL($url = '') { phpCAS::traceBegin(); phpCAS::_validateClientExists(); try { self::$_PHPCAS_CLIENT->setServerLoginURL($url); } catch (Exception $e) { phpCAS::error(get_class($e) . ': ' . $e->getMessage()); } phpCAS::traceEnd(); }