Class UriScript (namespace Nette\Web)


Extended HTTP URL.

                    basePath   relativeUri
                       |           |
                    /-----\/------------------\
 http://nettephp.com/admin/script.php/pathinfo/?name=param#fragment
                    \_______________/\________/
                           |              |
                      scriptPath       pathInfo

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

Object
   |
   --FreezableObject
      |
      --Uri
         |
         --UriScript
Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Web/UriScript.php (line 43)
Public Method Summary
string
Returns the base-path.
string
Returns the base-URI.
string
Returns the additional path information.
string
Returns the relative-URI.
string
Returns the script-path part of URI.
UriScript
setScriptPath (string $value)
Sets the script-path part of URI.
Methods Inherited From Uri
__construct(), appendQuery(), canonicalize(), getAbsoluteUri(), getAuthority(), getFragment(), getHost(), getHostUri(), getPass(), getPassword(), getPath(), getPort(), getQuery(), getScheme(), getUser(), isEqual(), setFragment(), setHost(), setPass(), setPassword(), setPath(), setPort(), setQuery(), setScheme(), setUser(), unescape(), __toString()
Methods Inherited From FreezableObject
freeze(), isFrozen(), updating(), __clone()
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary

Method Details

line 79

getBasePath

public string getBasePath ()

Returns the base-path.

Output
string  

line 90

getBaseUri

public string getBaseUri ()

Returns the base-URI.

Output
string  

line 112

getPathInfo

public string getPathInfo ()

Returns the additional path information.

Output
string  

line 101

getRelativeUri

public string getRelativeUri ()

Returns the relative-URI.

Output
string  

line 68

getScriptPath

public string getScriptPath ()

Returns the script-path part of URI.

Output
string  

line 55

setScriptPath

public UriScript setScriptPath (string $value)

Sets the script-path part of URI.

Input
string $value
Output
UriScript provides a fluent interface