\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.

Type

$lookup

$lookup : 

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

Type

$keys

$keys : 

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

Type

$values

$values : 

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

Type

Methods

__construct()

__construct(array<mixed,\HTMLPurifier_HTMLModule>  $modules) 

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

Parameters

array<mixed,\HTMLPurifier_HTMLModule> $modules

List of HTMLPurifier_HTMLModule

generateChildDef()

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

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

generateChildDefCallback()

generateChildDefCallback(  $matches) 

Parameters

$matches

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