PHP Class HTMLPurifier_AttrDef_CSS_Composite, yii

Composite is just what it sounds like: a composite of many validators. This means that multiple HTMLPurifier_AttrDef objects will have a whack at the string. If one of them passes, that's what is returned. This is especially useful for CSS values, which often are a choice between an enumerated set of predefined values or a flexible data type.
Inheritance: extends HTMLPurifier_AttrDef
Mostrar archivo Open project: yiisoft/yii

Public Properties

Property Type Description
$defs List of objects that may process strings.

Public Methods

Method Description
__construct ( HTMLPurifier_AttrDef[] $defs )
validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string

Method Details

__construct() public method

public __construct ( HTMLPurifier_AttrDef[] $defs )
$defs HTMLPurifier_AttrDef[] List of HTMLPurifier_AttrDef objects

validate() public method

public validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string
$string string
$config HTMLPurifier_Config
$context HTMLPurifier_Context
return boolean | string

Property Details

$defs public_oe property

List of objects that may process strings.
public $defs