| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
Decorator that, depending on a token, switches between two definitions. More...
 Collaboration diagram for HTMLPurifier_AttrDef_Switch:
 Collaboration diagram for HTMLPurifier_AttrDef_Switch:| Public Member Functions | |
| __construct ($tag, $with_tag, $without_tag) | |
| validate ($string, $config, $context) | |
| Data Fields | |
| $withoutTag | |
| Protected Attributes | |
| $tag | |
| $withTag | |
Decorator that, depending on a token, switches between two definitions.
Definition at line 6 of file Switch.php.
| HTMLPurifier_AttrDef_Switch::__construct | ( | $tag, | |
| $with_tag, | |||
| $without_tag | |||
| ) | 
| string | $tag | Tag name to switch upon | 
| HTMLPurifier_AttrDef | $with_tag | Call if token matches tag | 
| HTMLPurifier_AttrDef | $without_tag | Call if token doesn't match, or there is no token | 
Definition at line 17 of file Switch.php.
References $tag.
| HTMLPurifier_AttrDef_Switch::validate | ( | $string, | |
| $config, | |||
| $context | |||
| ) | 
Definition at line 23 of file Switch.php.
References $config.
| 
 | protected | 
Definition at line 9 of file Switch.php.
Referenced by __construct().
| HTMLPurifier_AttrDef_Switch::$withoutTag | 
Definition at line 10 of file Switch.php.
| 
 | protected | 
Definition at line 10 of file Switch.php.