PHP Класс Bravo3\Orm\Drivers\Filesystem\Io\PharIoDriver

Наследование: extends AbstractIoDriver
Показать файл Открыть проект

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

Свойство Тип Описание
$archive PharData
$compression Bravo3\Orm\Drivers\Filesystem\Enum\Compression
$filename string

Открытые методы

Метод Описание
__construct ( string $filename, ArchiveType $archive_type, Compression $compression = null ) Create a tar or zip I/O driver
__destruct ( ) Archive cleanup
delete ( string $key ) Delete a key from the archive
exists ( string $key ) : boolean Check if a key exists in the archive
read ( string $key ) : string | null Read raw data from the archive, returning null if the file is not readable
scan ( string $base, string $filter ) : string[] Get a list of keys in the archive
write ( string $key, string $data ) Write raw data to the archive

Описание методов

__construct() публичный Метод

Create a tar or zip I/O driver
public __construct ( string $filename, ArchiveType $archive_type, Compression $compression = null )
$filename string Path to database file
$archive_type Bravo3\Orm\Drivers\Filesystem\Enum\ArchiveType Tar or zip archive
$compression Bravo3\Orm\Drivers\Filesystem\Enum\Compression Compression not supported by zip archives

__destruct() публичный Метод

Archive cleanup
public __destruct ( )

delete() публичный Метод

Delete a key from the archive
public delete ( string $key )
$key string

exists() публичный Метод

Check if a key exists in the archive
public exists ( string $key ) : boolean
$key string
Результат boolean

read() публичный Метод

Read raw data from the archive, returning null if the file is not readable
public read ( string $key ) : string | null
$key string
Результат string | null

scan() публичный Метод

Get a list of keys in the archive
public scan ( string $base, string $filter ) : string[]
$base string Base path to list all keys from
$filter string Key filter, @see docs/Queries.md - Wildcards
Результат string[]

write() публичный Метод

Write raw data to the archive
public write ( string $key, string $data )
$key string
$data string

Описание свойств

$archive защищенное свойство

protected PharData $archive
Результат PharData

$compression защищенное свойство

protected Compression,Bravo3\Orm\Drivers\Filesystem\Enum $compression
Результат Bravo3\Orm\Drivers\Filesystem\Enum\Compression

$filename защищенное свойство

protected string $filename
Результат string