Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
HTMLPurifier_AttrCollections Class Reference

Public Member Functions

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

Public Attributes

 $info = array()
 Associative array of attribute collections, indexed by name.
 

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_AttrCollections::__construct ( $attr_types,
$modules )

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

Parameters
HTMLPurifier_AttrTypes$attr_typesHTMLPurifier_AttrTypes instance
HTMLPurifier_HTMLModule[]$modulesHash array of HTMLPurifier_HTMLModule members

Member Function Documentation

◆ expandIdentifiers()

HTMLPurifier_AttrCollections::expandIdentifiers ( & $attr,
$attr_types )

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

Parameters
array&$attrReference to attribute array
HTMLPurifier_AttrTypes$attr_typesHTMLPurifier_AttrTypes instance

◆ performInclusions()

HTMLPurifier_AttrCollections::performInclusions ( & $attr)

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

Parameters
array&$attrReference to attribute array

Member Data Documentation

◆ $info

HTMLPurifier_AttrCollections::$info = array()

Associative array of attribute collections, indexed by name.

@type array


The documentation for this class was generated from the following file: