Class VersionInfoRepository

Class VersionInfoRepository

This class provides methods for retrieving data of a particular category and a collection of specific categories.

Methods summary

public __construct( VersionInfoDatabaseReader $databaseReader, VersionInfoFileReader $fileReader )

VersionInfoRepository constructor.

public getAllVersionInfoItems( void ) : VersionInfoItemInterface[]

Returns an array of VersionInfoItemInterface objects.

protected _sortVersionInfoItemByTime( VersionInfoItemInterface $a, VersionInfoItemInterface $b ) : integer

Sorted all Version Info Items by time, newest first

protected _getTheOriginInstallationVersionTimestamp( array $versionInfoItems ) : integer

Get the originInstallationTimestamp and returns it.

protected _markTheOldestTargetVersion( array $versionInfoItems, mixed $originInstallationVersionTimestamp )

Marks with the originInstallationTimestamp the originInstallationVersion

protected _getTheCurrentInstallationVersionTimestamp( array $versionInfoItems ) : integer

Get the currentInstallationTimestamp and returns it.

protected _markTheNewestTargetVersion( array $versionInfoItems, mixed $currentInstallationVersionTimestamp )

Marks with the currentInstallationVersionTimestamp the currentInstallationVersion

protected _markAllVersionFileItemsWithFailed( array $versionInfoFileItems )

Marks all VersionInfoFileItems as failed installation.

protected _markOldVersionsCaseAsTargetVersions( $versionInfoFileItems )

If the Item is an shop update, marks all VersionInfoFileItem under version 2.1 as Target Version .

protected _markInstalledTargetVersions( array $versionInfoFileItems, array $versionInfoDatabaseItems )

Marks all VersionInfoDatabaseItems and VersionInfoFileItems form Gambio, with the same version as InstalledTargetVersion.

protected _marksSpecialVersionNamesAsTargetVersions( array $versionInfoItems )

Marks all Versions with 'vrrl', 'Mobile Template' and 'MobileCandy' in Name as target versions.

protected _isSpecialName( VersionInfoItemInterface $VersionInfoItem ) : boolean

Returns true if the version info item has an special name.

protected _isSpecialNameWithRightVendor( VersionInfoItemInterface $VersionInfoItem ) : boolean

Returns true if the version info item has an special name with the right Vendor.

Properties summary