Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques statiques | |
static | getURI () |
static | getMethod () |
static | getVar ($name, $default=null, $hash= 'default', $type= 'none', $mask=0) |
static | getInt ($name, $default=0, $hash= 'default') |
static | getUInt ($name, $default=0, $hash= 'default') |
static | getFloat ($name, $default=0.0, $hash= 'default') |
static | getBool ($name, $default=false, $hash= 'default') |
static | getWord ($name, $default= '', $hash= 'default') |
static | getCmd ($name, $default= '', $hash= 'default') |
static | getString ($name, $default= '', $hash= 'default', $mask=0) |
static | setVar ($name, $value=null, $hash= 'method', $overwrite=true) |
static | get ($hash= 'default', $mask=0) |
static | set ($array, $hash= 'default', $overwrite=true) |
static | checkToken ($method= 'post') |
Fonctions membres protégées statiques | |
static | _cleanVar ($var, $mask=0, $type=null) |
Définition à la ligne 38 du fichier request.php.
|
staticprotected |
Clean up an input variable.
mixed | $var | The input variable. |
integer | $mask | Filter bit mask. 1 = no trim: If this flag is cleared and the input is a string, the string will have leading and trailing whitespace trimmed. 2 = allow_raw: If set, no more filtering is performed, higher bits are ignored. 4 = allow_html: HTML is allowed, but passed through a safe HTML filter first. If set, no more filtering is performed. If no bits other than the 1 bit is set, a strict filter is applied. |
string | $type | The variable type { |
Définition à la ligne 525 du fichier request.php.
Références JFilterInput\getInstance().
|
static |
Checks for a form token in the request.
Use in conjunction with JHtml::_('form.token').
string | $method | The request method in which to look for the token key. |
Définition à la ligne 498 du fichier request.php.
Références JSession\checkToken().
|
static |
Fetches and returns a request array.
The default behaviour is fetching variables depending on the current request method: GET and HEAD will result in returning $_GET, POST and PUT will result in returning $_POST.
You can force the source by setting the $hash parameter:
post $_POST get $_GET files $_FILES cookie $_COOKIE env $_ENV server $_SERVER method via current $_SERVER['REQUEST_METHOD'] default $_REQUEST
string | $hash | to get (POST, GET, FILES, METHOD). |
integer | $mask | Filter mask for the variable. |
Définition à la ligne 420 du fichier request.php.
|
static |
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().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name. |
string | $default | Default value if the variable does not exist. |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD). |
Définition à la ligne 253 du fichier request.php.
|
static |
Cmd (Word and Integer0 filter
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().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name |
string | $default | Default value if the variable does not exist |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
Définition à la ligne 298 du fichier request.php.
|
static |
Fetches and returns a given filtered variable. The float filter only allows digits and periods. This is currently only a proxy function for getVar().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name. |
string | $default | Default value if the variable does not exist. |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD). |
Définition à la ligne 232 du fichier request.php.
|
static |
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().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name. |
string | $default | Default value if the variable does not exist. |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD). |
Définition à la ligne 189 du fichier request.php.
|
static |
Gets the request method.
Définition à la ligne 64 du fichier request.php.
|
static |
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().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name |
string | $default | Default value if the variable does not exist |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
integer | $mask | Filter mask for the variable |
Définition à la ligne 321 du fichier request.php.
|
static |
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().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name. |
string | $default | Default value if the variable does not exist. |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD). |
Définition à la ligne 210 du fichier request.php.
|
static |
Gets the full request path.
Définition à la ligne 49 du fichier request.php.
Références JUri\getInstance().
|
static |
Fetches and returns a given variable.
The default behaviour is fetching variables depending on the current request method: GET and HEAD will result in returning an entry from $_GET, POST and PUT will result in returning an entry from $_POST.
You can force the source by setting the $hash parameter:
post $_POST get $_GET files $_FILES cookie $_COOKIE env $_ENV server $_SERVER method via current $_SERVER['REQUEST_METHOD'] default $_REQUEST
string | $name | Variable name. |
string | $default | Default value if the variable does not exist. |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD). |
string | $type | Return type for the variable, for valid values see JFilterInput::clean(). |
integer | $mask | Filter mask for the variable. |
Définition à la ligne 101 du fichier request.php.
Références $GLOBALS.
|
static |
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().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name. |
string | $default | Default value if the variable does not exist. |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD). |
Définition à la ligne 275 du fichier request.php.
|
static |
Sets a request variable.
array | $array | An associative array of key-value pairs. |
string | $hash | The request variable to set (POST, GET, FILES, METHOD). |
boolean | $overwrite | If true and an existing key is found, the value is overwritten, otherwise it is ignored. |
Définition à la ligne 478 du fichier request.php.
|
static |
Set a variable in one of the request variables.
string | $name | Name |
string | $value | Value |
string | $hash | Hash |
boolean | $overwrite | Boolean |
Définition à la ligne 341 du fichier request.php.
Références $GLOBALS.