PHP Класс FOF30\Update\Joomla

Наследование: extends Extension
Показать файл Открыть проект

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

Свойство Тип Описание
$lts_url string The source for LTS updates
$sts_url string The source for STS updates
$test_url string The source for test release updates

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

Метод Описание
filterApplicableUpdates ( array $updates, string $jVersion = null ) : array Filters a list of updates, making sure they apply to the specifed CMS release.
getUpdateSourceFromCollection ( string $url, string $jVersion = null ) : string Reads a "collection" XML update source and picks the correct source URL for the extension update source.
getUpdates ( array $sources = [], string $jVersion = null ) : array Reloads the list of all updates available for the specified Joomla! version from the network.
getVersionProperties ( string $jVersion, string $currentVersion = null ) : array Determines the properties of a version: STS/LTS, normal or testing
sanitiseVersion ( string $version ) : string Joomla! has a lousy track record in naming its alpha, beta and release candidate releases. The convention used seems to be "what the hell the current package maintainer thinks looks better". This method tries to figure out what was in the mind of the maintainer and translate the funky version number to an actual PHP-format version string.

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

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

Filters a list of updates, making sure they apply to the specifed CMS release.
public filterApplicableUpdates ( array $updates, string $jVersion = null ) : array
$updates array A list of update records returned by the getUpdatesFromExtension method
$jVersion string The current Joomla! version number
Результат array A filtered list of updates. Each update record also includes version relevance information.

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

Reads a "collection" XML update source and picks the correct source URL for the extension update source.
public getUpdateSourceFromCollection ( string $url, string $jVersion = null ) : string
$url string The collection XML update source URL to read from
$jVersion string Joomla! version to fetch updates for, or null to use JVERSION
Результат string The URL of the extension update source, or empty if no updates are provided / fetching failed

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

Reloads the list of all updates available for the specified Joomla! version from the network.
public getUpdates ( array $sources = [], string $jVersion = null ) : array
$sources array The enabled sources to look into
$jVersion string The Joomla! version we are checking updates for
Результат array A list of updates for the installed, current, lts and sts versions

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

Determines the properties of a version: STS/LTS, normal or testing
public getVersionProperties ( string $jVersion, string $currentVersion = null ) : array
$jVersion string The version number to check
$currentVersion string The current Joomla! version number
Результат array The properties analysis

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

Joomla! has a lousy track record in naming its alpha, beta and release candidate releases. The convention used seems to be "what the hell the current package maintainer thinks looks better". This method tries to figure out what was in the mind of the maintainer and translate the funky version number to an actual PHP-format version string.
public sanitiseVersion ( string $version ) : string
$version string The whatever-format version number
Результат string A standard formatted version number

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

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

The source for LTS updates
protected static string $lts_url
Результат string

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

The source for STS updates
protected static string $sts_url
Результат string

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

The source for test release updates
protected static string $test_url
Результат string