32        $this->withTag = $with_tag;
 
   33        $this->withoutTag = $without_tag;
 
   44        $token = $context->get(
'CurrentToken', 
true);
 
   45        if (!$token || $token->name !== $this->tag) {
 
   46            return $this->withoutTag->validate($string, 
$config, $context);
 
   48            return $this->withTag->validate($string, 
$config, $context);
 
An exception for terminatinating execution or to throw for unit testing.
Decorator that, depending on a token, switches between two definitions.
$withTag
@type HTMLPurifier_AttrDef
$withoutTag
@type HTMLPurifier_AttrDef
__construct($tag, $with_tag, $without_tag)
validate($string, $config, $context)