ILIAS
Release_5_0_x_branch Revision 61816
|
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. | |
generateDirectoryPath ($config) | |
Generates the path to the directory contain this cache's serial files. | |
generateBaseDirectoryPath ($config) | |
Generates path to base directory that contains all definition type serials. | |
Public Member Functions inherited from HTMLPurifier_DefinitionCache | |
__construct ($type) | |
generateKey ($config) | |
Generates a unique identifier for a particular configuration. | |
isOld ($key, $config) | |
Tests whether or not a key is old with respect to the configuration's version and revision number. | |
checkDefType ($def) | |
Checks if a definition's type jives with the cache's type. |
Private Member Functions | |
_write ($file, $data, $config) | |
Convenience wrapper function for file_put_contents. | |
_prepareDir ($config) | |
Prepares the directory that this type stores the serials in. | |
_testPermissions ($dir, $chmod) | |
Tests permissions on a directory and throws out friendly error messages and attempts to chmod it itself if possible. |
Additional Inherited Members | |
Data Fields inherited from HTMLPurifier_DefinitionCache | |
$type | |
string |
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().
|
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().
|
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 $file, and $result.
Referenced by add(), replace(), and set().
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().
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().
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().
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().
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().
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().
HTMLPurifier_DefinitionCache_Serializer::get | ( | $config | ) |
HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 67 of file Serializer.php.
References $file, and generateFilePath().
HTMLPurifier_DefinitionCache_Serializer::remove | ( | $config | ) |
HTMLPurifier_Config | $config |
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 80 of file Serializer.php.
References $file, and generateFilePath().
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().
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().