PHP Класс Jackalope\Version\VersionHistory

Note: As this extends NodeInterface, foreach still iterates over the children and not over versions. If you want to use a foreach, you can use getAllVersions() to retrieve an iterator over versions.
Наследование: extends Jackalope\Node
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$linearVersions array Cache of the linear versions to only build the list once
$versionLabels array Cache of the version labels.
$versions array Cache of all versions to only build the list once

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

Метод Описание
addVersionLabel ( $versionName, $label, $moveLabel ) {@inheritDoc}
getAllFrozenNodes ( ) {@inheritDoc}
getAllLinearFrozenNodes ( ) {@inheritDoc}
getAllLinearVersions ( ) {@inheritDoc}
getAllVersions ( ) {@inheritDoc}
getRootVersion ( ) {@inheritDoc}
getVersion ( $versionName ) {@inheritDoc}
getVersionByLabel ( $label ) {@inheritDoc}
getVersionLabels ( $version = null ) {@inheritDoc}
getVersionableIdentifier ( ) {@inheritDoc}
hasVersionLabel ( $label, $version = null ) {@inheritDoc}
notifyHistoryChanged ( ) Tell the version history that it needs to reload, i.e. after a checkin operation
removeVersion ( $versionName ) {@inheritDoc}
removeVersionLabel ( $label ) {@inheritDoc}

Защищенные методы

Метод Описание
getEventualSuccessors ( PHPCR\Version\VersionInterface $node ) : array Walk along the successors line to get all versions of this node

Приватные методы

Метод Описание
initVersionLabels ( ) This method fetches all version labels, if the cache array is not initialized yet.

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

addVersionLabel() публичный Метод

{@inheritDoc}
public addVersionLabel ( $versionName, $label, $moveLabel )

getAllFrozenNodes() публичный Метод

{@inheritDoc}
public getAllFrozenNodes ( )

getAllLinearFrozenNodes() публичный Метод

{@inheritDoc}

getAllLinearVersions() публичный Метод

{@inheritDoc}

getAllVersions() публичный Метод

{@inheritDoc}
public getAllVersions ( )

getEventualSuccessors() защищенный Метод

According to spec, 3.13.1.4, these are called eventual successors
protected getEventualSuccessors ( PHPCR\Version\VersionInterface $node ) : array
$node PHPCR\Version\VersionInterface the node to get successors from
Результат array list of VersionInterface

getRootVersion() публичный Метод

{@inheritDoc}
public getRootVersion ( )

getVersion() публичный Метод

{@inheritDoc}
public getVersion ( $versionName )

getVersionByLabel() публичный Метод

{@inheritDoc}
public getVersionByLabel ( $label )

getVersionLabels() публичный Метод

{@inheritDoc}
public getVersionLabels ( $version = null )

getVersionableIdentifier() публичный Метод

{@inheritDoc}

hasVersionLabel() публичный Метод

{@inheritDoc}
public hasVersionLabel ( $label, $version = null )

notifyHistoryChanged() публичный Метод

Tell the version history that it needs to reload, i.e. after a checkin operation

removeVersion() публичный Метод

{@inheritDoc}
public removeVersion ( $versionName )

removeVersionLabel() публичный Метод

{@inheritDoc}
public removeVersionLabel ( $label )

Описание свойств

$linearVersions защищенное свойство

Cache of the linear versions to only build the list once
protected array $linearVersions
Результат array

$versionLabels защищенное свойство

Cache of the version labels.
protected array $versionLabels
Результат array

$versions защищенное свойство

Cache of all versions to only build the list once
protected array $versions
Результат array