| ILIAS
    release_5-2 Revision v5.2.25-18-g3f80b828510
    | 
 Inheritance diagram for HTMLPurifier_DefinitionCache_Serializer:
 Inheritance diagram for HTMLPurifier_DefinitionCache_Serializer: Collaboration 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 216 of file Serializer.php.
References $config, _testPermissions(), generateBaseDirectoryPath(), and generateDirectoryPath().
Referenced by add(), cleanup(), flush(), replace(), and set().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 266 of file Serializer.php.
Referenced by _prepareDir().
 Here is the caller graph for this function:
 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 195 of file Serializer.php.
References $config, $data, $file, and $result.
Referenced by add(), replace(), and set().
 Here is the caller graph for this function:
 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 $config, $file, _prepareDir(), _write(), HTMLPurifier_DefinitionCache\checkDefType(), and generateFilePath().
 Here is the call graph for this function:
 Here is the call graph for this function:| HTMLPurifier_DefinitionCache_Serializer::cleanup | ( | $config | ) | 
| HTMLPurifier_Config | $config | 
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 122 of file Serializer.php.
References $config, $filename, _prepareDir(), generateDirectoryPath(), and HTMLPurifier_DefinitionCache\isOld().
 Here is the call graph for this function:
 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 $config, $filename, _prepareDir(), and generateDirectoryPath().
 Here is the call graph for this function:
 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 181 of file Serializer.php.
References $config.
Referenced by _prepareDir(), and generateDirectoryPath().
 Here is the caller graph for this function:
 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 168 of file Serializer.php.
References $config, HTMLPurifier_DefinitionCache\$type, and generateBaseDirectoryPath().
Referenced by _prepareDir(), cleanup(), flush(), and generateFilePath().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 155 of file Serializer.php.
References $config, generateDirectoryPath(), and HTMLPurifier_DefinitionCache\generateKey().
Referenced by add(), get(), remove(), replace(), and set().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 $config, $file, and generateFilePath().
 Here is the call graph for this function:
 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 $config, $file, and generateFilePath().
 Here is the call graph for this function:
 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 $config, $file, _prepareDir(), _write(), HTMLPurifier_DefinitionCache\checkDefType(), and generateFilePath().
 Here is the call graph for this function:
 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 $config, $file, _prepareDir(), _write(), HTMLPurifier_DefinitionCache\checkDefType(), and generateFilePath().
 Here is the call graph for this function:
 Here is the call graph for this function: