Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
getUpdateSourceFromCollection ($url, $jVersion=null) | |
getVersionProperties ($jVersion, $currentVersion=null) | |
filterApplicableUpdates ($updates, $jVersion=null) | |
sanitiseVersion ($version) | |
getUpdates ($sources=array(), $jVersion=null) | |
Attributs protégés statiques | |
static | $lts_url = 'http://update.joomla.org/core/list.xml' |
static | $sts_url = 'http://update.joomla.org/core/sts/list_sts.xml' |
static | $test_url = 'http://update.joomla.org/core/test/list_test.xml' |
A helper class which provides update information for the Joomla! CMS itself. This is slightly different than the regular "extension" files as we need to know if a Joomla! version is STS, LTS, testing, current and so on.
filterApplicableUpdates | ( | $updates, | |
$jVersion = null |
|||
) |
Filters a list of updates, making sure they apply to the specified CMS release.
array | $updates | A list of update records returned by the getUpdatesFromExtension method |
string | $jVersion | The current Joomla! version number |
getUpdates | ( | $sources = array() , |
|
$jVersion = null |
|||
) |
Reloads the list of all updates available for the specified Joomla! version from the network.
array | $sources | The enabled sources to look into |
string | $jVersion | The Joomla! version we are checking updates for |
getUpdateSourceFromCollection | ( | $url, | |
$jVersion = null |
|||
) |
Reads a "collection" XML update source and picks the correct source URL for the extension update source.
string | $url | The collection XML update source URL to read from |
string | $jVersion | Joomla! version to fetch updates for, or null to use JVERSION |
Références $url.
getVersionProperties | ( | $jVersion, | |
$currentVersion = null |
|||
) |
Determines the properties of a version: STS/LTS, normal or testing
string | $jVersion | The version number to check |
string | $currentVersion | The current Joomla! version number |
Références elseif.
sanitiseVersion | ( | $version | ) |
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.
string | $version | The whatever-format version number |
|
staticprotected |
|
staticprotected |
|
staticprotected |