PHP 클래스 Clockwork\Storage\FileStorage

상속: extends Storage
파일 보기 프로젝트 열기: itsgoingd/clockwork 1 사용 예제들

공개 메소드들

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