|
| __construct ($modules) |
| Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
|
|
| generateChildDef (&$def, $module) |
| Accepts a definition; generates and assigns a ChildDef for it.
|
|
| generateChildDefCallback ($matches) |
|
| getChildDef ($def, $module) |
| Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef.
|
|
|
| $info = array() |
| List of content set strings (pipe separators) indexed by name.
|
|
| $lookup = array() |
| List of content set lookups (element => true) indexed by name.
|
|
|
| convertToLookup ($string) |
| Converts a string list of elements separated by pipes into a lookup array.
|
|
|
| $keys = array() |
| Synchronized list of defined content sets (keys of info).
|
|
| $values = array() |
| Synchronized list of defined content values (values of info).
|
|
◆ __construct()
HTMLPurifier_ContentSets::__construct |
( |
| $modules | ) |
|
Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
- Parameters
-
◆ convertToLookup()
HTMLPurifier_ContentSets::convertToLookup |
( |
| $string | ) |
|
|
protected |
Converts a string list of elements separated by pipes into a lookup array.
- Parameters
-
string | $string | List of elements |
- Return values
-
array | Lookup array of elements |
◆ generateChildDef()
HTMLPurifier_ContentSets::generateChildDef |
( |
& | $def, |
|
|
| $module ) |
Accepts a definition; generates and assigns a ChildDef for it.
- Parameters
-
◆ getChildDef()
HTMLPurifier_ContentSets::getChildDef |
( |
| $def, |
|
|
| $module ) |
Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef.
- Note
- This will also defer to modules for custom HTMLPurifier_ChildDef subclasses that need content set expansion
- Parameters
-
- Return values
-
◆ $info
HTMLPurifier_ContentSets::$info = array() |
List of content set strings (pipe separators) indexed by name.
@type array
◆ $keys
HTMLPurifier_ContentSets::$keys = array() |
|
protected |
Synchronized list of defined content sets (keys of info).
@type array
◆ $lookup
HTMLPurifier_ContentSets::$lookup = array() |
List of content set lookups (element => true) indexed by name.
@type array
- Note
- This is in HTMLPurifier_HTMLDefinition->info_content_sets
◆ $values
HTMLPurifier_ContentSets::$values = array() |
|
protected |
Synchronized list of defined content values (values of info).
@type array
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/ContentSets.php