PHP 클래스 Puli\Repository\Api\ChangeStream\VersionList

부터: 1.0
저자: Titouan Galopin ([email protected])
저자: Bernhard Schussek ([email protected])
상속: implements IteratorAggregat\IteratorAggregate, implements ArrayAcces\ArrayAccess, implements Countabl\Countable
파일 보기 프로젝트 열기: puli/repository

공개 메소드들

메소드 설명
__construct ( string $path, array $versions ) Creates a new version list.
contains ( integer $version ) : boolean Returns whether a specific version exists.
count ( )
get ( integer $version ) : Puli\Repository\Api\Resource\PuliResource Returns a specific version of the resource.
getCurrent ( ) : Puli\Repository\Api\Resource\PuliResource Returns the current version of the resource.
getCurrentVersion ( ) : integer Returns the current version number.
getFirst ( ) : Puli\Repository\Api\Resource\PuliResource Returns the first version of the resource.
getFirstVersion ( ) : integer Returns the first version number.
getIterator ( )
getPath ( ) : string Returns the path of the versioned resources.
getVersions ( ) : int[] Returns all version numbers.
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
toArray ( ) : Puli\Repository\Api\Resource\PuliResource[] Returns the list as array indexed by version numbers.

메소드 상세

__construct() 공개 메소드

Creates a new version list.
public __construct ( string $path, array $versions )
$path string The Puli path.
$versions array The versions of the resource, starting with the first.

contains() 공개 메소드

Returns whether a specific version exists.
public contains ( integer $version ) : boolean
$version integer The version number starting at 0.
리턴 boolean Whether the version exists.

count() 공개 메소드

public count ( )

get() 공개 메소드

Returns a specific version of the resource.
public get ( integer $version ) : Puli\Repository\Api\Resource\PuliResource
$version integer The version number starting at 0.
리턴 Puli\Repository\Api\Resource\PuliResource The resource.

getCurrent() 공개 메소드

Returns the current version of the resource.
public getCurrent ( ) : Puli\Repository\Api\Resource\PuliResource
리턴 Puli\Repository\Api\Resource\PuliResource The current version.

getCurrentVersion() 공개 메소드

Returns the current version number.
public getCurrentVersion ( ) : integer
리턴 integer The current version number.

getFirst() 공개 메소드

Returns the first version of the resource.
public getFirst ( ) : Puli\Repository\Api\Resource\PuliResource
리턴 Puli\Repository\Api\Resource\PuliResource The first version.

getFirstVersion() 공개 메소드

Returns the first version number.
public getFirstVersion ( ) : integer
리턴 integer The first version number.

getIterator() 공개 메소드

public getIterator ( )

getPath() 공개 메소드

Returns the path of the versioned resources.
public getPath ( ) : string
리턴 string The Puli path.

getVersions() 공개 메소드

Returns all version numbers.
public getVersions ( ) : int[]
리턴 int[] The version numbers.

offsetExists() 공개 메소드

public offsetExists ( $offset )

offsetGet() 공개 메소드

public offsetGet ( $offset )

offsetSet() 공개 메소드

public offsetSet ( $offset, $value )

offsetUnset() 공개 메소드

public offsetUnset ( $offset )

toArray() 공개 메소드

Returns the list as array indexed by version numbers.
public toArray ( ) : Puli\Repository\Api\Resource\PuliResource[]
리턴 Puli\Repository\Api\Resource\PuliResource[] The resource versions indexed by their version numbers.