library/Garp/3rdParty/facebook/src/base_facebook.php
protected function getUrl($name, $path='', $params=array()) {
    $url = self::$DOMAIN_MAP[$name];
    if ($path) {
      if ($path[0] === '/') {
        $path = substr($path, 1);
      }
      $url .= $path;
    }
    if ($params) {
      $url .= '?' . http_build_query($params, null, '&');
    }

    return $url;
  }
protected function getUrl($name, $path='', $params=array()) {
    $url = self::$DOMAIN_MAP[$name];
    if ($path) {
      if ($path[0] === '/') {
        $path = substr($path, 1);
      }
      $url .= $path;
    }
    if ($params) {
      $url .= '?' . http_build_query($params, null, '&');
    }

    return $url;
  }
protected function getUrl ( $ name , $ path = '' , $ params = array ( ) ) { $ url = self :: $ DOMAIN_MAP [ $ name ] ; if ( $ path ) { if ( $ path [ 0 ] === '/' ) { $ path = substr ( $ path , 1 ) ; } $ url .= $ path ; } if ( $ params ) { $ url .= '?' . http_build_query ( $ params , null , '&' ) ; } return $ url ; }
Build the URL for given domain alias, path and parameters.

@param $name string The name of the domain
@param $path string Optional path (without a leading slash)
@param $params array Optional query parameters

@return string The URL for the given parameters
Build the URL for given domain alias path and parameters .