Parses the url and makes it accessible through an instance of this object.
| author | Jorgen Evens |
|---|---|
| package | WebLab |
| subpackage | Parser |
__construct($url)
__get(String $method) : Object | bool
StringThe name of the property to get.
ObjectboolIf the requested property exists its value is returned. Otherwise false is returned.defineConstants()
escape(String $url)
String
get(Array $values) : Array
| deprecated |
|---|
ArrayNames of the values you want to retrieve.
ArrayReturns the computed values for the requested values.getBasePath() : String
This path exists out of document_root/folder/to/application/
| deprecated | use BASE_PATH instead. |
|---|
StringPath to the current application root.getBaseURL() : String
StringReturns the full base URL.getDirectory() : String
StringThe absolute path to this application.getFullURL() : String
StringReturns the full URL.getHostname() : String
StringShorthand for $_SERVER['HTTP_HOST']getParameter(String $key)
StringThe key to retrieve.
getParameters() : Array
ArrayEverything behind the basepath and the $_GET parameter as an array.getPath() : String
StringThe path of the URL that is currently being viewed.getPort() : Integer
IntegerLocked at 80 for now.getProtocol() : String
StringLocked at http for now.getScriptname() : String
This will probably be your entry page, mostly index.php
StringThe name of the current script running. This will probably be your entry page, mostly index.php$_parameters : array
$_request_url : \WebLab_Parser_URL
$_url : Array