Class HTMLPurifier_ContentSets

Description
  • todo: Unit test

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 2046)


	
			
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)
void generateChildDefCallback ( $matches)
HTMLPurifier_ChildDef getChildDef ($def $def,  $module)
Variables
mixed $info = array() (line 2052)

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

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

Synchronized list of defined content sets (keys of info)

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

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

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

Synchronized list of defined content values (values of info)

  • access: protected
Methods
Constructor __construct (line 2074)

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 2184)

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 2116)

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
generateChildDefCallback (line 2132)
  • access: public
void generateChildDefCallback ( $matches)
  • $matches
getChildDef (line 2144)

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 Sun, 06 Mar 2011 00:24:04 -0500 by phpDocumentor 1.4.3