Class HTMLPurifier_IDAccumulator

Description

Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 5091)


	
			
Variable Summary
mixed $ids
Method Summary
static Fully build ($config $config, $context $context)
Bool add ($id $id)
void load ($array_of_ids $array_of_ids)
Variables
mixed $ids = array() (line 5098)

Lookup table of IDs we've accumulated.

  • public:
  • access: public
Methods
static method build (line 5106)

Builds an IDAccumulator, also initializing the default blacklist

  • return: initialized HTMLPurifier_IDAccumulator
  • access: public
static Fully build ($config $config, $context $context)
  • $config $config: Instance of HTMLPurifier_Config
  • $context $context: Instance of HTMLPurifier_Context
add (line 5117)

Add an ID to the lookup table.

  • return: status, true if success, false if there's a dupe
  • access: public
Bool add ($id $id)
  • $id $id: ID to be added.
load (line 5127)

Load a list of IDs into the lookup table

  • access: public
void load ($array_of_ids $array_of_ids)
  • $array_of_ids $array_of_ids: Array of IDs to load

Documentation generated on Sun, 06 Mar 2011 00:24:09 -0500 by phpDocumentor 1.4.3