HTMLPurifier 4.4.0
HTMLPurifier_AttrCollections Class Reference

Defines common attribute collections that modules reference. More...

List of all members.

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

Public Attributes

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

Detailed Description

Defines common attribute collections that modules reference.

Definition at line 7 of file AttrCollections.php.


Constructor & Destructor Documentation

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:
$attr_typesHTMLPurifier_AttrTypes instance
$modulesHash array of HTMLPurifier_HTMLModule members

Definition at line 22 of file AttrCollections.php.

References expandIdentifiers(), and performInclusions().

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:
$attr_typesHTMLPurifier_AttrTypes instance
$modulesHash array of HTMLPurifier_HTMLModule members

Definition at line 280 of file HTMLPurifier.standalone.php.

References expandIdentifiers(), and performInclusions().


Member Function Documentation

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:
&$attrReference to attribute array
$attr_typesHTMLPurifier_AttrTypes instance

Definition at line 82 of file AttrCollections.php.

References $def.

Referenced by __construct().

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:
&$attrReference to attribute array
$attr_typesHTMLPurifier_AttrTypes instance

Definition at line 340 of file HTMLPurifier.standalone.php.

References $def.

HTMLPurifier_AttrCollections::performInclusions ( &$  attr)

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

Parameters:
&$attrReference to attribute array

Definition at line 312 of file HTMLPurifier.standalone.php.

HTMLPurifier_AttrCollections::performInclusions ( &$  attr)

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

Parameters:
&$attrReference to attribute array

Definition at line 54 of file AttrCollections.php.

Referenced by __construct().


Member Data Documentation

HTMLPurifier_AttrCollections::$info = array()

Associative array of attribute collections, indexed by name.

Definition at line 13 of file AttrCollections.php.


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