Метод | Описание | |
---|---|---|
append ( Puli\Repository\Api\Resource\PuliResource $resource ) | Stores a new version of a resource. | |
clear ( ) | Removes all contents of the stream. | |
contains ( string $path ) : boolean | Returns whether the stream contains any version for a path. | |
getVersions ( string $path, Puli\Repository\Api\ResourceRepository $repository = null ) : |
Returns all versions of a resource. | |
purge ( string $path ) | Removes all versions stored for a path. |
public append ( Puli\Repository\Api\Resource\PuliResource $resource ) | ||
$resource | Puli\Repository\Api\Resource\PuliResource | The resource to store. |
public getVersions ( string $path, Puli\Repository\Api\ResourceRepository $repository = null ) : |
||
$path | string | The Puli path to look for. |
$repository | Puli\Repository\Api\ResourceRepository | The repository to attach the resources to. |
Результат | The versions of the resource. |