HTMLPurifier_DefinitionCacheFactory
Responsible for creating definition caches.
- Full name:
\HTMLPurifier_DefinitionCacheFactory
Properties
caches
implementations
decorators
Methods
setup
Initialize default decorators
instance
Retrieves an instance of global definition cache factory.
public static instance(\HTMLPurifier_DefinitionCacheFactory $prototype = null): \HTMLPurifier_DefinitionCacheFactory
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$prototype |
\HTMLPurifier_DefinitionCacheFactory |
register
Registers a new definition cache object
Parameters:
Parameter | Type | Description |
---|---|---|
$short |
string | Short name of cache object, for reference |
$long |
string | Full class name of cache object, for construction |
create
Factory method that creates a cache object based on configuration
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
string | Name of definitions handled by cache |
$config |
\HTMLPurifier_Config | Config instance |
addDecorator
Registers a decorator to add to all new cache objects
Parameters:
Parameter | Type | Description |
---|---|---|
$decorator |
\HTMLPurifier_DefinitionCache_Decorator|string | An instance or the name of a decorator |
Automatically generated on 2025-03-18