class UrlScript extends UrlImmutable

Immutable representation of a URL with application base-path.

     baseUrl    basePath  relativePath  relativeUrl
        |          |        |               |
/---------------/-----\/--------\-----------------------------\
http://nette.org/admin/script.php/pathinfo/?name=param#fragment
                \_______________/\________/
                       |              |
                  scriptPath       pathInfo

Methods

__construct(string|UrlImmutable|Url $url = '/', string $scriptPath = '')

No description

withPath(string $path, string $scriptPath = '')

No description

string
getScriptPath()

No description

string
getBasePath()

No description

string
getRelativePath()

No description

string
getBaseUrl()

No description

string
getRelativeUrl()

No description

string
getPathInfo()

Returns the additional path information.

void
build()

No description

Details

at line 44
__construct(string|UrlImmutable|Url $url = '/', string $scriptPath = '')

Parameters

string|UrlImmutable|Url $url
string $scriptPath

Exceptions

InvalidArgumentException if URL is malformed

at line 55
UrlImmutable withPath(string $path, string $scriptPath = '')

Parameters

string $path
string $scriptPath

Return Value

UrlImmutable

at line 63
string getScriptPath()

Return Value

string

at line 69
string getBasePath()

Return Value

string

at line 75
string getRelativePath()

Return Value

string

at line 81
string getBaseUrl()

Return Value

string

at line 87
string getRelativeUrl()

Return Value

string

at line 96
string getPathInfo()

Returns the additional path information.

Return Value

string

at line 102
protected void build()

Return Value

void