VersionInfoDatabaseReader

Extends \AbstractVersionInfoReader

Class VersionInfoDatabaseReader

category

System

package

VersionInfo

subpackage

Reader

Methods

VersionInfoDatabaseReader constructor.

__construct(\CI_DB_query_builder $db, \VersionInfoItemFactory $versionInfoItemFactory) 

Arguments

$db

\CI_DB_query_builder

$versionInfoItemFactory

\VersionInfoItemFactory

Checks for an beta version to set the changelog start version.

_checkForBetaVersions(string $changelogVersionURL) : string
inherited

Arguments

$changelogVersionURL

string

Response

string

$changelogStartByVersion

_createVersionInfoObject

_createVersionInfoObject(array $versionInfoData) : \VersionInfoDatabaseItem

Arguments

$versionInfoData

array

Response

\VersionInfoDatabaseItem

Determine the changelog base URl with special case to '/'.

_determineChangelogBaseURLSpecialCase(string $changelogVersionURL, string $versionInfoItemVendorString, string $versionInfoItemNameString, string $changelogBaseURL) : string
inherited

Arguments

$changelogVersionURL

string

$versionInfoItemVendorString

string

$versionInfoItemNameString

string

$changelogBaseURL

string

Response

string

$changelogBaseURL

Determine the changelog base URL with special cases.

_determineChangelogSpecialVersionsBaseURL(string $changelogVersionURL, string $changelogBaseURL) : string
inherited

Arguments

$changelogVersionURL

string

$changelogBaseURL

string

Response

string

$changelogBaseURL

Determine the changelog version URL with special cases.

_determineChangelogSpecialVersionsURL(string $changelogVersionURL) : string
inherited

Arguments

$changelogVersionURL

string

Response

string

$changelogVersionURL

Determines the changelog url of the version info items while considering known edge cases.

_determineChangelogURL(\NonEmptyStringType $versionInfoItemVersion, \NonEmptyStringType $versionInfoItemVendor, \NonEmptyStringType $versionInfoItemName) : string
inherited

Arguments

$versionInfoItemVersion

\NonEmptyStringType

$versionInfoItemVendor

\NonEmptyStringType

$versionInfoItemName

\NonEmptyStringType

Response

string

$changelogVersionURL

Determine the changelog version URL with special cases.

_determineChangelogVersionURLSpecialCases(string $changelogVersionURL, string $versionInfoItemVendorString, string $versionInfoItemNameString) : string
inherited

Arguments

$changelogVersionURL

string

$versionInfoItemVendorString

string

$versionInfoItemNameString

string

Response

string

$changelogVersionURL

Determines the name of the version info items while considering known edge cases.

_determineName(\NonEmptyStringType $versionInfoItemName) : string
inherited

Arguments

$versionInfoItemName

\NonEmptyStringType

Response

string

$versionInfoItemName

Returns true if on special case true is.

_isSpecialCase(string $versionInfoItemVendorString, string $versionInfoItemNameString, string $changelogVersionURL) : boolean
inherited

Arguments

$versionInfoItemVendorString

string

$versionInfoItemNameString

string

$changelogVersionURL

string

Response

boolean

Returns true if the Version is over 2.0.11.0 .

_isVersionOverMinVersion(array $versionCompare) : boolean
inherited

Arguments

$versionCompare

array

Response

boolean

Returns all VersionInfoDatabaseItems from database.

getAllVersionInfoItems() : \VersionInfoDatabaseItem

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

versionInfoItemFactory

versionInfoItemFactory : \VersionInfoItemFactory