PHP 클래스 Zephir\FileSystem\Apc

Uses APC as filesystem for temporary operations APC creates a new memory pool when a CLI process is created so this adapter is useless
파일 보기 프로젝트 열기: phalcon/zephir

보호된 프로퍼티들

프로퍼티 타입 설명
$basePrefix
$initialized

공개 메소드들

메소드 설명
__construct ( string $basePrefix = 'zephir-' ) Apc constructor
clean ( ) Deletes the temporary directory
exists ( string $path ) : boolean Checks whether a temporary entry does exist
file ( string $path ) : array Returns a temporary entry as an array
getHashFile ( string $algorithm, string $path, boolean $cache = false ) : string This function does not perform operations in the temporary directory but it caches the results to avoid reprocessing
initialize ( ) Initialize the filesystem
isInitialized ( ) : boolean Checks if the filesystem is initialized
makeDirectory ( string $path ) : boolean Creates a directory inside the temporary container
modificationTime ( string $path ) : boolean Returns the modification time of a temporary entry
read ( string $path ) : mixed | void Writes data from a temporary entry
requireFile ( string $path ) : array Requires a file from the temporary directory
system ( string $command, string $descriptor, string $destination ) Executes a command and saves the result into a temporary entry
write ( string $path, string $data ) : boolean Writes data into a temporary entry

메소드 상세

__construct() 공개 메소드

Apc constructor
public __construct ( string $basePrefix = 'zephir-' )
$basePrefix string

clean() 공개 메소드

Deletes the temporary directory
public clean ( )

exists() 공개 메소드

Checks whether a temporary entry does exist
public exists ( string $path ) : boolean
$path string
리턴 boolean

file() 공개 메소드

Returns a temporary entry as an array
public file ( string $path ) : array
$path string
리턴 array

getHashFile() 공개 메소드

This function does not perform operations in the temporary directory but it caches the results to avoid reprocessing
public getHashFile ( string $algorithm, string $path, boolean $cache = false ) : string
$algorithm string
$path string
$cache boolean
리턴 string

initialize() 공개 메소드

Initialize the filesystem
public initialize ( )

isInitialized() 공개 메소드

Checks if the filesystem is initialized
public isInitialized ( ) : boolean
리턴 boolean

makeDirectory() 공개 메소드

Creates a directory inside the temporary container
public makeDirectory ( string $path ) : boolean
$path string
리턴 boolean

modificationTime() 공개 메소드

Returns the modification time of a temporary entry
public modificationTime ( string $path ) : boolean
$path string
리턴 boolean

read() 공개 메소드

Writes data from a temporary entry
public read ( string $path ) : mixed | void
$path string
리턴 mixed | void

requireFile() 공개 메소드

Requires a file from the temporary directory
public requireFile ( string $path ) : array
$path string
리턴 array

system() 공개 메소드

Executes a command and saves the result into a temporary entry
public system ( string $command, string $descriptor, string $destination )
$command string
$descriptor string
$destination string

write() 공개 메소드

Writes data into a temporary entry
public write ( string $path, string $data ) : boolean
$path string
$data string
리턴 boolean

프로퍼티 상세

$basePrefix 보호되어 있는 프로퍼티

protected $basePrefix

$initialized 보호되어 있는 프로퍼티

protected $initialized