PHP Класс PrivateBin\Persistence\AbstractPersistence

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

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

Метод Описание
getPath ( string $filename = null ) : string get the path
setPath ( string $path ) : void set the path

Защищенные методы

Метод Описание
_exists ( string $filename ) : boolean checks if the file exists
_initialize ( ) : void prepares path for storage
_store ( string $filename, string $data ) : string store the data

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

_exists() защищенный статический Метод

checks if the file exists
protected static _exists ( string $filename ) : boolean
$filename string
Результат boolean

_initialize() защищенный статический Метод

prepares path for storage
protected static _initialize ( ) : void
Результат void

_store() защищенный статический Метод

store the data
protected static _store ( string $filename, string $data ) : string
$filename string
$data string
Результат string

getPath() публичный статический Метод

get the path
public static getPath ( string $filename = null ) : string
$filename string
Результат string

setPath() публичный статический Метод

set the path
public static setPath ( string $path ) : void
$path string
Результат void