Class HTMLPurifier_DefinitionCacheFactory

Description

Responsible for creating definition caches.

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


	
			
Variable Summary
Method Summary
static void instance ([ $prototype = null])
void addDecorator ( $decorator)
void create ($name $type, $config $config)
void register ($short $short, $long $long)
void setup ()
Variables
mixed $caches = array('Serializer' => array()) (line 2397)
  • access: protected
mixed $decorators = array() (line 2399)
  • access: protected
mixed $implementations = array() (line 2398)
  • access: protected
Methods
static method instance (line 2411)

Retrieves an instance of global definition cache factory.

  • access: public
static void instance ([ $prototype = null])
  • $prototype
addDecorator (line 2469)

Registers a decorator to add to all new cache objects

  • access: public
void addDecorator ( $decorator)
  • $decorator
create (line 2436)

Factory method that creates a cache object based on configuration

  • access: public
void create ($name $type, $config $config)
  • $name $type: Name of definitions handled by cache
  • $config $config: Instance of HTMLPurifier_Config
register (line 2427)

Registers a new definition cache object

  • access: public
void register ($short $short, $long $long)
  • $short $short: Short name of cache object, for reference
  • $long $long: Full class name of cache object, for construction
setup (line 2404)

Initialize default decorators

  • access: public
void setup ()

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