API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_DefinitionCacheFactory Class Reference

Public Member Functions

 setup ()
 
 register ($short, $long)
 
 create ($type, $config)
 
 addDecorator ($decorator)
 

Static Public Member Functions

static instance ($prototype=null)
 

Protected Attributes

 $caches = array('Serializer' => array())
 
 $implementations = array()
 
 $decorators = array()
 

Detailed Description

Responsible for creating definition caches.

Member Function Documentation

◆ addDecorator()

addDecorator (   $decorator)

Registers a decorator to add to all new cache objects

Parameters
HTMLPurifier_DefinitionCache_Decorator | string$decoratorAn instance or the name of a decorator
Here is the caller graph for this function:

◆ create()

create (   $type,
  $config 
)

Factory method that creates a cache object based on configuration

Parameters
string$typeName of definitions handled by cache
HTMLPurifier_Config$configConfig instance
Returns
mixed

◆ instance()

static instance (   $prototype = null)
static

Retrieves an instance of global definition cache factory.

Parameters
HTMLPurifier_DefinitionCacheFactory$prototype
Returns
HTMLPurifier_DefinitionCacheFactory
Here is the caller graph for this function:

◆ register()

register (   $short,
  $long 
)

Registers a new definition cache object

Parameters
string$shortShort name of cache object, for reference
string$longFull class name of cache object, for construction

◆ setup()

setup ( )

Initialize default decorators

Here is the call graph for this function:

Field Documentation

◆ $caches

$caches = array('Serializer' => array())
protected

@type array

◆ $decorators

$decorators = array()
protected

◆ $implementations

$implementations = array()
protected

@type array


The documentation for this class was generated from the following file: