|
ILIAS
Release_5_0_x_branch Revision 61816
|
Responsible for creating definition caches. More...
Collaboration diagram for HTMLPurifier_DefinitionCacheFactory:Public Member Functions | |
| setup () | |
| Initialize default decorators. | |
| register ($short, $long) | |
| Registers a new definition cache object. | |
| create ($type, $config) | |
| Factory method that creates a cache object based on configuration. | |
| addDecorator ($decorator) | |
| Registers a decorator to add to all new cache objects. | |
Static Public Member Functions | |
| static | instance ($prototype=null) |
| Retrieves an instance of global definition cache factory. | |
Protected Attributes | |
| $caches = array('Serializer' => array()) | |
| array | |
| $implementations = array() | |
| array | |
| $decorators = array() | |
| HTMLPurifier_DefinitionCache_Decorator[] | |
Responsible for creating definition caches.
Definition at line 6 of file DefinitionCacheFactory.php.
| HTMLPurifier_DefinitionCacheFactory::addDecorator | ( | $decorator | ) |
Registers a decorator to add to all new cache objects.
| HTMLPurifier_DefinitionCache_Decorator | string | $decorator | An instance or the name of a decorator |
Definition at line 96 of file DefinitionCacheFactory.php.
Referenced by setup().
Here is the caller graph for this function:| HTMLPurifier_DefinitionCacheFactory::create | ( | $type, | |
| $config | |||
| ) |
Factory method that creates a cache object based on configuration.
| string | $type | Name of definitions handled by cache |
| HTMLPurifier_Config | $config | Config instance |
Definition at line 64 of file DefinitionCacheFactory.php.
|
static |
Retrieves an instance of global definition cache factory.
| HTMLPurifier_DefinitionCacheFactory | $prototype |
Definition at line 36 of file DefinitionCacheFactory.php.
Referenced by HTMLPurifier_Config\getDefinition().
Here is the caller graph for this function:| HTMLPurifier_DefinitionCacheFactory::register | ( | $short, | |
| $long | |||
| ) |
Registers a new definition cache object.
| string | $short | Short name of cache object, for reference |
| string | $long | Full class name of cache object, for construction |
Definition at line 53 of file DefinitionCacheFactory.php.
| HTMLPurifier_DefinitionCacheFactory::setup | ( | ) |
Initialize default decorators.
Definition at line 26 of file DefinitionCacheFactory.php.
References addDecorator().
Here is the call graph for this function:
|
protected |
array
Definition at line 11 of file DefinitionCacheFactory.php.
|
protected |
HTMLPurifier_DefinitionCache_Decorator[]
Definition at line 21 of file DefinitionCacheFactory.php.
|
protected |
array
Definition at line 16 of file DefinitionCacheFactory.php.