public
|
getPath(): string
Returns the relative path.
Returns the relative path.
This is being calculated using the base url. This path will not start
with a slash, so it will always return something like
'example/path.html'.
If the full path is equal to the base url, this method will return an
empty string.
This method will also urldecode the path, and if the url was encoded as
ISO-8859-1, it will convert it to UTF-8.
If the path is outside of the base url, a LogicException will be thrown.
Implemented by
|
#
|
public
|
getPostData(): array
Returns the POST data.
Returns the POST data.
This is equivalent to PHP's $_POST superglobal.
Implemented by
|
#
|
public
|
setPostData(array $postData)
Sets the post data.
Sets the post data.
This is equivalent to PHP's $_POST superglobal.
This would not have been needed, if POST data was accessible as
php://input, but unfortunately we need to special case it.
Implemented by
|
#
|