HTMLPurifier_ContentSets
- Full name:
\HTMLPurifier_ContentSets
Properties
info
List of content set strings (pipe separators) indexed by name.
lookup
List of content set lookups (element => true) indexed by name.
keys
Synchronized list of defined content sets (keys of info).
values
Synchronized list of defined content values (values of info).
Methods
__construct
Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
Parameters:
Parameter | Type | Description |
---|---|---|
$modules |
\HTMLPurifier_HTMLModule[] | List of HTMLPurifier_HTMLModule |
generateChildDef
Accepts a definition; generates and assigns a ChildDef for it
Parameters:
Parameter | Type | Description |
---|---|---|
$def |
\HTMLPurifier_ElementDef | HTMLPurifier_ElementDef reference |
$module |
\HTMLPurifier_HTMLModule | Module that defined the ElementDef |
generateChildDefCallback
Parameters:
Parameter | Type | Description |
---|---|---|
$matches |
mixed |
getChildDef
Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef
public getChildDef(\HTMLPurifier_ElementDef $def, \HTMLPurifier_HTMLModule $module): \HTMLPurifier_ChildDef
Parameters:
Parameter | Type | Description |
---|---|---|
$def |
\HTMLPurifier_ElementDef | HTMLPurifier_ElementDef to have ChildDef extracted |
$module |
\HTMLPurifier_HTMLModule | Module that defined the ElementDef |
Return Value:
corresponding to ElementDef
convertToLookup
Converts a string list of elements separated by pipes into a lookup array.
Parameters:
Parameter | Type | Description |
---|---|---|
$string |
string | List of elements |
Return Value:
Lookup array of elements
Automatically generated on 2025-03-18