\JRequest
JRequest Class
This class serves to provide the Joomla Platform with 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.
Synopsis
class JRequest
{
- // methods
- public static string getURI()
- public static string getMethod()
- public static mixed getVar()
- public static integer getInt()
- public static integer getUInt()
- public static float getFloat()
- public static boolean getBool()
- public static string getWord()
- public static string getCmd()
- public static string getString()
- public static string setVar()
- public static mixed get()
- public static void set()
- public static boolean checkToken()
- protected static mixed _cleanVar()
Methods
protected
- _cleanVar() — Clean up an input variable.
public
- checkToken() — Checks for a form token in the request.
- get() — Fetches and returns a request array.
- 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().
- getCmd() — Cmd (Word and Integer0 filter
- 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().
- getInt() — Fetches and returns a given filtered variable. The integer filter will allow only digits and the - sign to be returned. This is currently only a proxy function for getVar().
- getMethod() — Gets the request method.
- getString() — Fetches and returns a given filtered variable. The string filter deletes 'bad' HTML code, if not overridden by the mask.
- getUInt() — Fetches and returns a given filtered variable. The unsigned integer filter will allow only digits to be returned. This is currently only a proxy function for getVar().
- getURI() — Gets the full request path.
- getVar() — Fetches and returns a given variable.
- 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().
- set() — Sets a request variable.
- setVar() — Set a variable in one of the request variables.