API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_AttrTransform Class Reference
Inheritance diagram for HTMLPurifier_AttrTransform:

Public Member Functions

 transform ($attr, $config, $context)
 
 prependCSS (&$attr, $css)
 
 confiscateAttr (&$attr, $key)
 

Detailed Description

Processes an entire attribute array for corrections needing multiple values.

Occasionally, a certain attribute will need to be removed and popped onto another value. Instead of creating a complex return syntax for HTMLPurifier_AttrDef, we just pass the whole attribute array to a specialized object and have that do the special work. That is the family of HTMLPurifier_AttrTransform.

An attribute transformation can be assigned to run before or after HTMLPurifier_AttrDef validation. See HTMLPurifier_HTMLDefinition for more details.

Member Function Documentation

◆ confiscateAttr()

confiscateAttr ( $attr,
  $key 
)

Retrieves and removes an attribute

Parameters
array&$attrAttribute array to process (passed by reference)
mixed$keyKey of attribute to confiscate
Returns
mixed
Here is the caller graph for this function:

◆ prependCSS()

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
Here is the caller graph for this function:

◆ transform()


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