PHP 인터페이스 Puli\Repository\Api\ChangeStream\ChangeStream

부터: 1.0
저자: Titouan Galopin ([email protected])
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: puli/repository 0 사용 예제들

공개 메소드들

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