Class HTMLPurifier_DefinitionCache

Description

Abstract class representing Definition cache managers that implements useful common methods and is a factory.

Abstract class representing Definition cache managers that implements useful common methods and is a factory.

  • todo: Implement memcached
  • todo: Create a separate maintenance file advanced users can use to cache their custom HTMLDefinition, which can be loaded via a configuration directive
  • abstract:

Located in /library/HTMLPurifier/DefinitionCache.php (line 11)


	
			
Direct descendents
Class Description
HTMLPurifier_DefinitionCache_Decorator Abstract class representing Definition cache managers that implements useful common methods and is a factory.
HTMLPurifier_DefinitionCache_Null Null cache object to use when no caching is on.
HTMLPurifier_DefinitionCache_Serializer Abstract class representing Definition cache managers that implements useful common methods and is a factory.
Variable Summary
mixed $type
Method Summary
HTMLPurifier_DefinitionCache __construct ($name $type)
void add ( $def,  $config)
Boolean checkDefType ($def $def)
void cleanup ( $config)
void flush ( $config)
void generateKey (Instance $config)
void get ( $config)
void isOld ($key $key, $config $config)
void remove ( $config)
void replace ( $def,  $config)
void set ( $def,  $config)
Variables
mixed $type (line 14)
  • access: public
Methods
Constructor __construct (line 20)
  • access: public
HTMLPurifier_DefinitionCache __construct ($name $type)
  • $name $type: Type of definition objects this instance of the cache will handle.

Redefined in descendants as:
add (line 71)

Adds a definition object to the cache

Adds a definition object to the cache

  • abstract:
  • access: public
void add ( $def,  $config)
  • $def
  • $config

Redefined in descendants as:
checkDefType (line 60)

Checks if a definition's type jives with the cache's type

Checks if a definition's type jives with the cache's type

  • return: true if good, false if not
  • access: public
Boolean checkDefType ($def $def)
  • $def $def: Definition object to check
cleanup (line 104)

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

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

  • abstract:
  • access: public
void cleanup ( $config)
  • $config

Redefined in descendants as:
flush (line 96)

Clears all objects from cache

Clears all objects from cache

  • abstract:
  • access: public
void flush ( $config)
  • $config

Redefined in descendants as:
generateKey (line 28)

Generates a unique identifier for a particular configuration

Generates a unique identifier for a particular configuration

  • access: public
void generateKey (Instance $config)
  • Instance $config: of HTMLPurifier_Config
get (line 86)

Retrieves a definition object from the cache

Retrieves a definition object from the cache

  • abstract:
  • access: public
void get ( $config)
  • $config

Redefined in descendants as:
isOld (line 40)

Tests whether or not a key is old with respect to the configuration's version and revision number.

Tests whether or not a key is old with respect to the configuration's version and revision number.

  • access: public
void isOld ($key $key, $config $config)
  • $key $key: Key to test
  • $config $config: Instance of HTMLPurifier_Config to test against
remove (line 91)

Removes a definition object to the cache

Removes a definition object to the cache

  • abstract:
  • access: public
void remove ( $config)
  • $config

Redefined in descendants as:
replace (line 81)

Replace an object in the cache

Replace an object in the cache

  • abstract:
  • access: public
void replace ( $def,  $config)
  • $def
  • $config

Redefined in descendants as:
set (line 76)

Unconditionally saves a definition object to the cache

Unconditionally saves a definition object to the cache

  • abstract:
  • access: public
void set ( $def,  $config)
  • $def
  • $config

Redefined in descendants as:

Documentation generated on Thu, 19 Jun 2008 18:49:01 -0400 by phpDocumentor 1.4.2