PHP Class Puli\Repository\ChangeStream\JsonChangeStream

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Puli\Repository\Api\ChangeStream\ChangeStream
ファイルを表示 Open project: puli/repository

Public Methods

Method Description
__construct ( string $path )
append ( Puli\Repository\Api\Resource\PuliResource $resource )
clear ( )
contains ( $path )
getVersions ( $path, Puli\Repository\Api\ResourceRepository $repository = null )
purge ( $path )

Private Methods

Method Description
flush ( ) Writes the JSON file.
load ( ) Loads the JSON file.

Method Details

__construct() public method

public __construct ( string $path )
$path string The path to the JSON file.

append() public method

public append ( Puli\Repository\Api\Resource\PuliResource $resource )
$resource Puli\Repository\Api\Resource\PuliResource

clear() public method

public clear ( )

contains() public method

public contains ( $path )

getVersions() public method

public getVersions ( $path, Puli\Repository\Api\ResourceRepository $repository = null )
$repository Puli\Repository\Api\ResourceRepository

purge() public method

public purge ( $path )