Responsible for creating definition caches.
| Methods | ||||||
|---|---|---|---|---|---|---|
| 
					
	public
					
					
				 | setup()
		Initialize default decorators
	 Initialize default decorators | # | ||||
| 
					
	public
					static
					
				 | instance(HTMLPurifier_DefinitionCacheFactory $prototype = null): HTMLPurifier_DefinitionCacheFactory
		Retrieves an instance of global definition cache factory.
	 Retrieves an instance of global definition cache factory. | # | ||||
| 
					
	public
					
					
				 | register(string $short, string $long)
		Registers a new definition cache object
	 Registers a new definition cache object Parameters
 | # | ||||
| 
					
	public
					
					
				 | create(string $type, HTMLPurifier_Config $config): mixed
		Factory method that creates a cache object based on configuration
	 Factory method that creates a cache object based on configuration Parameters
 | # | ||||
| 
					
	public
					
					
				 | addDecorator(HTMLPurifier_DefinitionCache_Decorator|string $decorator)
		Registers a decorator to add to all new cache objects
	 Registers a decorator to add to all new cache objects Parameters
 | # | ||||
| Properties | |||
|---|---|---|---|
| 
	protected
					
					
				 |  | $caches = ['Serializer' => []] | # | 
| 
	protected
					
					
				 |  | $implementations = [] | # | 
| 
	protected
					
					
				 |  | $decorators = [] | # |