\HTMLPurifier_ContentSets
Synopsis
class HTMLPurifier_ContentSets
{
- // members
- public array $info = ;
- public array $lookup = ;
- protected array $keys = ;
- protected array $values = ;
- // methods
- public void __construct()
- public void generateChildDef()
- public void generateChildDefCallback()
- public HTMLPurifier_ChildDef getChildDef()
- protected Lookup convertToLookup()
Tasks
Line | Task |
---|---|
6+ | Unit test |
Members
protected
-
$keys
Synchronized list of defined content sets (keys of info) -
$values
Synchronized list of defined content values (values of info)
public
-
$info
List of content set strings (pipe seperators) indexed by name. -
$lookup
List of content set lookups (element => true) indexed by name.
Methods
protected
- convertToLookup() — Converts a string list of elements separated by pipes into a lookup array.
public
- __construct() — Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
- generateChildDef() — Accepts a definition; generates and assigns a ChildDef for it
- generateChildDefCallback()
- getChildDef() — Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef