|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Performs safe variable parsing based on types which can be used by users. More...
Inheritance diagram for HTMLPurifier_VarParser_Flexible:
Collaboration diagram for HTMLPurifier_VarParser_Flexible:Protected Member Functions | |
| parseImplementation ($var, $type, $allow_null) | |
Protected Member Functions inherited from HTMLPurifier_VarParser | |
| parseImplementation ($var, $type, $allow_null) | |
| Actually implements the parsing. More... | |
| error ($msg) | |
| Throws an exception. More... | |
| errorInconsistent ($class, $type) | |
| Throws an inconsistency exception. More... | |
| errorGeneric ($var, $type) | |
| Generic error for if a type didn't work. More... | |
Additional Inherited Members | |
Public Member Functions inherited from HTMLPurifier_VarParser | |
| parse ($var, $type, $allow_null=false) | |
| Validate a variable according to type. More... | |
Static Public Member Functions inherited from HTMLPurifier_VarParser | |
| static | getTypeName ($type) |
Data Fields inherited from HTMLPurifier_VarParser | |
| 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 |
Static Public Attributes inherited from HTMLPurifier_VarParser | |
| static | $types |
| Lookup table of allowed types. More... | |
| static | $stringTypes |
| Lookup table of types that are string, and can have aliases or allowed value lists. More... | |
Performs safe variable parsing based on types which can be used by users.
This may not be able to represent all possible data inputs, however.
Definition at line 8 of file Flexible.php.
|
protected |
| mixed | $var | |
| int | $type | |
| bool | $allow_null |
| HTMLPurifier_VarParserException |
Reimplemented from HTMLPurifier_VarParser.
Definition at line 17 of file Flexible.php.
References $c, $i, $key, $keys, $type, HTMLPurifier_VarParser\ALIST, HTMLPurifier_VarParser\C_BOOL, HTMLPurifier_VarParser\C_FLOAT, HTMLPurifier_VarParser\C_INT, HTMLPurifier_VarParser\C_MIXED, HTMLPurifier_VarParser\C_STRING, HTMLPurifier_VarParser\errorGeneric(), HTMLPurifier_VarParser\errorInconsistent(), HTMLPurifier_VarParser\HASH, HTMLPurifier_VarParser\ISTRING, HTMLPurifier_VarParser\ITEXT, HTMLPurifier_VarParser\LOOKUP, and HTMLPurifier_VarParser\TEXT.
Here is the call graph for this function: