Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
HTMLPurifier_AttrTransform_ImgSpace Class Reference
Inheritance diagram for HTMLPurifier_AttrTransform_ImgSpace:
HTMLPurifier_AttrTransform

Public Member Functions

 __construct ($attr)
 
 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

 $attr
 @type string
 
 $css
 @type array
 

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_AttrTransform_ImgSpace::__construct ( $attr)
Parameters
string$attr

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_ImgSpace::transform ( $attr,
$config,
$context )
Parameters
array$attr
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Return values
array

Reimplemented from HTMLPurifier_AttrTransform.

Member Data Documentation

◆ $css

HTMLPurifier_AttrTransform_ImgSpace::$css
protected
Initial value:
= array(
'hspace' => array('left', 'right'),
'vspace' => array('top', 'bottom')
)

@type array


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