PHP 클래스 PMA\libraries\VersionInformation

파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

공개 메소드들

메소드 설명
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