\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 : 

Type

$implementations

$implementations : 

Type

$decorators

$decorators : 

Type

Methods

setup()

setup() 

Initialize default decorators

register()

register(string  $short, string  $long) 

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

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) 

Registers a decorator to add to all new cache objects

Parameters

\HTMLPurifier_DefinitionCache_Decorator|string $decorator

An instance or the name of a decorator