\HTMLPurifier_ContentSets

Summary

Methods
Properties
Constants
__construct()
generateChildDef()
generateChildDefCallback()
getChildDef()
$info
$lookup
No constants found
convertToLookup()
$keys
$values
N/A
No private methods found
No private properties found
N/A

Properties

$info

$info

List of content set strings (pipe separators) indexed by name.

$lookup

$lookup

List of content set lookups (element => true) indexed by name.

$keys

$keys

Synchronized list of defined content sets (keys of info).

$values

$values

Synchronized list of defined content values (values of info).

Methods

__construct()

__construct(\HTMLPurifier_HTMLModule[]  $modules) : mixed

Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.

Parameters

\HTMLPurifier_HTMLModule[] $modules

List of HTMLPurifier_HTMLModule

Returns

mixed —

generateChildDef()

generateChildDef(\HTMLPurifier_ElementDef  $def, \HTMLPurifier_HTMLModule  $module) : mixed

Accepts a definition; generates and assigns a ChildDef for it

Parameters

\HTMLPurifier_ElementDef $def

HTMLPurifier_ElementDef reference

\HTMLPurifier_HTMLModule $module

Module that defined the ElementDef

Returns

mixed —

generateChildDefCallback()

generateChildDefCallback(mixed  $matches) : mixed

Parameters

mixed $matches

Returns

mixed —

getChildDef()

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

Parameters

\HTMLPurifier_ElementDef $def

HTMLPurifier_ElementDef to have ChildDef extracted

\HTMLPurifier_HTMLModule $module

Module that defined the ElementDef

Returns

\HTMLPurifier_ChildDef —

corresponding to ElementDef

convertToLookup()

convertToLookup(string  $string) : array

Converts a string list of elements separated by pipes into a lookup array.

Parameters

string $string

List of elements

Returns

array —

Lookup array of elements