class UrlScript extends Url

Extended HTTP URL.

http://nette.org/admin/script.php/pathinfo/?name=param#fragment
                \_______________/\________/
                       |              |
                  scriptPath       pathInfo
  • scriptPath: /admin/script.php (or simply /admin/ when script is directory index)
  • pathInfo: /pathinfo/ (additional path information)

Properties

string $scriptPath
string read-only $pathInfo

Methods

__construct($url = null, $scriptPath = '')

No description

setScriptPath($value)

Sets the script-path part of URI.

string
getScriptPath()

Returns the script-path part of URI.

string
getBasePath()

Returns the base-path.

string
getPathInfo()

Returns the additional path information.

Details

at line 33
__construct($url = null, $scriptPath = '')

No description

Parameters

$url
$scriptPath

Exceptions

InvalidArgumentException

at line 45
UrlScript setScriptPath($value)

Sets the script-path part of URI.

Parameters

$value

Return Value

UrlScript

at line 56
string getScriptPath()

Returns the script-path part of URI.

Return Value

string

at line 66
string getBasePath()

Returns the base-path.

Return Value

string

at line 77
string getPathInfo()

Returns the additional path information.

Return Value

string