Class HTMLPurifier_AttrCollections

InheritanceHTMLPurifier_AttrCollections

Defines common attribute collections that modules reference

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$info Associative array of attribute collections, indexed by name. HTMLPurifier_AttrCollections

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Performs all expansions on internal data for use by other inclusions It also collects all attribute collection extensions from modules HTMLPurifier_AttrCollections
expandIdentifiers() Expands all string identifiers in an attribute array by replacing them with the appropriate values inside HTMLPurifier_AttrTypes HTMLPurifier_AttrCollections
performInclusions() Takes a reference to an attribute associative array and performs all inclusions specified by the zero index. HTMLPurifier_AttrCollections

Property Details

$info public property
public $info = []

Method Details

__construct() public method

Performs all expansions on internal data for use by other inclusions It also collects all attribute collection extensions from modules

public void __construct ( $attr_types, $modules )
$attr_types HTMLPurifier_AttrTypes

HTMLPurifier_AttrTypes instance

$modules HTMLPurifier_HTMLModule[]

Hash array of HTMLPurifier_HTMLModule members

expandIdentifiers() public method

Expands all string identifiers in an attribute array by replacing them with the appropriate values inside HTMLPurifier_AttrTypes

public void expandIdentifiers ( <b>&</b>$attr, $attr_types )
$attr
$attr_types HTMLPurifier_AttrTypes

HTMLPurifier_AttrTypes instance

performInclusions() public method

Takes a reference to an attribute associative array and performs all inclusions specified by the zero index.

public void performInclusions ( <b>&</b>$attr )
$attr