PHP Интерфейс Bravo3\Orm\Drivers\Filesystem\Io\IoDriverInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
delete ( string $key ) Delete a key
exists ( string $key ) : boolean Check if a key exists on the interface
read ( string $key ) : string | null Read raw data from the interface, returning null if the file is not readable
scan ( string $base, string $filter ) : string[] Get a list of keys on the interface
write ( string $key, string $data ) Write raw data to the interface

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

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

Delete a key
public delete ( string $key )
$key string

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

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

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

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

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

Get a list of keys on the interface
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 interface
public write ( string $key, string $data )
$key string
$data string