Cheetah
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
HTMLPurifier_DefinitionCacheFactory Class Reference

Public Member Functions

 setup ()
 
 register ($short, $long)
 
 create ($type, $config)
 
 addDecorator ($decorator)
 

Static Public Member Functions

static instance ($prototype=null)
 

Protected Attributes

 $caches = array('Serializer' => array())
 
 $implementations = array()
 
 $decorators = array()
 

Detailed Description

Responsible for creating definition caches.

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

Member Function Documentation

◆ addDecorator()

HTMLPurifier_DefinitionCacheFactory::addDecorator (   $decorator)

Registers a decorator to add to all new cache objects

Parameters
HTMLPurifier_DefinitionCache_Decorator | string$decoratorAn instance or the name of a decorator

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

◆ create()

HTMLPurifier_DefinitionCacheFactory::create (   $type,
  $config 
)

Factory method that creates a cache object based on configuration

Parameters
string$typeName of definitions handled by cache
HTMLPurifier_Config$configConfig instance
Returns
mixed

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

◆ instance()

static HTMLPurifier_DefinitionCacheFactory::instance (   $prototype = null)
static

Retrieves an instance of global definition cache factory.

Parameters
HTMLPurifier_DefinitionCacheFactory$prototype
Returns
HTMLPurifier_DefinitionCacheFactory

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

◆ register()

HTMLPurifier_DefinitionCacheFactory::register (   $short,
  $long 
)

Registers a new definition cache object

Parameters
string$shortShort name of cache object, for reference
string$longFull class name of cache object, for construction

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

◆ setup()

HTMLPurifier_DefinitionCacheFactory::setup ( )

Initialize default decorators

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

Member Data Documentation

◆ $caches

HTMLPurifier_DefinitionCacheFactory::$caches = array('Serializer' => array())
protected

@type array

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

◆ $decorators

HTMLPurifier_DefinitionCacheFactory::$decorators = array()
protected

◆ $implementations

HTMLPurifier_DefinitionCacheFactory::$implementations = array()
protected

@type array

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


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