JRequest
JRequest Class
This class serves to provide the Joomla Framework with a common interface to access request variables. This includes $_POST, $_GET, and naturally $_REQUEST. Variables can be passed through an input filter to avoid injection or returned raw.
Located in /joomla/environment/request.php (line 46)
JRequest (Subpackage Environment)
Fetches and returns a request array.
The default behaviour is fetching variables depending on the current request method: GET and HEAD will result in returning $_GET, POST and PUT will result in returning $_POST.
You can force the source by setting the $hash parameter:
post $_POST get $_GET files $_FILES cookie $_COOKIE method via current $_SERVER['REQUEST_METHOD'] default $_REQUEST
- string $hash: to get (POST, GET, FILES, METHOD)
- int $mask: Filter mask for the variable
Fetches and returns a given variable.
The default behaviour is fetching variables depending on the current request method: GET and HEAD will result in returning an entry from $_GET, POST and PUT will result in returning an entry from $_POST.
You can force the source by setting the $hash parameter:
post $_POST get $_GET files $_FILES cookie $_COOKIE method via current $_SERVER['REQUEST_METHOD'] default $_REQUEST
- string $name: Variable name
- string $default: Default value if the variable does not exist
- string $hash: Where the var should come from (POST, GET, FILES, COOKIE, METHOD)
- string $type: Return type for the variable (INT, FLOAT, STRING, BOOLEAN, ARRAY)
- int $mask: Filter mask for the variable
- $array
- $hash
- $overwrite
- $name
- $value
- $hash
- $overwrite
Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked
- array $array: Array to clean
- boolean $globalise: True if the array is to be added to the GLOBALS
- &$array
Strips slashes recursively on an array
- array $array: Array of (nested arrays of) strings
- $value
Documentation generated on Mon, 05 Mar 2007 21:20:12 +0000 by phpDocumentor 1.3.1