|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Responsible for creating definition caches. More...
Collaboration diagram for HTMLPurifier_DefinitionCacheFactory:Public Member Functions | |
| setup () | |
| Initialize default decorators. More... | |
| register ($short, $long) | |
| Registers a new definition cache object. More... | |
| create ($type, $config) | |
| Factory method that creates a cache object based on configuration. More... | |
| addDecorator ($decorator) | |
| Registers a decorator to add to all new cache objects. More... | |
Static Public Member Functions | |
| static | instance ($prototype=null) |
| Retrieves an instance of global definition cache factory. More... | |
Protected Attributes | |
| $caches = array('Serializer' => array()) | |
| @type array More... | |
| $implementations = array() | |
| @type array More... | |
| $decorators = array() | |
| @type HTMLPurifier_DefinitionCache_Decorator[] More... | |
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 |
@type array
Definition at line 11 of file DefinitionCacheFactory.php.
|
protected |
@type HTMLPurifier_DefinitionCache_Decorator[]
Definition at line 21 of file DefinitionCacheFactory.php.
|
protected |
@type array
Definition at line 16 of file DefinitionCacheFactory.php.