HTMLPurifier_ContentSets
in package
Tags
Table of Contents
Properties
- $info : mixed
- List of content set strings (pipe separators) indexed by name.
- $lookup : mixed
- List of content set lookups (element => true) indexed by name.
- $keys : mixed
- Synchronized list of defined content sets (keys of info).
- $values : mixed
- Synchronized list of defined content values (values of info).
Methods
- __construct() : mixed
- Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
- generateChildDef() : mixed
- Accepts a definition; generates and assigns a ChildDef for it
- generateChildDefCallback() : mixed
- getChildDef() : HTMLPurifier_ChildDef
- Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef
- convertToLookup() : array<string|int, mixed>
- Converts a string list of elements separated by pipes into a lookup array.
Properties
$info
List of content set strings (pipe separators) indexed by name.
public
mixed
$info
= array()
Tags
$lookup
List of content set lookups (element => true) indexed by name.
public
mixed
$lookup
= array()
Tags
$keys
Synchronized list of defined content sets (keys of info).
protected
mixed
$keys
= array()
Tags
$values
Synchronized list of defined content values (values of info).
protected
mixed
$values
= array()
Tags
Methods
__construct()
Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
public
__construct(array<string|int, HTMLPurifier_HTMLModule> $modules) : mixed
Parameters
- $modules : array<string|int, HTMLPurifier_HTMLModule>
-
List of HTMLPurifier_HTMLModule
generateChildDef()
Accepts a definition; generates and assigns a ChildDef for it
public
generateChildDef(HTMLPurifier_ElementDef &$def, HTMLPurifier_HTMLModule $module) : mixed
Parameters
- $def : HTMLPurifier_ElementDef
-
HTMLPurifier_ElementDef reference
- $module : HTMLPurifier_HTMLModule
-
Module that defined the ElementDef
generateChildDefCallback()
public
generateChildDefCallback(mixed $matches) : mixed
Parameters
- $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
- $def : HTMLPurifier_ElementDef
-
HTMLPurifier_ElementDef to have ChildDef extracted
- $module : HTMLPurifier_HTMLModule
-
Module that defined the ElementDef
Tags
Return values
HTMLPurifier_ChildDef —corresponding to ElementDef
convertToLookup()
Converts a string list of elements separated by pipes into a lookup array.
protected
convertToLookup(string $string) : array<string|int, mixed>
Parameters
- $string : string
-
List of elements
Return values
array<string|int, mixed> —Lookup array of elements