Methods | ||||||
---|---|---|---|---|---|---|
public
|
__construct(HTMLPurifier_HTMLModule[] $modules)
Merges in module's content sets, expands identifiers in the content
sets and populates the keys, values and lookup…
Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables. Parameters
|
# | ||||
public
|
generateChildDef(HTMLPurifier_ElementDef &$def, HTMLPurifier_HTMLModule $module)
Accepts a definition; generates and assigns a ChildDef for it
Accepts a definition; generates and assigns a ChildDef for it Parameters
|
# | ||||
public
|
generateChildDefCallback($matches)
|
# | ||||
public
|
getChildDef(HTMLPurifier_ElementDef $def, HTMLPurifier_HTMLModule $module): HTMLPurifier_ChildDef
Instantiates a ChildDef based on content_model and content_model_type
member variables in HTMLPurifier_ElementDef
Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef Parameters
Returnscorresponding to ElementDef |
# | ||||
protected
|
convertToLookup(string $string): array
Converts a string list of elements separated by pipes into
a lookup array.
Converts a string list of elements separated by pipes into a lookup array. Parameters
ReturnsLookup array of elements |
# |
Properties | |||
---|---|---|---|
public
|
|
$info = []
List of content set strings (pipe separators) indexed by name.
List of content set strings (pipe separators) indexed by name. |
# |
public
|
|
$lookup = []
List of content set lookups (element => true) indexed by name.
List of content set lookups (element => true) indexed by name. |
# |
protected
|
|
$keys = []
Synchronized list of defined content sets (keys of info).
Synchronized list of defined content sets (keys of info). |
# |
protected
|
|
$values = []
Synchronized list of defined content values (values of info).
Synchronized list of defined content values (values of info). |
# |