L'appel à la méthode get de Jinput est gérée par la méthode magique __call dans la classe (voir /librairies/vendor/joomla/input/src/Input.php ligne 333).
Par exemple, elle transformera un getAlnum('token') en un get('token',null,'alnum')
Le 3 ème parametre étant le filtre à appliquer sur la valeur avant de la rtourner.
La méthode appliquée est définie en /librairies/vendor/joomla/filter/src/InputFilter.php ligne 260.
Les filtres sont :
- INT: An integer, or an array of integers,
- UINT: An unsigned integer, or an array of unsigned integers,
- FLOAT: A floating point number, or an array of floating point numbers,
- BOOLEAN: A boolean value,
- WORD: A string containing A-Z or underscores only (not case sensitive),
- ALNUM: A string containing A-Z or 0-9 only (not case sensitive),
- CMD: A string containing A-Z, 0-9, underscores, periods or hyphens (not case sensitive),
- BASE64: A string containing A-Z, 0-9, forward slashes, plus or equals (not case sensitive),
- STRING: A fully decoded and sanitised string (default),
- HTML: A sanitised string,
- ARRAY: An array,
- PATH: A sanitised file path, or an array of sanitised file paths,
- TRIM: A string trimmed from normal, non-breaking and multibyte spaces
- USERNAME: Do not use (use an application specific filter),
- RAW: The raw string is returned with no filtering,
- unknown: An unknown filter will act like STRING. If the input is an array it will return an array of fully decoded and sanitised strings.