Cheetah
Public Member Functions | Protected Attributes | List of all members
HTMLPurifier_AttrTransform_ImgSpace Class Reference
Inheritance diagram for HTMLPurifier_AttrTransform_ImgSpace:
HTMLPurifier_AttrTransform

Public Member Functions

 __construct ($attr)
 
 transform ($attr, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrTransform
 prependCSS (&$attr, $css)
 
 confiscateAttr (&$attr, $key)
 

Protected Attributes

 $attr
 
 $css
 

Detailed Description

Pre-transform that changes deprecated hspace and vspace attributes to CSS

Definition at line 13889 of file HTMLPurifier.standalone.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 13907 of file HTMLPurifier.standalone.php.

Member Function Documentation

◆ transform()

HTMLPurifier_AttrTransform_ImgSpace::transform (   $attr,
  $config,
  $context 
)
Parameters
array$attr
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
array

Reimplemented from HTMLPurifier_AttrTransform.

Definition at line 13921 of file HTMLPurifier.standalone.php.

Member Data Documentation

◆ $attr

HTMLPurifier_AttrTransform_ImgSpace::$attr
protected

@type string

Definition at line 13894 of file HTMLPurifier.standalone.php.

◆ $css

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

@type array

Definition at line 13899 of file HTMLPurifier.standalone.php.


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