PHP Класс Gc\Version

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

Защищенные свойства (Protected)

Свойство Тип Описание
$latestVersion string The latest stable version GotCms available

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

Метод Описание
compareVersion ( string $version ) : integer Compare the specified GotCms version string $version with the current Gc\Version::VERSION of GotCms.
getLatest ( ) : string Fetches the version of the latest stable release.
isLatest ( ) : boolean Returns true if the running version of GotCms is the latest (or newer??) than the latest tag on GitHub, which is returned by static::getLatest().

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

compareVersion() публичный статический Метод

Compare the specified GotCms version string $version with the current Gc\Version::VERSION of GotCms.
public static compareVersion ( string $version ) : integer
$version string A version string (e.g. "0.7.1").
Результат integer -1 if the $version is older, 0 if they are the same, and +1 if $version is newer.

getLatest() публичный статический Метод

Fetches the version of the latest stable release.
public static getLatest ( ) : string
Результат string

isLatest() публичный статический Метод

Returns true if the running version of GotCms is the latest (or newer??) than the latest tag on GitHub, which is returned by static::getLatest().
public static isLatest ( ) : boolean
Результат boolean

Описание свойств

$latestVersion защищенное статическое свойство

The latest stable version GotCms available
protected static string $latestVersion
Результат string