Class UriScript (namespace Nette\Web)


Extended HTTP URL.

                    basePath   relativeUri
                       |           |
                    /-----\/------------------\
 https://nette.org/admin/script.php/pathinfo/?name=param#fragment
                    \_______________/\________/
                           |              |
                      scriptPath       pathInfo

  • basePath: /admin/ (everything before relative URI not including the script name)
  • baseUri: https://nette.org/admin/
  • scriptPath: /admin/script.php
  • relativeUri: script.php/pathinfo/
  • pathInfo: /pathinfo/ (additional path information)

Object
   |
   --Uri
      |
      --UriScript
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Web/UriScript.php (line 50)
Public Method Summary
string
Returns the base-path.
string
Returns the base-URI.
string
Returns the additional path information.
string
Returns the relative-URI.
Methods Inherited From Uri
__construct(), canonicalize(), getAbsoluteUri(), getAuthority(), getHostUri(), isEqual(), unescape(), __toString()
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary
string $scriptPath

line 53


Method Details

line 61

getBasePath

public string getBasePath ()

Returns the base-path.

Output
string  

line 72

getBaseUri

public string getBaseUri ()

Returns the base-URI.

Output
string  

line 94

getPathInfo

public string getPathInfo ()

Returns the additional path information.

Output
string  

line 83

getRelativeUri

public string getRelativeUri ()

Returns the relative-URI.

Output
string