|
| setRequestUri ($requestUri=null) |
|
| __construct ($uri=null) |
| Constructor.
|
|
| __get ($key) |
| Access values contained in the superglobals as public members Order of precedence: 1.
|
|
| get ($key) |
| Alias to __get.
|
|
| __set ($key, $value) |
| Set values.
|
|
| set ($key, $value) |
| Alias to __set()
|
|
| __isset ($key) |
| Check to see if a property is set.
|
|
| has ($key) |
| Alias to __isset()
|
|
| setQuery ($spec, $value=null) |
| Set GET values.
|
|
| getQuery ($key=null, $default=null) |
| Retrieve a member of the $_GET superglobal.
|
|
| setPost ($spec, $value=null) |
| Set POST values.
|
|
| getPost ($key=null, $default=null) |
| Retrieve a member of the $_POST superglobal.
|
|
| getCookie ($key=null, $default=null) |
| Retrieve a member of the $_COOKIE superglobal.
|
|
| getServer ($key=null, $default=null) |
| Retrieve a member of the $_SERVER superglobal.
|
|
| getEnv ($key=null, $default=null) |
| Retrieve a member of the $_ENV superglobal.
|
|
| setRequestUri ($requestUri=null) |
| Set the REQUEST_URI on which the instance operates.
|
|
| getRequestUri () |
| Returns the REQUEST_URI taking into account platform differences between Apache and IIS.
|
|
| setBaseUrl ($baseUrl=null) |
| Set the base URL of the request; i.e., the segment leading to the script name.
|
|
| getBaseUrl ($raw=false) |
| Everything in REQUEST_URI before PATH_INFO <form action="<?=$baseUrl?>/news/submit" method="POST">
|
|
| setBasePath ($basePath=null) |
| Set the base path for the URL.
|
|
| getBasePath () |
| Everything in REQUEST_URI before PATH_INFO not including the filename.
|
|
| setPathInfo ($pathInfo=null) |
| Set the PATH_INFO string.
|
|
| getPathInfo () |
| Returns everything between the BaseUrl and QueryString.
|
|
| setParamSources (array $paramSources=array()) |
| Set allowed parameter sources.
|
|
| getParamSources () |
| Get list of allowed parameter sources.
|
|
| setParam ($key, $value) |
| Set a userland parameter.
|
|
| getParam ($key, $default=null) |
| Retrieve a parameter.
|
|
| getParams () |
| Retrieve an array of parameters.
|
|
| setParams (array $params) |
| Set parameters.
|
|
| setAlias ($name, $target) |
| Set a key alias.
|
|
| getAlias ($name) |
| Retrieve an alias.
|
|
| getAliases () |
| Retrieve the list of all aliases.
|
|
| getMethod () |
| Return the method by which the request was made.
|
|
| isPost () |
| Was the request made by POST?
|
|
| isGet () |
| Was the request made by GET?
|
|
| isPut () |
| Was the request made by PUT?
|
|
| isDelete () |
| Was the request made by DELETE?
|
|
| isHead () |
| Was the request made by HEAD?
|
|
| isOptions () |
| Was the request made by OPTIONS?
|
|
| isXmlHttpRequest () |
| Is the request a Javascript XMLHttpRequest?
|
|
| isFlashRequest () |
| Is this a Flash request?
|
|
| isSecure () |
| Is https secure request.
|
|
| getRawBody () |
| Return the raw body of the request, if present.
|
|
| getHeader ($header) |
| Return the value of the given HTTP header.
|
|
| getScheme () |
| Get the request URI scheme.
|
|
| getHttpHost () |
| Get the HTTP host.
|
|
| getClientIp ($checkProxy=true) |
| Get the client's IP addres.
|
|
| getModuleName () |
| Retrieve the module name.
|
|
| setModuleName ($value) |
| Set the module name to use.
|
|
| getControllerName () |
| Retrieve the controller name.
|
|
| setControllerName ($value) |
| Set the controller name to use.
|
|
| getActionName () |
| Retrieve the action name.
|
|
| setActionName ($value) |
| Set the action name.
|
|
| getModuleKey () |
| Retrieve the module key.
|
|
| setModuleKey ($key) |
| Set the module key.
|
|
| getControllerKey () |
| Retrieve the controller key.
|
|
| setControllerKey ($key) |
| Set the controller key.
|
|
| getActionKey () |
| Retrieve the action key.
|
|
| setActionKey ($key) |
| Set the action key.
|
|
| getParam ($key, $default=null) |
| Get an action parameter.
|
|
| getUserParams () |
| Retrieve only user params (i.e, any param specific to the object and not the environment)
|
|
| getUserParam ($key, $default=null) |
| Retrieve a single user param (i.e, a param specific to the object and not the environment)
|
|
| setParam ($key, $value) |
| Set an action parameter.
|
|
| getParams () |
| Get all action parameters.
|
|
| setParams (array $array) |
| Set action parameters en masse; does not overwrite.
|
|
| clearParams () |
| Unset all user parameters.
|
|
| setDispatched ($flag=true) |
| Set flag indicating whether or not request has been dispatched.
|
|
| isDispatched () |
| Determine if the request has been dispatched.
|
|