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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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