PHP 클래스 Bravo3\Orm\Drivers\Filesystem\Io\PharIoDriver

상속: extends AbstractIoDriver
파일 보기 프로젝트 열기: bravo3/orm

보호된 프로퍼티들

프로퍼티 타입 설명
$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