Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_DefinitionCache_Serializer Class Reference
Inheritance diagram for HTMLPurifier_DefinitionCache_Serializer:
Collaboration diagram for HTMLPurifier_DefinitionCache_Serializer:

Public Member Functions

 add ($def, $config)
 set ($def, $config)
 replace ($def, $config)
 get ($config)
 remove ($config)
 flush ($config)
 cleanup ($config)
 generateFilePath ($config)
 generateDirectoryPath ($config)
 generateBaseDirectoryPath ($config)

Detailed Description

Definition at line 3 of file Serializer.php.


Member Function Documentation

add ( def,
config 
)

Adds a definition object to the cache

Reimplemented from HTMLPurifier_DefinitionCache.

Definition at line 7 of file Serializer.php.

Here is the call graph for this function:

cleanup ( config)

Clears all expired (older version or revision) objects from cache

Note:
Be carefuly implementing this method as flush. Flush must not interfere with other Definition types, and cleanup() should not be repeatedly called by userland code.

Reimplemented from HTMLPurifier_DefinitionCache.

Definition at line 53 of file Serializer.php.

Here is the call graph for this function:

flush ( config)

Clears all objects from cache

Reimplemented from HTMLPurifier_DefinitionCache.

Definition at line 42 of file Serializer.php.

Here is the call graph for this function:

Generates path to base directory that contains all definition type serials

Todo:
Make protected

Definition at line 90 of file Serializer.php.

Here is the caller graph for this function:

generateDirectoryPath ( config)

Generates the path to the directory contain this cache's serial files

Note:
No trailing slash
Todo:
Make protected

Definition at line 80 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

generateFilePath ( config)

Generates the file path to the serial file corresponding to the configuration and definition name

Todo:
Make protected

Definition at line 70 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get ( config)

Retrieves a definition object from the cache

Reimplemented from HTMLPurifier_DefinitionCache.

Definition at line 30 of file Serializer.php.

Here is the call graph for this function:

remove ( config)

Removes a definition object to the cache

Reimplemented from HTMLPurifier_DefinitionCache.

Definition at line 36 of file Serializer.php.

Here is the call graph for this function:

replace ( def,
config 
)

Replace an object in the cache

Reimplemented from HTMLPurifier_DefinitionCache.

Definition at line 22 of file Serializer.php.

Here is the call graph for this function:

set ( def,
config 
)

Unconditionally saves a definition object to the cache

Reimplemented from HTMLPurifier_DefinitionCache.

Definition at line 15 of file Serializer.php.

Here is the call graph for this function:


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