VersionInfoRepository

Class VersionInfoRepository

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

category

Core

package

VersionInfo

Methods

VersionInfoRepository constructor.

__construct(\VersionInfoDatabaseReader $databaseReader, \VersionInfoFileReader $fileReader) 

Arguments

$databaseReader

\VersionInfoDatabaseReader

Get the currentInstallationTimestamp and returns it.

_getTheCurrentInstallationVersionTimestamp( $versionInfoItems) : integer

Arguments

$versionInfoItems

[]

Response

integer

$currentInstallationVersionTimestamp

Get the originInstallationTimestamp and returns it.

_getTheOriginInstallationVersionTimestamp( $versionInfoItems) : integer

Arguments

$versionInfoItems

[]

Response

integer

$originInstallationVersionTimestamp

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

_isSpecialName(\VersionInfoItemInterface $VersionInfoItem) : boolean

Arguments

$VersionInfoItem

\VersionInfoItemInterface

Response

boolean

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

_isSpecialNameWithRightVendor(\VersionInfoItemInterface $VersionInfoItem) : boolean

Arguments

$VersionInfoItem

\VersionInfoItemInterface

Response

boolean

Marks all VersionInfoFileItems as failed installation.

_markAllVersionFileItemsWithFailed( $versionInfoFileItems) 

Arguments

$versionInfoFileItems

[]

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

_markInstalledTargetVersions(array $versionInfoFileItems, array $versionInfoDatabaseItems) 

Arguments

$versionInfoFileItems

array

[]

$versionInfoDatabaseItems

array

[]

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

_markOldVersionsCaseAsTargetVersions( $versionInfoFileItems) 

Arguments

$versionInfoFileItems

[]

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

_marksSpecialVersionNamesAsTargetVersions(array $versionInfoItems) 

Arguments

$versionInfoItems

array

Marks with the currentInstallationVersionTimestamp the currentInstallationVersion

_markTheNewestTargetVersion( $versionInfoItems, mixed $currentInstallationVersionTimestamp) 

Arguments

$versionInfoItems

[]

$currentInstallationVersionTimestamp

mixed

Marks with the originInstallationTimestamp the originInstallationVersion

_markTheOldestTargetVersion( $versionInfoItems, mixed $originInstallationVersionTimestamp) 

Arguments

$versionInfoItems

[]

$originInstallationVersionTimestamp

mixed

Sorted all Version Info Items by time, newest first

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

Arguments

Response

integer

Returns an array of VersionInfoItemInterface objects.

getAllVersionInfoItems() : array<mixed,\VersionInfoItemInterface>

Response

array<mixed,\VersionInfoItemInterface>

Properties

fileReader

fileReader : \VersionInfoFileReader

databaseReader

databaseReader : \VersionInfoDatabaseReader