class VersionInformation (View source)

Responsible for retrieving version information and notifying about latest version

Methods

array|null
getLatestVersions()

Returns information with latest version from phpmyadmin.net

int
versionToInt(string $version)

Calculates numerical equivalent of phpMyAdmin version string

Release|null
getLatestCompatibleVersion(array $releases)

Returns the version and date of the latest phpMyAdmin version compatible with the available PHP and MySQL versions

bool
evaluateVersionCondition(string $type, string $condition)

Checks whether PHP or MySQL version meets supplied version condition

string
getPHPVersion()

Returns the PHP version

string|null
getMySQLVersion()

Returns the MySQL version if connected to a database

Details

array|null getLatestVersions()

Returns information with latest version from phpmyadmin.net

Return Value

array|null

JSON decoded object with the data

int versionToInt(string $version)

Calculates numerical equivalent of phpMyAdmin version string

Parameters

string $version version

Return Value

int

Release|null getLatestCompatibleVersion(array $releases)

Returns the version and date of the latest phpMyAdmin version compatible with the available PHP and MySQL versions

Parameters

array $releases

array of information related to each version

Return Value

Release|null

containing the version and date of latest compatible version

bool evaluateVersionCondition(string $type, string $condition)

Checks whether PHP or MySQL version meets supplied version condition

Parameters

string $type

PHP or MySQL

string $condition

version condition

Return Value

bool

whether the condition is met

protected string getPHPVersion()

Returns the PHP version

Return Value

string

PHP version

protected string|null getMySQLVersion()

Returns the MySQL version if connected to a database

Return Value

string|null

MySQL version