Actions

API17

Difference between revisions of "JRequest"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (User contributed notes: bad link repair)
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
<nowiki>[</nowiki>[[Description:JRequest|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JRequest|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
 +
===Note===
 +
JRequest is deprecated get the [[JInput/11.1]] object from the application instead
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 89: Line 91:
 
* {{JVer|11.1}} Subpackage [[Subpackage Environment/11.1|Environment]]
 
* {{JVer|11.1}} Subpackage [[Subpackage Environment/11.1|Environment]]
 
* [[JRequest|Other versions of JRequest]]
 
* [[JRequest|Other versions of JRequest]]
 +
* [[Retrieving_and_Filtering_GET_and_POST_requests_with_JRequest::getVar|Retrieving and Filtering GET and POST requests with JRequest::getVar]]
 
{{SeeAlso:JRequest}}
 
{{SeeAlso:JRequest}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRequest|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JRequest|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
 +
 
===User contributed notes===
 
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
Line 104: Line 108:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JRequest]]</noinclude>
+
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JRequest]]</noinclude>

Revision as of 14:01, 29 August 2012

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.

Joomla 11.1 JRequest

Description

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. [Edit Descripton]

Note

JRequest is deprecated get the JInput/11.1 object from the application instead

Methods

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

jimport( 'joomla.environment.request' );

See also

[Edit See Also]

User contributed notes

<CodeExamplesForm />