|
| $attr |
| @type string
|
|
| $css |
| @type array
|
|
◆ __construct()
HTMLPurifier_AttrTransform_ImgSpace::__construct |
( |
| $attr | ) |
|
◆ confiscateAttr()
HTMLPurifier_AttrTransform::confiscateAttr |
( |
& | $attr, |
|
|
| $key ) |
|
inherited |
Retrieves and removes an attribute.
- Parameters
-
array | &$attr | Attribute array to process (passed by reference) |
mixed | $key | Key of attribute to confiscate |
- Return values
-
◆ prependCSS()
HTMLPurifier_AttrTransform::prependCSS |
( |
& | $attr, |
|
|
| $css ) |
|
inherited |
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
- Parameters
-
array | &$attr | Attribute array to process (passed by reference) |
string | $css | CSS to prepend |
◆ transform()
HTMLPurifier_AttrTransform_ImgSpace::transform |
( |
| $attr, |
|
|
| $config, |
|
|
| $context ) |
◆ $css
HTMLPurifier_AttrTransform_ImgSpace::$css |
|
protected |
Initial value:
'hspace' =>
array(
'left',
'right'),
'vspace' =>
array(
'top',
'bottom')
)
@type array
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/AttrTransform/ImgSpace.php