PHP Класс Clockwork\Storage\FileStorage

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

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

Метод Описание
__construct ( $path, $dirPermissions = 448 ) Return new storage, takes path where to store files as argument, throws exception if path is not writable
retrieve ( $id = null, $last = null ) Retrieve request specified by id argument, if second argument is specified, array of requests from id to last will be returned
store ( Request $request ) Store request, requests are stored in JSON representation in files named .json in storage path

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

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

Return new storage, takes path where to store files as argument, throws exception if path is not writable
public __construct ( $path, $dirPermissions = 448 )

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

Retrieve request specified by id argument, if second argument is specified, array of requests from id to last will be returned
public retrieve ( $id = null, $last = null )

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

Store request, requests are stored in JSON representation in files named .json in storage path
public store ( Request $request )
$request Clockwork\Request\Request