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

Public Member Functions

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

Protected Attributes

 $attr
 
 $enumToCSS = array()
 
 $caseSensitive = false
 

Detailed Description

Generic pre-transform that converts an attribute with a fixed number of values (enumerated) to CSS.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $attr,
  $enum_to_css,
  $case_sensitive = false 
)
Parameters
string$attrAttribute name to transform from
array$enum_to_cssLookup array of attribute values to CSS
bool$case_sensitiveCase sensitivity indicator, default false

Member Function Documentation

◆ transform()

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

Reimplemented from HTMLPurifier_AttrTransform.

Here is the call graph for this function:

Field Documentation

◆ $attr

$attr
protected

Name of attribute to transform from. @type string

◆ $caseSensitive

$caseSensitive = false
protected

Case sensitivity of the matching. @type bool

Warning
Currently can only be guaranteed to work with ASCII values.

◆ $enumToCSS

$enumToCSS = array()
protected

Lookup array of attribute values to CSS. @type array


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