JRequest
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JRequest[edit]
Description[edit]
Template:Description:JRequest [Edit Descripton]
Note[edit]
JRequest is deprecated get the API17:JInput object from the application instead
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public static | _cleanArray | Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked. |
public static | _cleanVar | Clean up an input variable. |
public static | checkToken | Checks for a form token in the request. |
public static | clean | Cleans the request from script injection. |
public static | get | Fetches and returns a request array. |
public static | getBool | Fetches and returns a given filtered variable. |
public static | getCmd | Fetches and returns a given filtered variable. |
public static | getFloat | Fetches and returns a given filtered variable. |
public static | getInt | Fetches and returns a given filtered variable. |
public static | getMethod | Gets the request method. |
public static | getString | Fetches and returns a given filtered variable. |
public static | getURI | Gets the full request path. |
public static | getVar | Fetches and returns a given variable. |
public static | getWord | Fetches and returns a given filtered variable. |
public static | set | Sets a request variable. |
public static | setVar | Set a variabe in one of the request variables. |
protected static | _stripSlashesRecursive | Strips slashes recursively on an array. |
- Defined in libraries/joomla/environment/request.php
Importing[edit]
jimport( 'joomla.environment.request' );
See also[edit]
- JRequest source code on BitBucket
- Subpackage Environment
- Other versions of JRequest
- Retrieving and Filtering GET and POST requests with JRequest::getVar
Template:SeeAlso:JRequest [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />