XOOPS 2.5.6
Final
|
Public Member Functions | |
add ($def, $config) | |
cleanup ($config) | |
flush ($config) | |
generateBaseDirectoryPath ($config) | |
generateDirectoryPath ($config) | |
generateFilePath ($config) | |
get ($config) | |
remove ($config) | |
replace ($def, $config) | |
set ($def, $config) | |
Public Member Functions inherited from HTMLPurifier_DefinitionCache | |
__construct ($type) | |
add ($def, $config) | |
checkDefType ($def) | |
cleanup ($config) | |
flush ($config) | |
generateKey ($config) | |
get ($config) | |
isOld ($key, $config) | |
remove ($config) | |
replace ($def, $config) | |
set ($def, $config) | |
Private Member Functions | |
_prepareDir ($config) | |
_testPermissions ($dir, $chmod) | |
_write ($file, $data, $config) | |
Additional Inherited Members | |
Public Attributes inherited from HTMLPurifier_DefinitionCache | |
$type | |
Definition at line 3 of file Serializer.php.
|
private |
Prepares the directory that this type stores the serials in
$config | Config object |
Definition at line 122 of file Serializer.php.
References $config, _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
$dir | Directory path |
$chmod | Permissions |
Definition at line 154 of file Serializer.php.
References $dir.
Referenced by _prepareDir().
|
private |
Convenience wrapper function for file_put_contents
$file | File name to write to |
$data | Data to write into file |
$config | Config object |
Definition at line 103 of file Serializer.php.
References $config, $file, and $result.
Referenced by add(), replace(), and set().
HTMLPurifier_DefinitionCache_Serializer::add | ( | $def, | |
$config | |||
) |
Definition at line 7 of file Serializer.php.
References $config, $file, _prepareDir(), _write(), HTMLPurifier_DefinitionCache\checkDefType(), and generateFilePath().
HTMLPurifier_DefinitionCache_Serializer::cleanup | ( | $config | ) |
Definition at line 53 of file Serializer.php.
References $config, $dir, _prepareDir(), generateDirectoryPath(), and HTMLPurifier_DefinitionCache\isOld().
HTMLPurifier_DefinitionCache_Serializer::flush | ( | $config | ) |
Definition at line 42 of file Serializer.php.
References $config, $dir, _prepareDir(), and generateDirectoryPath().
HTMLPurifier_DefinitionCache_Serializer::generateBaseDirectoryPath | ( | $config | ) |
Generates path to base directory that contains all definition type serials
Definition at line 90 of file Serializer.php.
References $config.
Referenced by _prepareDir(), and generateDirectoryPath().
HTMLPurifier_DefinitionCache_Serializer::generateDirectoryPath | ( | $config | ) |
Generates the path to the directory contain this cache's serial files
Definition at line 80 of file Serializer.php.
References $config, 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
Definition at line 70 of file Serializer.php.
References $config, generateDirectoryPath(), and HTMLPurifier_DefinitionCache\generateKey().
Referenced by add(), get(), remove(), replace(), and set().
HTMLPurifier_DefinitionCache_Serializer::get | ( | $config | ) |
Definition at line 30 of file Serializer.php.
References $config, $file, and generateFilePath().
HTMLPurifier_DefinitionCache_Serializer::remove | ( | $config | ) |
Definition at line 36 of file Serializer.php.
References $config, $file, and generateFilePath().
HTMLPurifier_DefinitionCache_Serializer::replace | ( | $def, | |
$config | |||
) |
Definition at line 22 of file Serializer.php.
References $config, $file, _prepareDir(), _write(), HTMLPurifier_DefinitionCache\checkDefType(), and generateFilePath().
HTMLPurifier_DefinitionCache_Serializer::set | ( | $def, | |
$config | |||
) |
Definition at line 15 of file Serializer.php.
References $config, $file, _prepareDir(), _write(), HTMLPurifier_DefinitionCache\checkDefType(), and generateFilePath().