Class HTMLPurifier_DefinitionCacheFactory
Responsible for creating definition caches.
Methods summary
public
|
#
setup( )
Initialize default decorators
Initialize default decorators
|
public static
|
#
instance( $prototype = null )
Retrieves an instance of global definition cache factory.
Retrieves an instance of global definition cache factory.
|
public
|
#
register( $short $short, $long $long )
Registers a new definition cache object
Registers a new definition cache object
Parameters
- $short
$short Short name of cache object, for reference
- $long
$long Full class name of cache object, for construction
|
public
|
#
create( $name $type, $config $config )
Factory method that creates a cache object based on configuration
Factory method that creates a cache object based on configuration
Parameters
- $type
$name Name of definitions handled by cache
- $config
$config Instance of HTMLPurifier_Config
|
public
|
#
addDecorator( $decorator )
Registers a decorator to add to all new cache objects
Registers a decorator to add to all new cache objects
Parameters
|