PHP Class 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.
Inheritance: extends Jackalope\Node
Afficher le fichier Open project: jackalope/jackalope

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
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}

Méthodes protégées

Méthode Description
getEventualSuccessors ( PHPCR\Version\VersionInterface $node ) : array Walk along the successors line to get all versions of this node

Private Methods

Méthode Description
initVersionLabels ( ) This method fetches all version labels, if the cache array is not initialized yet.

Method Details

addVersionLabel() public méthode

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

getAllFrozenNodes() public méthode

{@inheritDoc}
public getAllFrozenNodes ( )

getAllLinearFrozenNodes() public méthode

{@inheritDoc}

getAllLinearVersions() public méthode

{@inheritDoc}

getAllVersions() public méthode

{@inheritDoc}
public getAllVersions ( )

getEventualSuccessors() protected méthode

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
Résultat array list of VersionInterface

getRootVersion() public méthode

{@inheritDoc}
public getRootVersion ( )

getVersion() public méthode

{@inheritDoc}
public getVersion ( $versionName )

getVersionByLabel() public méthode

{@inheritDoc}
public getVersionByLabel ( $label )

getVersionLabels() public méthode

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

getVersionableIdentifier() public méthode

{@inheritDoc}

hasVersionLabel() public méthode

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

notifyHistoryChanged() public méthode

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

removeVersion() public méthode

{@inheritDoc}
public removeVersion ( $versionName )

removeVersionLabel() public méthode

{@inheritDoc}
public removeVersionLabel ( $label )

Property Details

$linearVersions protected_oe property

Cache of the linear versions to only build the list once
protected array $linearVersions
Résultat array

$versionLabels protected_oe property

Cache of the version labels.
protected array $versionLabels
Résultat array

$versions protected_oe property

Cache of all versions to only build the list once
protected array $versions
Résultat array