Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: