HTMLPurifier 4.4.0
|
Definition cache decorator class that saves all cache retrievals to PHP's memory; good for unit tests or circumstances where there are lots of configuration objects floating around. More...
Public Member Functions | |
copy () | |
Cross-compatible clone substitute. | |
add ($def, $config) | |
Adds a definition object to the cache. | |
set ($def, $config) | |
Unconditionally saves a definition object to the cache. | |
replace ($def, $config) | |
Replace an object in the cache. | |
get ($config) | |
Retrieves a definition object from the cache. | |
copy () | |
Cross-compatible clone substitute. | |
add ($def, $config) | |
Adds a definition object to the cache. | |
set ($def, $config) | |
Unconditionally saves a definition object to the cache. | |
replace ($def, $config) | |
Replace an object in the cache. | |
get ($config) | |
Retrieves a definition object from the cache. | |
Public Attributes | |
$name = 'Memory' | |
Protected Attributes | |
$definitions |
Definition cache decorator class that saves all cache retrievals to PHP's memory; good for unit tests or circumstances where there are lots of configuration objects floating around.
Definition at line 8 of file Memory.php.
HTMLPurifier_DefinitionCache_Decorator_Memory::add | ( | $ | def, |
$ | config | ||
) |
Adds a definition object to the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 19 of file Memory.php.
References $config, $def, and HTMLPurifier_DefinitionCache::generateKey().
Referenced by add().
HTMLPurifier_DefinitionCache_Decorator_Memory::add | ( | $ | def, |
$ | config | ||
) |
Adds a definition object to the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 12404 of file HTMLPurifier.standalone.php.
References $config, $def, add(), and HTMLPurifier_DefinitionCache::generateKey().
HTMLPurifier_DefinitionCache_Decorator_Memory::copy | ( | ) |
Cross-compatible clone substitute.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 15 of file Memory.php.
HTMLPurifier_DefinitionCache_Decorator_Memory::copy | ( | ) |
Cross-compatible clone substitute.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 12400 of file HTMLPurifier.standalone.php.
HTMLPurifier_DefinitionCache_Decorator_Memory::get | ( | $ | config | ) |
Retrieves a definition object from the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 37 of file Memory.php.
References $config, and HTMLPurifier_DefinitionCache::generateKey().
Referenced by get().
HTMLPurifier_DefinitionCache_Decorator_Memory::get | ( | $ | config | ) |
Retrieves a definition object from the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 12422 of file HTMLPurifier.standalone.php.
References $config, HTMLPurifier_DefinitionCache::generateKey(), and get().
HTMLPurifier_DefinitionCache_Decorator_Memory::replace | ( | $ | def, |
$ | config | ||
) |
Replace an object in the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 12416 of file HTMLPurifier.standalone.php.
References $config, $def, HTMLPurifier_DefinitionCache::generateKey(), and replace().
HTMLPurifier_DefinitionCache_Decorator_Memory::replace | ( | $ | def, |
$ | config | ||
) |
Replace an object in the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 31 of file Memory.php.
References $config, $def, and HTMLPurifier_DefinitionCache::generateKey().
Referenced by replace().
HTMLPurifier_DefinitionCache_Decorator_Memory::set | ( | $ | def, |
$ | config | ||
) |
Unconditionally saves a definition object to the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 25 of file Memory.php.
References $config, $def, and HTMLPurifier_DefinitionCache::generateKey().
Referenced by set().
HTMLPurifier_DefinitionCache_Decorator_Memory::set | ( | $ | def, |
$ | config | ||
) |
Unconditionally saves a definition object to the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 12410 of file HTMLPurifier.standalone.php.
References $config, $def, HTMLPurifier_DefinitionCache::generateKey(), and set().
HTMLPurifier_DefinitionCache_Decorator_Memory::$definitions [protected] |
Definition at line 12 of file Memory.php.
HTMLPurifier_DefinitionCache_Decorator_Memory::$name = 'Memory' |
Definition at line 13 of file Memory.php.