Class HTMLPurifier_ContentSets
| Inheritance | HTMLPurifier_ContentSets |
|---|
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $info | List of content set strings (pipe separators) indexed by name. | HTMLPurifier_ContentSets | |
| $lookup | List of content set lookups (element => true) indexed by name. | HTMLPurifier_ContentSets |
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $keys | Synchronized list of defined content sets (keys of info). | HTMLPurifier_ContentSets | |
| $values | Synchronized list of defined content values (values of info). | HTMLPurifier_ContentSets |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables. | HTMLPurifier_ContentSets |
| generateChildDef() | Accepts a definition; generates and assigns a ChildDef for it | HTMLPurifier_ContentSets |
| generateChildDefCallback() | HTMLPurifier_ContentSets | |
| getChildDef() | Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef | HTMLPurifier_ContentSets |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| convertToLookup() | Converts a string list of elements separated by pipes into a lookup array. | HTMLPurifier_ContentSets |
Property Details
Method Details
Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
| public void __construct ( $modules ) | ||
| $modules | HTMLPurifier_HTMLModule[] | List of HTMLPurifier_HTMLModule |
Converts a string list of elements separated by pipes into a lookup array.
| protected array convertToLookup ( $string ) | ||
| $string | string | List of elements |
| return | array | Lookup array of elements |
|---|---|---|
Accepts a definition; generates and assigns a ChildDef for it
| public void generateChildDef ( <b>&</b>$def, $module ) | ||
| $def | HTMLPurifier_ElementDef | HTMLPurifier_ElementDef reference |
| $module | HTMLPurifier_HTMLModule | Module that defined the ElementDef |
| public void generateChildDefCallback ( $matches ) | ||
| $matches | ||
Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef
| public HTMLPurifier_ChildDef getChildDef ( $def, $module ) | ||
| $def | HTMLPurifier_ElementDef | HTMLPurifier_ElementDef to have ChildDef extracted |
| $module | HTMLPurifier_HTMLModule | Module that defined the ElementDef |
| return | HTMLPurifier_ChildDef | Corresponding to ElementDef |
|---|---|---|