Class HTMLPurifier_AttrDef_CSS_Composite

Description

Allows multiple validators to attempt to validate attribute.

Allows multiple validators to attempt to validate attribute. 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.

Located in /library/HTMLPurifier/AttrDef/CSS/Composite.php (line 12)

HTMLPurifier_AttrDef
   |
   --HTMLPurifier_AttrDef_CSS_Composite
Variable Summary
mixed $defs
Method Summary
HTMLPurifier_AttrDef_CSS_Composite __construct ($defs $defs)
void validate ( $string,  $config,  $context)
Variables
mixed $defs (line 19)

List of HTMLPurifier_AttrDef objects that may process strings

List of HTMLPurifier_AttrDef objects that may process strings

  • todo: Make protected
  • access: public

Inherited Variables

Inherited from HTMLPurifier_AttrDef

HTMLPurifier_AttrDef::$minimized
HTMLPurifier_AttrDef::$required
Methods
Constructor __construct (line 24)
  • access: public
HTMLPurifier_AttrDef_CSS_Composite __construct ($defs $defs)
  • $defs $defs: List of HTMLPurifier_AttrDef objects
validate (line 28)
  • access: public
void validate ( $string,  $config,  $context)
  • $string
  • $config
  • $context

Redefinition of:
HTMLPurifier_AttrDef::validate()
Validates and cleans passed string according to a definition.

Inherited Methods

Inherited From HTMLPurifier_AttrDef

HTMLPurifier_AttrDef::make()
HTMLPurifier_AttrDef::mungeRgb()
HTMLPurifier_AttrDef::parseCDATA()
HTMLPurifier_AttrDef::validate()

Documentation generated on Thu, 19 Jun 2008 18:48:56 -0400 by phpDocumentor 1.4.2