original_string: public function getServerLoginURL($gateway=false,$renew=false)
      {
          phpCAS::traceBegin();
          // the URL is build only when needed
          if ( empty($this->_server['login_url']) ) {
              $this->_server['login_url'] = $this->_buildQueryUrl($this->_getServerBaseURL().'login','service='.urlencode($this->getURL()));
          }
          $url = $this->_server['login_url'];
          if ($renew) {
              // It is recommended that when the "renew" parameter is set, its
              // value be "true"
              $url = $this->_buildQueryUrl($url, 'renew=true');
          } elseif ($gateway) {
              // It is recommended that when the "gateway" parameter is set, its
              // value be "true"
              $url = $this->_buildQueryUrl($url, 'gateway=true');
          }
          phpCAS::traceEnd($url);
          return $url;
      }
code: public function getServerLoginURL($gateway=false,$renew=false)
      {
          phpCAS::traceBegin();
          // the URL is build only when needed
          if ( empty($this->_server['login_url']) ) {
              $this->_server['login_url'] = $this->_buildQueryUrl($this->_getServerBaseURL().'login','service='.urlencode($this->getURL()));
          }
          $url = $this->_server['login_url'];
          if ($renew) {
              // It is recommended that when the "renew" parameter is set, its
              // value be "true"
              $url = $this->_buildQueryUrl($url, 'renew=true');
          } elseif ($gateway) {
              // It is recommended that when the "gateway" parameter is set, its
              // value be "true"
              $url = $this->_buildQueryUrl($url, 'gateway=true');
          }
          phpCAS::traceEnd($url);
          return $url;
      }
code_tokens: public function getServerLoginURL ( $ gateway = false , $ renew = false ) { phpCAS :: traceBegin ( ) ; // the URL is build only when needed if ( empty ( $ this -> _server [ 'login_url' ] ) ) { $ this -> _server [ 'login_url' ] = $ this -> _buildQueryUrl ( $ this -> _getServerBaseURL ( ) . 'login' , 'service=' . urlencode ( $ this -> getURL ( ) ) ) ; } $ url = $ this -> _server [ 'login_url' ] ; if ( $ renew ) { // It is recommended that when the "renew" parameter is set, its // value be "true" $ url = $ this -> _buildQueryUrl ( $ url , 'renew=true' ) ; } elseif ( $ gateway ) { // It is recommended that when the "gateway" parameter is set, its // value be "true" $ url = $ this -> _buildQueryUrl ( $ url , 'gateway=true' ) ; } phpCAS :: traceEnd ( $ url ) ; return $ url ; }
docstring: This method is used to retrieve the login URL of the CAS server.
  
  @param bool $gateway true to check authentication, false to force it
  @param bool $renew   true to force the authentication with the CAS server
  
  @return a URL.
  @note It is recommended that CAS implementations ignore the "gateway"
  parameter if "renew" is set
docstring_tokens: This method is used to retrieve the login URL of the CAS server .