API17:JRequest
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 6: | Line 6: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/environment/request.php | libraries/joomla/environment/request.php | ||
| + | * see source code in [[jplatform:environment/request.php|BitBucket]] | ||
===Subpackage=== | ===Subpackage=== | ||
[[Subpackage Environment/11.1|Environment]] | [[Subpackage Environment/11.1|Environment]] | ||
| Line 71: | Line 72: | ||
<source lang="php">jimport( 'joomla.environment.request' );</source> | <source lang="php">jimport( 'joomla.environment.request' );</source> | ||
===See also=== | ===See also=== | ||
| + | * JRequest source code in [[jplatform:environment/request.php|BitBucket]] | ||
* [[JRequest|Other versions of this class]] | * [[JRequest|Other versions of this class]] | ||
{{SeeAlso:JRequest}} | {{SeeAlso:JRequest}} | ||
Revision as of 18:01, 23 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
[Edit Descripton] JRequest provides 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.
Defined in
libraries/joomla/environment/request.php
- see source code in BitBucket
Subpackage
Extends
Extended by
Methods
| Method name | Description |
|---|---|
| _cleanArray | Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked. |
| _cleanVar | Clean up an input variable. |
| checkToken | Checks for a form token in the request. |
| clean | Cleans the request from script injection. |
| get | Fetches and returns a request array. |
| getBool | Fetches and returns a given filtered variable. |
| getCmd | Fetches and returns a given filtered variable. |
| getFloat | Fetches and returns a given filtered variable. |
| getInt | Fetches and returns a given filtered variable. |
| getMethod | Gets the request method. |
| getString | Fetches and returns a given filtered variable. |
| getURI | Gets the full request path. |
| getVar | Fetches and returns a given variable. |
| getWord | Fetches and returns a given filtered variable. |
| set | Sets a request variable. |
| setVar | Set a variabe in one of the request variables. |
| _stripSlashesRecursive | Strips slashes recursively on an array. |
Importing
jimport( 'joomla.environment.request' );
See also
- JRequest source code in BitBucket
- Other versions of this class
- Retrieving data from GET and POST requests
Examples
<CodeExamplesForm />
