class VersionInformation

Responsible for retrieving version information and notifiying about latest version

Methods

stdClass|null
getLatestVersion()

Returns information with latest version from phpmyadmin.net

mixed
versionToInt(string $version)

Calculates numerical equivalent of phpMyAdmin version string

array|null
getLatestCompatibleVersion(array $releases)

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

boolean
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

at line 27
stdClass|null getLatestVersion()

Returns information with latest version from phpmyadmin.net

Return Value

stdClass|null JSON decoded object with the data

at line 75
mixed versionToInt(string $version)

Calculates numerical equivalent of phpMyAdmin version string

Parameters

string $version version

Return Value

mixed false on failure, integer on success

at line 141
array|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

array|null containing the version and date of latest compatible version

at line 182
boolean 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

boolean whether the condition is met

at line 221
protected string getPHPVersion()

Returns the PHP version

Return Value

string PHP version

at line 231
protected string|null getMySQLVersion()

Returns the MySQL version if connected to a database

Return Value

string|null MySQL version