HTMLPurifier_AttrCollections
Defines common attribute collections that modules reference
- Full name:
\HTMLPurifier_AttrCollections
Properties
info
Associative array of attribute collections, indexed by name.
Methods
__construct
Performs all expansions on internal data for use by other inclusions It also collects all attribute collection extensions from modules
Parameters:
Parameter | Type | Description |
---|---|---|
$attr_types |
\HTMLPurifier_AttrTypes | HTMLPurifier_AttrTypes instance |
$modules |
\HTMLPurifier_HTMLModule[] | Hash array of HTMLPurifier_HTMLModule members |
doConstruct
Parameters:
Parameter | Type | Description |
---|---|---|
$attr_types |
mixed | |
$modules |
mixed |
performInclusions
Takes a reference to an attribute associative array and performs all inclusions specified by the zero index.
Parameters:
Parameter | Type | Description |
---|---|---|
$attr |
array | Reference to attribute array |
expandIdentifiers
Expands all string identifiers in an attribute array by replacing them with the appropriate values inside HTMLPurifier_AttrTypes
Parameters:
Parameter | Type | Description |
---|---|---|
$attr |
array | Reference to attribute array |
$attr_types |
\HTMLPurifier_AttrTypes | HTMLPurifier_AttrTypes instance |
Automatically generated on 2025-03-18