PHP Класс Piwik\UpdateCheck\ReleaseChannel

This is not a public API and it may change without any announcement.
Показать файл Открыть проект

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

Метод Описание
doesPreferStable ( ) : boolean Whether only stable versions are wanted or also beta versions.
getDescription ( ) : string Get the description for this release channel. Will be shown directly next to the name of the release in the Admin UI. For example 'Recommended' or 'Long Term Support version'.
getDownloadUrlWithoutScheme ( string $version ) : string Get the URL to download a specific Piwik archive for the given version number. The returned URL should not include a URI scheme, meaning it should start with '://.
getId ( ) : string Get the ID for this release channel. This string will be eg saved in the config to identify the chosen release channel
getName ( ) : string Get a human readable name for this release channel, will be visible in the UI. Should be already translated.
getOrder ( ) : integer Get the order for this release channel. The lower the number the more important this release channel is. The release channel having the lowest order will be shown first and will be used as default release channel in case no valid release channel is defined.
getUrlToCheckForLatestAvailableVersion ( ) : string Get the latest available version number for this release channel. Eg '2.15.0-b4' or '2.15.0'. Should be a semantic version number in format MAJOR.MINOR.PATCH (http://semver.org/). Returning an empty string in case one cannot connect to the remote server can be acceptable.

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

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

Whether only stable versions are wanted or also beta versions.
public doesPreferStable ( ) : boolean
Результат boolean

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

Get the description for this release channel. Will be shown directly next to the name of the release in the Admin UI. For example 'Recommended' or 'Long Term Support version'.
public getDescription ( ) : string
Результат string

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

..'.
abstract public getDownloadUrlWithoutScheme ( string $version ) : string
$version string
Результат string

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

Get the ID for this release channel. This string will be eg saved in the config to identify the chosen release channel
abstract public getId ( ) : string
Результат string

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

Get a human readable name for this release channel, will be visible in the UI. Should be already translated.
abstract public getName ( ) : string
Результат string

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

Get the order for this release channel. The lower the number the more important this release channel is. The release channel having the lowest order will be shown first and will be used as default release channel in case no valid release channel is defined.
public getOrder ( ) : integer
Результат integer

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

Get the latest available version number for this release channel. Eg '2.15.0-b4' or '2.15.0'. Should be a semantic version number in format MAJOR.MINOR.PATCH (http://semver.org/). Returning an empty string in case one cannot connect to the remote server can be acceptable.
abstract public getUrlToCheckForLatestAvailableVersion ( ) : string
Результат string