Class FOFUtilsUpdateJoomla
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.
- FOFUtilsUpdateExtension
- FOFUtilsUpdateJoomla
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Located at fof/utils/update/joomla.php
Methods summary
public
array
|
#
getUpdatesFromExtension( string $url )
Reads an "extension" XML update source and returns all listed update entries. |
public
string
|
#
getUpdateSourceFromCollection( string $url, string $jVersion = null )
Reads a "collection" XML update source and picks the correct source URL for the extension update source. |
public
array
|
#
getVersionProperties( string $jVersion, string $currentVersion = null )
Determines the properties of a version: STS/LTS, normal or testing |
public
array
|
#
filterApplicableUpdates( array $updates, string $jVersion = null )
Filters a list of updates, making sure they apply to the specifed CMS release. |
public
string
|
#
sanitiseVersion( string $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. |
public
array
|
#
getUpdates( array $sources = array(), string $jVersion = null )
Reloads the list of all updates available for the specified Joomla! version from the network. |
Magic methods summary
Properties summary
protected static
string
|
$lts_url |
#
The source for LTS updates |
protected static
string
|
$sts_url |
#
The source for STS updates |
protected static
string
|
$test_url |
#
The source for test release updates |