original_string: public function urlFor($path, $type_name = 'asset', array $params = array())
      {
          switch ($type_name) {
              case 'asset':
                  return $this->container->getRequest()->getRootUri() . $path;
                  break;
              case 'route':
                  $routeUrl = $this->container->getRequest()->getRootUri($this->getSetting('debug')) . $this->container->getRoute($path)->getPatternUri();
                  return (!empty($params)) ? $routeUrl . '?' . http_build_query($params) : $routeUrl;
                  break;
          }
      }
code: public function urlFor($path, $type_name = 'asset', array $params = array())
      {
          switch ($type_name) {
              case 'asset':
                  return $this->container->getRequest()->getRootUri() . $path;
                  break;
              case 'route':
                  $routeUrl = $this->container->getRequest()->getRootUri($this->getSetting('debug')) . $this->container->getRoute($path)->getPatternUri();
                  return (!empty($params)) ? $routeUrl . '?' . http_build_query($params) : $routeUrl;
                  break;
          }
      }
code_tokens: public function urlFor ( $ path , $ type_name = 'asset' , array $ params = array ( ) ) { switch ( $ type_name ) { case 'asset' : return $ this -> container -> getRequest ( ) -> getRootUri ( ) . $ path ; break ; case 'route' : $ routeUrl = $ this -> container -> getRequest ( ) -> getRootUri ( $ this -> getSetting ( 'debug' ) ) . $ this -> container -> getRoute ( $ path ) -> getPatternUri ( ) ; return ( ! empty ( $ params ) ) ? $ routeUrl . '?' . http_build_query ( $ params ) : $ routeUrl ; break ; } }
docstring: Return the url for the path given
  
  @param string $path      Path url path or Route name if type_name is not uri
  @param string $type_name Url type uri|route
  @param array $params     Array params route
  @return string
docstring_tokens: Return the url for the path given