Actions

API17

JRequest

From Joomla! Documentation

Revision as of 18:01, 23 April 2011 by Doxiki2 (Talk | contribs)

Replacement filing cabinet.png
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

Subpackage

Environment

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

[Edit See Also]

Examples

<CodeExamplesForm />