Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
HTMLPurifier_AttrTransform Class Reference
Inheritance diagram for HTMLPurifier_AttrTransform:
HTMLPurifier_AttrTransform_Background HTMLPurifier_AttrTransform_BdoDir HTMLPurifier_AttrTransform_BgColor HTMLPurifier_AttrTransform_BoolToCSS HTMLPurifier_AttrTransform_Border HTMLPurifier_AttrTransform_EnumToCSS HTMLPurifier_AttrTransform_ImgRequired HTMLPurifier_AttrTransform_ImgSpace HTMLPurifier_AttrTransform_Input HTMLPurifier_AttrTransform_Lang HTMLPurifier_AttrTransform_Length HTMLPurifier_AttrTransform_Name HTMLPurifier_AttrTransform_NameSync HTMLPurifier_AttrTransform_Nofollow HTMLPurifier_AttrTransform_SafeEmbed HTMLPurifier_AttrTransform_SafeObject HTMLPurifier_AttrTransform_SafeParam HTMLPurifier_AttrTransform_ScriptRequired HTMLPurifier_AttrTransform_TargetBlank HTMLPurifier_AttrTransform_TargetNoopener HTMLPurifier_AttrTransform_TargetNoreferrer HTMLPurifier_AttrTransform_Textarea

Public Member Functions

 confiscateAttr (&$attr, $key)
 Retrieves and removes an attribute.
 
 prependCSS (&$attr, $css)
 Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
 
 transform ($attr, $config, $context)
 Abstract: makes changes to the attributes dependent on multiple values.
 

Member Function Documentation

◆ confiscateAttr()

HTMLPurifier_AttrTransform::confiscateAttr ( & $attr,
$key )

Retrieves and removes an attribute.

Parameters
array&$attrAttribute array to process (passed by reference)
mixed$keyKey of attribute to confiscate
Return values
mixed

◆ prependCSS()

HTMLPurifier_AttrTransform::prependCSS ( & $attr,
$css )

Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

Parameters
array&$attrAttribute array to process (passed by reference)
string$cssCSS to prepend

◆ transform()


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