setServerLoginURL() public method

This method sets the login URL of the CAS server.
public setServerLoginURL ( string $url ) : string
$url string the login URL
return string login url
Ejemplo n.º 1
0
 /**
  * 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();
 }