HTMLPurifier_AttrDef_CSS_Composite Class Reference

Allows multiple validators to attempt to validate attribute. More...

List of all members.

Public Member Functions

 __construct ($defs)
 
Parameters:
$defs List of HTMLPurifier_AttrDef objects

 validate ($string, $config, $context)
 __construct ($defs)
 
Parameters:
$defs List of HTMLPurifier_AttrDef objects

 validate ($string, $config, $context)

Public Attributes

 $defs
 List of HTMLPurifier_AttrDef objects that may process strings.


Detailed Description

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.

Definition at line 12 of file Composite.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_CSS_Composite::__construct ( defs  ) 

Parameters:
$defs List of HTMLPurifier_AttrDef objects

Definition at line 24 of file Composite.php.

References $defs.

HTMLPurifier_AttrDef_CSS_Composite::__construct ( defs  ) 

Parameters:
$defs List of HTMLPurifier_AttrDef objects

Definition at line 7829 of file HTMLPurifier.standalone.php.


Member Function Documentation

HTMLPurifier_AttrDef_CSS_Composite::validate ( string,
config,
context 
)

Definition at line 28 of file Composite.php.

HTMLPurifier_AttrDef_CSS_Composite::validate ( string,
config,
context 
)

Definition at line 7833 of file HTMLPurifier.standalone.php.


Member Data Documentation

HTMLPurifier_AttrDef_CSS_Composite::$defs

List of HTMLPurifier_AttrDef objects that may process strings.

Todo:
Make protected
Todo:
Make protected

Definition at line 19 of file Composite.php.

Referenced by __construct().


The documentation for this class was generated from the following files:
Generated on Thu Jun 19 18:47:28 2008 for HTMLPurifier by  doxygen 1.5.3