PHP 클래스 HTMLPurifier_DefinitionCache_Serializer, yii

상속: extends HTMLPurifier_DefinitionCache
파일 보기 프로젝트 열기: yiisoft/yii 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
_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

메소드 상세

add() 공개 메소드

public add ( HTMLPurifier_Definition $def, HTMLPurifier_Config $config ) : integer | boolean
$def HTMLPurifier_Definition
$config HTMLPurifier_Config
리턴 integer | boolean

cleanup() 공개 메소드

public cleanup ( HTMLPurifier_Config $config ) : boolean
$config HTMLPurifier_Config
리턴 boolean

flush() 공개 메소드

public flush ( HTMLPurifier_Config $config ) : boolean
$config HTMLPurifier_Config
리턴 boolean

generateBaseDirectoryPath() 공개 메소드

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

generateDirectoryPath() 공개 메소드

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

generateFilePath() 공개 메소드

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

get() 공개 메소드

public get ( HTMLPurifier_Config $config ) : boolean | HTMLPurifier_Config
$config HTMLPurifier_Config
리턴 boolean | HTMLPurifier_Config

remove() 공개 메소드

public remove ( HTMLPurifier_Config $config ) : boolean
$config HTMLPurifier_Config
리턴 boolean

replace() 공개 메소드

public replace ( HTMLPurifier_Definition $def, HTMLPurifier_Config $config ) : integer | boolean
$def HTMLPurifier_Definition
$config HTMLPurifier_Config
리턴 integer | boolean

set() 공개 메소드

public set ( HTMLPurifier_Definition $def, HTMLPurifier_Config $config ) : integer | boolean
$def HTMLPurifier_Definition
$config HTMLPurifier_Config
리턴 integer | boolean