API15

JRequest

From Joomla! Documentation

Revision as of 17:19, 22 March 2010 by Doxiki (talk | contribs) (New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JRequest}} ===Defined in=== lib...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 "API15" 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.

[Edit Descripton] Template:Description:JRequest

Defined in[edit]

libraries/joomla/environment/request.php

Methods[edit]

Method name Description
getURI Gets the full request path
getMethod Gets the request method
setVar Set a variabe in on of the request variables
set Sets a request variable
checkToken Checks for a form token in the request
getVar Fetches and returns a given variable.
getInt Fetches and returns a given filtered variable. The integer filter will allow only digits to be returned. This is currently only a proxy function for getVar().
getFloat Fetches and returns a given filtered variable. The float filter only allows digits and periods. This is currently only a proxy function for getVar().
getBool Fetches and returns a given filtered variable. The bool filter will only return true/false bool values. This is currently only a proxy function for getVar().
getWord Fetches and returns a given filtered variable. The word filter only allows the characters [A-Za-z_]. This is currently only a proxy function for getVar().
getCmd Fetches and returns a given filtered variable. The cmd filter only allows the characters [A-Za-z0-9.-_]. This is currently only a proxy function for getVar().
getString Fetches and returns a given filtered variable. The string filter deletes 'bad' HTML code, if not overridden by the mask. This is currently only a proxy function for getVar().
get Fetches and returns a request array.
clean Cleans the request from script injection.

Importing[edit]

jimport( 'joomla.environment.request' );

[Edit See Also] Template:SeeAlso:JRequest

Examples[edit]

<CodeExamplesForm />