Moodle  2.2.1
http://www.collinsharper.com
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.

Definition at line 6 of file DefinitionCacheFactory.php.


Member Function Documentation

addDecorator ( decorator)

Registers a decorator to add to all new cache objects

Parameters:

Definition at line 81 of file DefinitionCacheFactory.php.

Here is the caller graph for this function:

create ( type,
config 
)

Factory method that creates a cache object based on configuration

Parameters:
$nameName of definitions handled by cache
$configInstance of HTMLPurifier_Config

Definition at line 48 of file DefinitionCacheFactory.php.

static instance ( prototype = null) [static]

Retrieves an instance of global definition cache factory.

Definition at line 23 of file DefinitionCacheFactory.php.

register ( short,
long 
)

Registers a new definition cache object

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

Definition at line 39 of file DefinitionCacheFactory.php.

setup ( )

Initialize default decorators

Definition at line 16 of file DefinitionCacheFactory.php.

Here is the call graph for this function:


Field Documentation

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

Definition at line 9 of file DefinitionCacheFactory.php.

$decorators = array() [protected]

Definition at line 11 of file DefinitionCacheFactory.php.

$implementations = array() [protected]

Definition at line 10 of file DefinitionCacheFactory.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations