PHP Class HTMLPurifier_AttrTransform_EnumToCSS, yii

Inheritance: extends HTMLPurifier_AttrTransform
ファイルを表示 Open project: yiisoft/yii

Protected Properties

Property Type Description
$attr Name of attribute to transform from.
$caseSensitive Case sensitivity of the matching.
$enumToCSS Lookup array of attribute values to CSS.

Public Methods

Method Description
__construct ( string $attr, array $enum_to_css, boolean $case_sensitive = false )
transform ( array $attr, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : array

Method Details

__construct() public method

public __construct ( string $attr, array $enum_to_css, boolean $case_sensitive = false )
$attr string Attribute name to transform from
$enum_to_css array Lookup array of attribute values to CSS
$case_sensitive boolean Case sensitivity indicator, default false

transform() public method

public transform ( array $attr, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : array
$attr array
$config HTMLPurifier_Config
$context HTMLPurifier_Context
return array

Property Details

$attr protected_oe property

Name of attribute to transform from.
protected $attr

$caseSensitive protected_oe property

Case sensitivity of the matching.
protected $caseSensitive

$enumToCSS protected_oe property

Lookup array of attribute values to CSS.
protected $enumToCSS