![]() |
XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Graphe d'héritage de HTMLPurifier_VarParser:Fonctions membres publiques | |
| parse ($var, $type, $allow_null=false) | |
Fonctions membres publiques statiques | |
| static | getTypeName ($type) |
Champs de données | |
| const | C_STRING = 1 |
| const | ISTRING = 2 |
| const | TEXT = 3 |
| const | ITEXT = 4 |
| const | C_INT = 5 |
| const | C_FLOAT = 6 |
| const | C_BOOL = 7 |
| const | LOOKUP = 8 |
| const | ALIST = 9 |
| const | HASH = 10 |
| const | C_MIXED = 11 |
Attributs publics statiques | |
| static | $types |
| static | $stringTypes |
Fonctions membres protégées | |
| parseImplementation ($var, $type, $allow_null) | |
| error ($msg) | |
| errorInconsistent ($class, $type) | |
| errorGeneric ($var, $type) | |
Parses string representations into their corresponding native PHP variable type. The base implementation does a simple type-check.
|
protected |
Throws an exception.
| HTMLPurifier_VarParserException |
Voici le graphe des appelants de cette fonction :
|
protected |
Generic error for if a type didn't work.
| mixed | $var | |
| int | $type |
Voici le graphe d'appel pour cette fonction :
Voici le graphe des appelants de cette fonction :
|
protected |
Throws an inconsistency exception.
| string | $class | |
| int | $type |
| HTMLPurifier_Exception |
Voici le graphe d'appel pour cette fonction :
Voici le graphe des appelants de cette fonction :
|
static |
| int | $type |
Voici le graphe des appelants de cette fonction :
|
final |
Validate a variable according to type. It may return NULL as a valid type if $allow_null is true.
| mixed | $var | Variable to validate |
| int | $type | Type of variable, see HTMLPurifier_VarParser->types |
| bool | $allow_null | Whether or not to permit null as a value |
| HTMLPurifier_VarParserException |
Voici le graphe d'appel pour cette fonction :
|
protected |
Actually implements the parsing. Base implementation does not do anything to $var. Subclasses should overload this!
| mixed | $var | |
| int | $type | |
| bool | $allow_null |
Réimplémentée dans HTMLPurifier_VarParser_Flexible, et HTMLPurifier_VarParser_Native.
Voici le graphe des appelants de cette fonction :
|
static |
Lookup table of types that are string, and can have aliases or allowed value lists.
|
static |
Lookup table of allowed types. Mainly for backwards compatibility, but also convenient for transforming string type names to the integer constants.
| const ALIST = 9 |
| const C_BOOL = 7 |
| const C_FLOAT = 6 |
| const C_INT = 5 |
| const C_MIXED = 11 |
| const C_STRING = 1 |
| const HASH = 10 |
| const ISTRING = 2 |
| const ITEXT = 4 |
| const LOOKUP = 8 |
| const TEXT = 3 |