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)
Get the currentInstallationTimestamp and returns it.
_getTheCurrentInstallationVersionTimestamp( $versionInfoItems) : integer
Arguments
Response
integer
$currentInstallationVersionTimestamp
Get the originInstallationTimestamp and returns it.
_getTheOriginInstallationVersionTimestamp( $versionInfoItems) : integer
Arguments
Response
integer
$originInstallationVersionTimestamp
Returns true if the version info item has an special name.
_isSpecialName(\VersionInfoItemInterface $VersionInfoItem) : boolean
Arguments
Response
boolean
Returns true if the version info item has an special name with the right Vendor.
_isSpecialNameWithRightVendor(\VersionInfoItemInterface $VersionInfoItem) : boolean
Arguments
Response
boolean
Marks all VersionInfoFileItems as failed installation.
_markAllVersionFileItemsWithFailed( $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)
Marks all Versions with 'vrrl', 'Mobile Template' and 'MobileCandy' in Name as target versions.
_marksSpecialVersionNamesAsTargetVersions(array $versionInfoItems)
Marks with the currentInstallationVersionTimestamp the currentInstallationVersion
_markTheNewestTargetVersion( $versionInfoItems, mixed $currentInstallationVersionTimestamp)
Arguments
$currentInstallationVersionTimestamp
mixed
Marks with the originInstallationTimestamp the originInstallationVersion
_markTheOldestTargetVersion( $versionInfoItems, mixed $originInstallationVersionTimestamp)
Arguments
$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>
Properties
fileReader
fileReader : \VersionInfoFileReader
databaseReader
databaseReader : \VersionInfoDatabaseReader