[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/lib/htmlpurifier/HTMLPurifier/ -> DefinitionCache.php (summary)

(no description)

File Size: 131 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTMLPurifier_DefinitionCache:: (11 methods):
  HTMLPurifier_DefinitionCache()
  generateKey()
  isOld()
  checkDefType()
  add()
  set()
  replace()
  get()
  remove()
  flush()
  cleanup()


Class: HTMLPurifier_DefinitionCache  - X-Ref

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

HTMLPurifier_DefinitionCache($type)   X-Ref

param: $name Type of definition objects this instance of the

generateKey($config)   X-Ref
Generates a unique identifier for a particular configuration

param: Instance of HTMLPurifier_Config

isOld($key, $config)   X-Ref
Tests whether or not a key is old with respect to the configuration's
version and revision number.

param: $key Key to test
param: $config Instance of HTMLPurifier_Config to test against

checkDefType($def)   X-Ref
Checks if a definition's type jives with the cache's type

param: $def Definition object to check
return: Boolean true if good, false if not

add($def, $config)   X-Ref
Adds a definition object to the cache


set($def, $config)   X-Ref
Unconditionally saves a definition object to the cache


replace($def, $config)   X-Ref
Replace an object in the cache


get($config)   X-Ref
Retrieves a definition object from the cache


remove($config)   X-Ref
Removes a definition object to the cache


flush($config)   X-Ref
Clears all objects from cache


cleanup($config)   X-Ref
Clears all expired (older version or revision) objects from cache




Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7