PHP 인터페이스 Bravo3\Orm\Drivers\Filesystem\Io\IoDriverInterface

파일 보기 프로젝트 열기: bravo3/orm 0 사용 예제들

공개 메소드들

메소드 설명
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