PHP Класс PMA\libraries\VersionInformation

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
evaluateVersionCondition ( string $type, string $condition ) : boolean Checks whether PHP or MySQL version meets supplied version condition
getLatestCompatibleVersion ( array $releases ) : array Returns the version and date of the latest phpMyAdmin version compatible with the available PHP and MySQL versions
getLatestVersion ( ) : object Returns information with latest version from phpmyadmin.net
versionToInt ( string $version ) : mixed Calculates numerical equivalent of phpMyAdmin version string

Защищенные методы

Метод Описание
getMySQLVersion ( ) : string Returns the MySQL version
getPHPVersion ( ) : string Returns the PHP version

Описание методов

evaluateVersionCondition() публичный Метод

Checks whether PHP or MySQL version meets supplied version condition
public evaluateVersionCondition ( string $type, string $condition ) : boolean
$type string PHP or MySQL
$condition string version condition
Результат boolean whether the condition is met

getLatestCompatibleVersion() публичный Метод

Returns the version and date of the latest phpMyAdmin version compatible with the available PHP and MySQL versions
public getLatestCompatibleVersion ( array $releases ) : array
$releases array array of information related to each version
Результат array containing the version and date of latest compatible version

getLatestVersion() публичный Метод

Returns information with latest version from phpmyadmin.net
public getLatestVersion ( ) : object
Результат object JSON decoded object with the data

getMySQLVersion() защищенный Метод

Returns the MySQL version
protected getMySQLVersion ( ) : string
Результат string MySQL version

getPHPVersion() защищенный Метод

Returns the PHP version
protected getPHPVersion ( ) : string
Результат string PHP version

versionToInt() публичный Метод

Calculates numerical equivalent of phpMyAdmin version string
public versionToInt ( string $version ) : mixed
$version string version
Результат mixed false on failure, integer on success