Class HTMLPurifier_ContentSets

InheritanceHTMLPurifier_ContentSets

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$info List of content set strings (pipe separators) indexed by name. HTMLPurifier_ContentSets
$lookup List of content set lookups (element => true) indexed by name. HTMLPurifier_ContentSets

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$keys Synchronized list of defined content sets (keys of info). HTMLPurifier_ContentSets
$values Synchronized list of defined content values (values of info). HTMLPurifier_ContentSets

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables. HTMLPurifier_ContentSets
generateChildDef() Accepts a definition; generates and assigns a ChildDef for it HTMLPurifier_ContentSets
generateChildDefCallback() HTMLPurifier_ContentSets
getChildDef() Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef HTMLPurifier_ContentSets

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
convertToLookup() Converts a string list of elements separated by pipes into a lookup array. HTMLPurifier_ContentSets

Property Details

$info public property
public $info = []
$keys protected property
protected $keys = []
$lookup public property
public $lookup = []
$values protected property
protected $values = []

Method Details

__construct() public method

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

public void __construct ( $modules )
$modules HTMLPurifier_HTMLModule[]

List of HTMLPurifier_HTMLModule

convertToLookup() protected method

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

protected array convertToLookup ( $string )
$string string

List of elements

return array

Lookup array of elements

generateChildDef() public method

Accepts a definition; generates and assigns a ChildDef for it

public void generateChildDef ( <b>&</b>$def, $module )
$def HTMLPurifier_ElementDef

HTMLPurifier_ElementDef reference

$module HTMLPurifier_HTMLModule

Module that defined the ElementDef

generateChildDefCallback() public method

public void generateChildDefCallback ( $matches )
$matches
getChildDef() public method

Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef

public HTMLPurifier_ChildDef getChildDef ( $def, $module )
$def HTMLPurifier_ElementDef

HTMLPurifier_ElementDef to have ChildDef extracted

$module HTMLPurifier_HTMLModule

Module that defined the ElementDef

return HTMLPurifier_ChildDef

Corresponding to ElementDef