API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_AttrDef_Switch Class Reference

Public Member Functions

 __construct ($tag, $with_tag, $without_tag)
 
 validate ($string, $config, $context)
 

Protected Attributes

 $tag
 
 $withTag
 
 $withoutTag
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

__construct (   $tag,
  $with_tag,
  $without_tag 
)
Parameters
string$tagTag name to switch upon
HTMLPurifier_AttrDef$with_tagCall if token matches tag
HTMLPurifier_AttrDef$without_tagCall if token doesn't match, or there is no token

Member Function Documentation

◆ validate()

validate (   $string,
  $config,
  $context 
)
Parameters
string$string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string

Field Documentation

◆ $tag

$tag
protected

@type string

◆ $withoutTag

$withoutTag
protected

◆ $withTag

$withTag
protected

The documentation for this class was generated from the following file: