API - XOOPS 2.5.11 Beta 2
By monxoops.fr
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)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef
 validate ($string, $config, $context)
 
 parseCDATA ($string)
 
 make ($string)
 

Data Fields

 $defs
 
- Data Fields inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 

Additional Inherited Members

- Protected Member Functions inherited from HTMLPurifier_AttrDef
 mungeRgb ($string)
 
 expandCSSEscape ($string)
 

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.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $defs)
Parameters
HTMLPurifier_AttrDef[]$defsList of HTMLPurifier_AttrDef objects

Member Function Documentation

◆ validate()

validate (   $string,
  $config,
  $context 
)
Parameters
string$string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string

Reimplemented from HTMLPurifier_AttrDef.

Field Documentation

◆ $defs

$defs

List of objects that may process strings. @type HTMLPurifier_AttrDef[]

Todo:
Make protected

The documentation for this class was generated from the following file: