Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
HTMLPurifier_AttrTransform_Length Class Reference
Inheritance diagram for HTMLPurifier_AttrTransform_Length:
HTMLPurifier_AttrTransform

Public Member Functions

 __construct ($name, $css_name=null)
 
 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)
 

Protected Attributes

 $cssName
 @type string
 
 $name
 @type string
 

Member Function Documentation

◆ confiscateAttr()

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

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 )
inherited

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()

HTMLPurifier_AttrTransform_Length::transform ( $attr,
$config,
$context )
Parameters
array$attr
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Return values
array

Reimplemented from HTMLPurifier_AttrTransform.


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