extends |
HTMLPurifier_DefinitionCache_Decorator |
---|
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.
Methods | ||
---|---|---|
public
|
copy(): HTMLPurifier_DefinitionCache_Decorator_Memory
Cross-compatible clone substitute
|
# |
public
|
add(HTMLPurifier_Definition $def, HTMLPurifier_Config $config): mixed
Adds a definition object to the cache
|
# |
public
|
set(HTMLPurifier_Definition $def, HTMLPurifier_Config $config): mixed
Unconditionally saves a definition object to the cache
Unconditionally saves a definition object to the cache Overrides |
# |
public
|
replace(HTMLPurifier_Definition $def, HTMLPurifier_Config $config): mixed
Replace an object in the cache
|
# |
public
|
get(HTMLPurifier_Config $config): mixed
Retrieves a definition object from the cache
Retrieves a definition object from the cache Overrides |
# |
Methods inherited from HTMLPurifier_DefinitionCache_Decorator |
---|
__construct(), decorate(), remove(), flush(), cleanup() |
Methods inherited from HTMLPurifier_DefinitionCache |
---|
generateKey(), isOld(), checkDefType(), |
Properties | |||
---|---|---|---|
protected
|
|
$definitions
|
# |
public
|
|
$name = 'Memory'
|
# |
Properties inherited from HTMLPurifier_DefinitionCache_Decorator |
---|
$cache, |
Properties inherited from HTMLPurifier_DefinitionCache |
---|
$type |