\HTMLPurifier_DefinitionCacheFactory

Responsible for creating definition caches.

Summary

Methods
Properties
Constants
setup()
instance()
register()
create()
addDecorator()
No public properties found
No constants found
No protected methods found
$caches
$implementations
$decorators
N/A
No private methods found
No private properties found
N/A

Properties

$caches

$caches

$implementations

$implementations

$decorators

$decorators

Methods

setup()

setup() : mixed

Initialize default decorators

Returns

mixed —

instance()

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

Retrieves an instance of global definition cache factory.

Parameters

\HTMLPurifier_DefinitionCacheFactory $prototype

Returns

\HTMLPurifier_DefinitionCacheFactory —

register()

register(string  $short, string  $long) : mixed

Registers a new definition cache object

Parameters

string $short

Short name of cache object, for reference

string $long

Full class name of cache object, for construction

Returns

mixed —

create()

create(string  $type, \HTMLPurifier_Config  $config) : mixed

Factory method that creates a cache object based on configuration

Parameters

string $type

Name of definitions handled by cache

\HTMLPurifier_Config $config

Config instance

Returns

mixed —

addDecorator()

addDecorator(\HTMLPurifier_DefinitionCache_Decorator|string  $decorator) : mixed

Registers a decorator to add to all new cache objects

Parameters

\HTMLPurifier_DefinitionCache_Decorator|string $decorator

An instance or the name of a decorator

Returns

mixed —