|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
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) | |
| Generates the file path to the serial file corresponding to the configuration and definition name. More... | |
| generateDirectoryPath ($config) | |
| Generates the path to the directory contain this cache's serial files. More... | |
| generateBaseDirectoryPath ($config) | |
| Generates path to base directory that contains all definition type serials. More... | |
Public Member Functions inherited from HTMLPurifier_DefinitionCache | |
| __construct ($type) | |
| generateKey ($config) | |
| Generates a unique identifier for a particular configuration. More... | |
| isOld ($key, $config) | |
| Tests whether or not a key is old with respect to the configuration's version and revision number. More... | |
| checkDefType ($def) | |
| Checks if a definition's type jives with the cache's type. More... | |
| add ($def, $config) | |
| Adds a definition object to the cache. More... | |
| set ($def, $config) | |
| Unconditionally saves a definition object to the cache. More... | |
| replace ($def, $config) | |
| Replace an object in the cache. More... | |
| get ($config) | |
| Retrieves a definition object from the cache. More... | |
| remove ($config) | |
| Removes a definition object to the cache. More... | |
| flush ($config) | |
| Clears all objects from cache. More... | |
| cleanup ($config) | |
| Clears all expired (older version or revision) objects from cache. More... | |
Private Member Functions | |
| _write ($file, $data, $config) | |
| Convenience wrapper function for file_put_contents. More... | |
| _prepareDir ($config) | |
| Prepares the directory that this type stores the serials in. More... | |
| _testPermissions ($dir, $chmod) | |
| Tests permissions on a directory and throws out friendly error messages and attempts to chmod it itself if possible. More... | |
Additional Inherited Members | |
Data Fields inherited from HTMLPurifier_DefinitionCache | |
| $type | |
| @type string More... | |
Definition at line 3 of file Serializer.php.
|
private |
Prepares the directory that this type stores the serials in.
| HTMLPurifier_Config | $config |
Definition at line 203 of file Serializer.php.
References _testPermissions(), generateBaseDirectoryPath(), and generateDirectoryPath().
Referenced by add(), cleanup(), flush(), replace(), and set().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Tests permissions on a directory and throws out friendly error messages and attempts to chmod it itself if possible.
| string | $dir | Directory path |
| int | $chmod | Permissions |
Definition at line 238 of file Serializer.php.
Referenced by _prepareDir().
Here is the caller graph for this function:
|
private |
Convenience wrapper function for file_put_contents.
| string | $file | File name to write to |
| string | $data | Data to write into file |
| HTMLPurifier_Config | $config |
Definition at line 183 of file Serializer.php.
References $data, $file, and $result.
Referenced by add(), replace(), and set().
Here is the caller graph for this function:| HTMLPurifier_DefinitionCache_Serializer::add | ( | $def, | |
| $config | |||
| ) |
| HTMLPurifier_Definition | $def | |
| HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 11 of file Serializer.php.
References $file, _prepareDir(), _write(), HTMLPurifier_DefinitionCache\checkDefType(), and generateFilePath().
Here is the call graph for this function:| HTMLPurifier_DefinitionCache_Serializer::cleanup | ( | $config | ) |
| HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 115 of file Serializer.php.
References $filename, _prepareDir(), generateDirectoryPath(), and HTMLPurifier_DefinitionCache\isOld().
Here is the call graph for this function:| HTMLPurifier_DefinitionCache_Serializer::flush | ( | $config | ) |
| HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 93 of file Serializer.php.
References $filename, _prepareDir(), and generateDirectoryPath().
Here is the call graph for this function:| HTMLPurifier_DefinitionCache_Serializer::generateBaseDirectoryPath | ( | $config | ) |
Generates path to base directory that contains all definition type serials.
| HTMLPurifier_Config | $config |
Definition at line 169 of file Serializer.php.
Referenced by _prepareDir(), and generateDirectoryPath().
Here is the caller graph for this function:| HTMLPurifier_DefinitionCache_Serializer::generateDirectoryPath | ( | $config | ) |
Generates the path to the directory contain this cache's serial files.
| HTMLPurifier_Config | $config |
Definition at line 156 of file Serializer.php.
References HTMLPurifier_DefinitionCache\$type, and generateBaseDirectoryPath().
Referenced by _prepareDir(), cleanup(), flush(), and generateFilePath().
Here is the call graph for this function:
Here is the caller graph for this function:| HTMLPurifier_DefinitionCache_Serializer::generateFilePath | ( | $config | ) |
Generates the file path to the serial file corresponding to the configuration and definition name.
| HTMLPurifier_Config | $config |
Definition at line 143 of file Serializer.php.
References generateDirectoryPath(), and HTMLPurifier_DefinitionCache\generateKey().
Referenced by add(), get(), remove(), replace(), and set().
Here is the call graph for this function:
Here is the caller graph for this function:| HTMLPurifier_DefinitionCache_Serializer::get | ( | $config | ) |
| HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 67 of file Serializer.php.
References $file, and generateFilePath().
Here is the call graph for this function:| HTMLPurifier_DefinitionCache_Serializer::remove | ( | $config | ) |
| HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 80 of file Serializer.php.
References $file, and generateFilePath().
Here is the call graph for this function:| HTMLPurifier_DefinitionCache_Serializer::replace | ( | $def, | |
| $config | |||
| ) |
| HTMLPurifier_Definition | $def | |
| HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 48 of file Serializer.php.
References $file, _prepareDir(), _write(), HTMLPurifier_DefinitionCache\checkDefType(), and generateFilePath().
Here is the call graph for this function:| HTMLPurifier_DefinitionCache_Serializer::set | ( | $def, | |
| $config | |||
| ) |
| HTMLPurifier_Definition | $def | |
| HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 31 of file Serializer.php.
References $file, _prepareDir(), _write(), HTMLPurifier_DefinitionCache\checkDefType(), and generateFilePath().
Here is the call graph for this function: