|
Previous Class |
Solar_Request |
Next Page |
Solar_Request
Class for gathering details about the request environment.
To be safe, treat everything in the superglobals as tainted.
Catalog
This class is part of the Solar package.
Inheritance:
- Solar_Base
- Solar_Request
Constants
None.
Public Properties
These are all the public properties in the Solar_Request class.
You can also view the list of all public, protected, and private properties.
$argv- Imported $_SERVER['argv'] values.
$cookie- Imported $_COOKIE values.
$env- Imported $_ENV values.
$files- Imported $_FILES values.
$get- Imported $_GET values.
$http- Imported $SERVER['HTTP*'] values.
$post- Imported $_POST values.
$server- Imported $_SERVER values.
Public Methods
These are all the public methods in the Solar_Request class.
You can also view the list of all public, protected, and private methods.
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
apiVersion()- Reports the API version for this class.
argv()- Retrieves an unfiltered value by key from the $argv property, or an alternate default value if that key does not exist.
cookie()- Retrieves an unfiltered value by key from the $cookie property, or an alternate default value if that key does not exist.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
env()- Retrieves an unfiltered value by key from the $env property, or an alternate default value if that key does not exist.
files()- Retrieves an unfiltered value by key from the $files property, or an alternate default value if that key does not exist.
get()- Retrieves an unfiltered value by key from the $get property, or an alternate default value if that key does not exist.
http()- Retrieves an unfiltered value by key from the $http property, or an alternate default value if that key does not exist.
isCli()- Is this a command-line request?
isDelete()- Is this a 'DELETE' request?
isGet()- Is this a 'GET' request?
isPost()- Is this a 'POST' request?
isPut()- Is this a 'PUT' request?
isXhr()- Is this an XmlHttpRequest?
locale()- Looks up class-specific locale strings based on a key.
post()- Retrieves an unfiltered value by key from the $post property, or an alternate default value if that key does not exist.
postAndFiles()- Retrieves an unfiltered value by key from the $post and $files properties, or an alternate default value if that key does not exist in either location.
reset()- Reloads properties from the superglobal arrays.
server()- Retrieves an unfiltered value by key from the $server property, or an alternate default value if that key does not exist.