PHP 클래스 Puli\Repository\AbstractEditableRepository

부터: 1.0
저자: Bernhard Schussek ([email protected])
저자: Titouan Galopin ([email protected])
상속: extends AbstractRepository, implements Puli\Repository\Api\EditableRepository
파일 보기 프로젝트 열기: puli/repository 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Puli\Repository\Api\ChangeStream\ChangeStream $changeStream = null ) Create the repository.
getVersions ( $path )

보호된 메소드들

메소드 설명
clearVersions ( ) Clears the change stream.
removeVersions ( string $path ) Removes all versions of a resource from the change stream.
storeVersion ( Puli\Repository\Api\Resource\PuliResource $resource ) Stores a version of a resource in the change stream.

메소드 상세

__construct() 공개 메소드

Create the repository.
public __construct ( Puli\Repository\Api\ChangeStream\ChangeStream $changeStream = null )
$changeStream Puli\Repository\Api\ChangeStream\ChangeStream If provided, the repository will log resources changes in this change stream.

clearVersions() 보호된 메소드

Clears the change stream.
protected clearVersions ( )

getVersions() 공개 메소드

public getVersions ( $path )

removeVersions() 보호된 메소드

Removes all versions of a resource from the change stream.
protected removeVersions ( string $path )
$path string The Puli path.

storeVersion() 보호된 메소드

Stores a version of a resource in the change stream.
protected storeVersion ( Puli\Repository\Api\Resource\PuliResource $resource )
$resource Puli\Repository\Api\Resource\PuliResource The resource version.