Class HTMLPurifier_ContentSets

Description
  • todo: Unit test

Located in /library/HTMLPurifier/ContentSets.php (line 6)


	
			
Variable Summary
mixed $info
mixed $keys
mixed $lookup
mixed $values
Method Summary
HTMLPurifier_ContentSets __construct ($modules $modules)
Lookup convertToLookup ($string $string)
void generateChildDef ($def &$def, $module $module)
HTMLPurifier_ChildDef getChildDef ($def $def,  $module)
Variables
mixed $info = array() (line 12)

List of content set strings (pipe seperators) indexed by name.

List of content set strings (pipe seperators) indexed by name.

  • access: public
mixed $keys = array() (line 23)

Synchronized list of defined content sets (keys of info)

Synchronized list of defined content sets (keys of info)

  • access: protected
mixed $lookup = array() (line 18)

List of content set lookups (element => true) indexed by name.

List of content set lookups (element => true) indexed by name.

  • access: public
mixed $values = array() (line 27)

Synchronized list of defined content values (values of info)

Synchronized list of defined content values (values of info)

  • access: protected
Methods
Constructor __construct (line 34)

Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.

Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.

  • access: public
HTMLPurifier_ContentSets __construct ($modules $modules)
  • $modules $modules: List of HTMLPurifier_HTMLModule
convertToLookup (line 132)

Converts a string list of elements separated by pipes into a lookup array.

Converts a string list of elements separated by pipes into a lookup array.

  • return: array of elements
  • access: protected
Lookup convertToLookup ($string $string)
  • $string $string: List of elements
generateChildDef (line 74)

Accepts a definition; generates and assigns a ChildDef for it

Accepts a definition; generates and assigns a ChildDef for it

  • access: public
void generateChildDef ($def &$def, $module $module)
  • $def &$def: HTMLPurifier_ElementDef reference
  • $module $module: Module that defined the ElementDef
getChildDef (line 92)

Instantiates a ChildDef based on content_model and content_model_type

Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef

  • return: corresponding to ElementDef
  • access: public
HTMLPurifier_ChildDef getChildDef ($def $def,  $module)
  • $def $def: HTMLPurifier_ElementDef to have ChildDef extracted
  • $module

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