PHP Class PMA\libraries\VersionInformation

Afficher le fichier Open project: phpmyadmin/phpmyadmin Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
getMySQLVersion ( ) : string Returns the MySQL version
getPHPVersion ( ) : string Returns the PHP version

Method Details

evaluateVersionCondition() public méthode

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
Résultat boolean whether the condition is met

getLatestCompatibleVersion() public méthode

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
Résultat array containing the version and date of latest compatible version

getLatestVersion() public méthode

Returns information with latest version from phpmyadmin.net
public getLatestVersion ( ) : object
Résultat object JSON decoded object with the data

getMySQLVersion() protected méthode

Returns the MySQL version
protected getMySQLVersion ( ) : string
Résultat string MySQL version

getPHPVersion() protected méthode

Returns the PHP version
protected getPHPVersion ( ) : string
Résultat string PHP version

versionToInt() public méthode

Calculates numerical equivalent of phpMyAdmin version string
public versionToInt ( string $version ) : mixed
$version string version
Résultat mixed false on failure, integer on success