Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
HTMLPurifier_AttrDef_Switch Class Reference

Public Member Functions

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

Protected Attributes

 $tag
 @type string
 
 $withoutTag
 @type HTMLPurifier_AttrDef
 
 $withTag
 @type HTMLPurifier_AttrDef
 

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_AttrDef_Switch::__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()

HTMLPurifier_AttrDef_Switch::validate ( $string,
$config,
$context )
Parameters
string$string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Return values
bool|string

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