Get uri path property for this route.
@param boolean $absolute
@return string
491459
public function getPath($absolute = false)
	{
		if(!$absolute)
		    return $this->properties['path'];

		$routes = $this->getFullRoutes();

		$paths = array();

		foreach($routes as $route)
		{
			$path = $route->getProperty('path');

			if($path == '')
				continue;

			$paths[] = $path;
		}

		return trim(implode('/', $paths), '/');
	}
1108352
public function asString($absolute = false)
  {
    $url = '/';
    if ($absolute) {
      $puny = new Punycode();
      $url = $this->getScheme() . '://' . $puny->encode($this->getHost()) . '/';
    }

    if ($a = $this->getArguments()) {
      foreach ($this->getArguments() as $str) {
        $url .= urlencode($str) . '/';
      }
    }

    $url .= $this->buildParams();

    if ($fn = $this->getFileName(true)) {
      $url .= urlencode($fn);
    }

    return $url;
  }
287038
protected function absolutePath($path = '')
    {
        if (!$path) {
            $path = $this->path();
        }

        return '/'.$this->container().($path ? '/'.ltrim($path, '/') : '');
    }
1341198
public function getAbsoluteUrl(): string
    {
        if (!$this->absoluteUrl) {
            // Guessing we're a http endpoint.
            $this->absoluteUrl = 'http://'.
                ($this->getHeader('Host') ?? 'localhost').
                $this->getUrl();
        }

        return $this->absoluteUrl;
    }
984169
public static function get($name, $var = [], $absolute = false) {
        $routes = self::resolveStatic(RESOLVE_ROUTE, $name);

        if (isset($routes[0]['' . $routes[1] . ''])) {
            $route = $routes[0]['' . $routes[1] . ''];

            $url = preg_replace('#\((.*)\)#isU', '<($1)>', $route['url']);
            $urls = explode('<', $url);
            $result = '';
            $i = 0;

            foreach ($urls as $url) {
                if (preg_match('#\)>#', $url)) {
                    if (count($var) > 0) {
                        if (isset($var[$i])) {
                            $result .= preg_replace('#\((.*)\)>#U', $var[$i], $url);
                        }
                        else {
                            $result .= preg_replace('#\((.*)\)>#U', '', $url);
                        }

                        $i++;
                    }
                }
                else {
                    $result .= $url;
                }
            }

            $result = preg_replace('#\\\.#U', '.', $result);

            if (Config::config()['user']['framework']['folder'] != '') {
                $folder = Config::config()['user']['framework']['folder'];

                if ($absolute == false) {
                    return '/' . substr($folder, 0, strlen($folder) - 1) . $result;
                }
                else {
                    if (Config::config()['user']['output']['https'])
                        return 'https://' . $_SERVER['HTTP_HOST'] . $folder . $result;
                    else
                        return 'http://' . $_SERVER['HTTP_HOST'] . $folder . $result;
                }
            }
            else {
                if ($absolute == false) {
                    if ($result == '') {
                        return '/';
                    }
                    else {
                        return $result;
                    }
                }
                else {
                    if (Config::config()['user']['output']['https'])
                        return 'https://' . $_SERVER['HTTP_HOST'] . $result;
                    else
                        return 'http://' . $_SERVER['HTTP_HOST'] . $result;
                }
            }
        }

        return null;
    }
28065
public function getBaseUri()
    {
        $controller = $this;
        return preg_replace_callback('/:(\w+)/', function ($matches) use ($controller) {
            return $controller->routeData($matches[1]);
        }, $this->baseUri);
    }
1077799
public static function path($name, $parameters = [], $absolute = false) {
		return self::getRouteByName ( $name, $parameters, $absolute );
	}
998395
public static function getUriFromFile($absolutepath)
	{
		if (self::isWindowsOS())
		{
			$result = "file:///".$absolutepath;

			$search = "\\";
			$replace = "/";

			$result =str_replace($search, $replace, $result);
		}
		else
		{
			$result = "file://".$absolutepath;
		}
		return $result;

	}
1148229
public function getRoute($slug = '', $absolute = FALSE, array $params = [])
    {
        if ('' === $slug) {
            return $absolute ? Request::getInstance()->getRootUrl() . '/' : '/';
        }
        if (!is_array($this->slugs) || !array_key_exists($slug, $this->slugs)) {
            throw new RouterException(t('No existe la ruta especificada'));
        }
        $url = $absolute ? Request::getInstance()->getRootUrl() . $this->slugs[$slug] : $this->slugs[$slug];
        if (!empty($params)) {
            foreach ($params as $key => $value) {
                $url = str_replace('{' . $key . '}', $value, $url);
            }
        } elseif (!empty($this->routing[$this->slugs[$slug]]['default'])) {
            $url = $absolute ? Request::getInstance()->getRootUrl() . $this->routing[$this->slugs[$slug]]['default'] : $this->routing[$this->slugs[$slug]]['default'];
        }

        return preg_replace('/(GET|POST|PUT|DELETE|ALL)\#\|\#/', '', $url);
    }
1077403
public function getBaseUrl($absolute = false)
    {
        $url = array();
        if ($absolute) {
            $url[] = $this->baseUrl !== null ? rtrim($this->baseUrl, '/') : Yii::app()->request->baseUrl;
        }
        $url[] = $this->fileDir;
        return rtrim(implode('/', $url), '/');
    }
206242
public function action($action, $parameters = array(), $absolute = true)
    {
        return $this->route($action, $parameters, $absolute, $this->routes->getByAction($action));
    }
160116
public function file($path, $absolute = false)
    {
        return $this->get('files/' . trim($path, '/'), array(), $absolute, true);
    }
1343364
public function route($name, $parameters = [], $absolute = true)
    {
        return app('url')->route($this->prefixRoute($name), $parameters, $absolute);
    }
133920
public function get_root_path($repository){
    if ( \is_string($repository) ){
      $repository = $this->repository($repository);
    }
    if ( !empty($repository) && !empty($repository['bbn_path']) ){
      $repository_path = !empty($repository['path']) ? '/' . $repository['path'] : '';
      $path = self::decipher_path($repository['bbn_path'] . $repository_path) . '/';
      return \bbn\str::parse_path($path);
    }
    return false;
  }
973415
public function route($name, $parameters = array(), $absolute = true, $route = null)
    {
        if($path = $this->getPathFinder()->toRouteName($name, $parameters)){
            if($absolute){
                return $this->to($path);
            }
            return $path;
        }

        return parent::route($name, $parameters, $absolute, $route);
    }
239020
private static function InternetCombineUrl( $absolute, $relative )
	{
		if ( $relative == "" ) return $absolute;

		$p = parse_url( $relative );

		if( isset( $p["scheme"] ) ) return $relative;

		extract( parse_url( $absolute ) );

		$path = dirname( $path );
		if ( $path = "\\" ) $path = "/";

		if ( $relative[0] == '/' )
		{
			$cparts = array_filter( explode( "/", $relative ) );
		}
		else
		{
			$aparts = array_filter(explode( "/", $path ) );
			$rparts = array_filter(explode( "/", $relative ) );
			$cparts = array_merge( $aparts, $rparts );
			foreach( $cparts as $i => $part )
			{
				if( $part == '.')
				{
					$cparts[$i] = null;
				}

				if($part == '..')
				{
					$cparts[$i - 1] = null;
					$cparts[$i] = null;
				}
			}
			$cparts = array_filter( $cparts );
		}

		$path = implode( "/", $cparts );
		$url = "";
		if ( $scheme )
		{
			$url = "$scheme://";
		}
		if ( isset( $user ) )
		{
			$url .= "$user";
			if( $pass )
			{
				$url .= ":$pass";
			}
			$url .= "@";
		}

		if( $host )
		{
			$url .= "$host/";
		}

		$url .= $path;

		return $url;
	}
1275327
def get_absolute_path(self, path):
        '''
        
        '''
        if os.path.isabs(path):
            return path
        else:
            return os.path.abspath(os.path.join(self.config.BASEDIR, path))