PHP Class HTMLPurifier_DefinitionCache_Serializer, yii

Inheritance: extends HTMLPurifier_DefinitionCache
Afficher le fichier Open project: yiisoft/yii Class Usage Examples

Méthodes publiques

Méthode Description
add ( HTMLPurifier_Definition $def, HTMLPurifier_Config $config ) : integer | boolean
cleanup ( HTMLPurifier_Config $config ) : boolean
flush ( HTMLPurifier_Config $config ) : boolean
generateBaseDirectoryPath ( HTMLPurifier_Config $config ) : mixed | string Generates path to base directory that contains all definition type serials
generateDirectoryPath ( HTMLPurifier_Config $config ) : string Generates the path to the directory contain this cache's serial files
generateFilePath ( HTMLPurifier_Config $config ) : string Generates the file path to the serial file corresponding to the configuration and definition name
get ( HTMLPurifier_Config $config ) : boolean | HTMLPurifier_Config
remove ( HTMLPurifier_Config $config ) : boolean
replace ( HTMLPurifier_Definition $def, HTMLPurifier_Config $config ) : integer | boolean
set ( HTMLPurifier_Definition $def, HTMLPurifier_Config $config ) : integer | boolean

Private Methods

Méthode Description
_prepareDir ( HTMLPurifier_Config $config ) : boolean Prepares the directory that this type stores the serials in
_testPermissions ( string $dir, integer $chmod ) : boolean Tests permissions on a directory and throws out friendly error messages and attempts to chmod it itself if possible
_write ( string $file, string $data, HTMLPurifier_Config $config ) : integer | boolean Convenience wrapper function for file_put_contents

Method Details

add() public méthode

public add ( HTMLPurifier_Definition $def, HTMLPurifier_Config $config ) : integer | boolean
$def HTMLPurifier_Definition
$config HTMLPurifier_Config
Résultat integer | boolean

cleanup() public méthode

public cleanup ( HTMLPurifier_Config $config ) : boolean
$config HTMLPurifier_Config
Résultat boolean

flush() public méthode

public flush ( HTMLPurifier_Config $config ) : boolean
$config HTMLPurifier_Config
Résultat boolean

generateBaseDirectoryPath() public méthode

Generates path to base directory that contains all definition type serials
public generateBaseDirectoryPath ( HTMLPurifier_Config $config ) : mixed | string
$config HTMLPurifier_Config
Résultat mixed | string

generateDirectoryPath() public méthode

Generates the path to the directory contain this cache's serial files
public generateDirectoryPath ( HTMLPurifier_Config $config ) : string
$config HTMLPurifier_Config
Résultat string

generateFilePath() public méthode

Generates the file path to the serial file corresponding to the configuration and definition name
public generateFilePath ( HTMLPurifier_Config $config ) : string
$config HTMLPurifier_Config
Résultat string

get() public méthode

public get ( HTMLPurifier_Config $config ) : boolean | HTMLPurifier_Config
$config HTMLPurifier_Config
Résultat boolean | HTMLPurifier_Config

remove() public méthode

public remove ( HTMLPurifier_Config $config ) : boolean
$config HTMLPurifier_Config
Résultat boolean

replace() public méthode

public replace ( HTMLPurifier_Definition $def, HTMLPurifier_Config $config ) : integer | boolean
$def HTMLPurifier_Definition
$config HTMLPurifier_Config
Résultat integer | boolean

set() public méthode

public set ( HTMLPurifier_Definition $def, HTMLPurifier_Config $config ) : integer | boolean
$def HTMLPurifier_Definition
$config HTMLPurifier_Config
Résultat integer | boolean