Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_AttrDef_CSS_Composite Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS_Composite:
Collaboration diagram for HTMLPurifier_AttrDef_CSS_Composite:

Public Member Functions

 __construct ($defs)
 validate ($string, $config, $context)

Data Fields

 $defs

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

__construct ( defs)
Parameters:
$defsList of HTMLPurifier_AttrDef objects

Definition at line 24 of file Composite.php.


Member Function Documentation

validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 28 of file Composite.php.


Field Documentation

$defs

List of HTMLPurifier_AttrDef objects that may process strings

Todo:
Make protected

Definition at line 19 of file Composite.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations