PHP Интерфейс Puli\Repository\Api\ChangeStream\ChangeStream

С версии: 1.0
Автор: Titouan Galopin ([email protected])
Автор: Bernhard Schussek ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
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 ) : VersionList Returns all versions of a resource.
purge ( string $path ) Removes all versions stored for a path.

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

append() публичный метод

Stores a new version of a resource.
public append ( Puli\Repository\Api\Resource\PuliResource $resource )
$resource Puli\Repository\Api\Resource\PuliResource The resource to store.

clear() публичный метод

Removes all contents of the stream.
public clear ( )

contains() публичный метод

Returns whether the stream contains any version for a path.
public contains ( string $path ) : boolean
$path string The Puli path.
Результат boolean Returns `true` if a version can be found and `false` otherwise.

getVersions() публичный метод

Returns all versions of a resource.
public getVersions ( string $path, Puli\Repository\Api\ResourceRepository $repository = null ) : VersionList
$path string The Puli path to look for.
$repository Puli\Repository\Api\ResourceRepository The repository to attach the resources to.
Результат VersionList The versions of the resource.

purge() публичный метод

Removes all versions stored for a path.
public purge ( string $path )
$path string The Puli path.