HTMLPurifier_AttrDef_Switch Class Reference

Decorator that, depending on a token, switches between two definitions. More...

List of all members.

Public Member Functions

 __construct ($tag, $with_tag, $without_tag)
 
Parameters:
string $tag Tag name to switch upon

 validate ($string, $config, $context)
 __construct ($tag, $with_tag, $without_tag)
 
Parameters:
string $tag Tag name to switch upon

 validate ($string, $config, $context)

Protected Attributes

 $tag
 $withTag
 $withoutTag


Detailed Description

Decorator that, depending on a token, switches between two definitions.

Definition at line 6 of file Switch.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_Switch::__construct ( tag,
with_tag,
without_tag 
)

Parameters:
string $tag Tag name to switch upon

Parameters:
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::__construct ( tag,
with_tag,
without_tag 
)

Parameters:
string $tag Tag name to switch upon

Parameters:
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 7273 of file HTMLPurifier.standalone.php.


Member Function Documentation

HTMLPurifier_AttrDef_Switch::validate ( string,
config,
context 
)

Definition at line 23 of file Switch.php.

HTMLPurifier_AttrDef_Switch::validate ( string,
config,
context 
)

Definition at line 7279 of file HTMLPurifier.standalone.php.


Member Data Documentation

HTMLPurifier_AttrDef_Switch::$tag [protected]

Definition at line 9 of file Switch.php.

Referenced by __construct().

HTMLPurifier_AttrDef_Switch::$withTag [protected]

Definition at line 10 of file Switch.php.

HTMLPurifier_AttrDef_Switch::$withoutTag [protected]

Definition at line 10 of file Switch.php.


The documentation for this class was generated from the following files:
Generated on Thu Jun 19 18:47:28 2008 for HTMLPurifier by  doxygen 1.5.3