Back to Joomla project (class list)

Class UpdateAdapter - list of methods

UpdateAdapter class.

Extends

Direct known subclasses

Package: Joomla\CMS\Updater
Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Updater/UpdateAdapter.php
Project: Joomla

Method Summary

protected string
()

Gets the reference to the current direct parent
Returns
  • string
Since
  • 1.7.0
Show source code of this method: _getStackLocation Source Code

protected object
()

Gets the reference to the last tag
Returns
  • object
Since
  • 1.7.0
Show source code of this method: _getLastTag Source Code

public array
(mixed $options)

Finds an update
Parameters
  • array $options Options to use: update_site_id: the unique ID of the update site to look at
Returns
  • array Update_sites and updates discovered
Since
  • 1.7.0
Show source code of this method: findUpdate Source Code

protected void
(mixed $updateSiteId, mixed $enabled = true)

Toggles the enabled status of an update site. Update sites are disabled before getting the update information from their URL and enabled afterwards. If the URL fetch fails with a PHP fatal error (e.g. timeout) the faulty update site will remain disabled the next time we attempt to load the update information.
Parameters
  • int $updateSiteId The numeric ID of the update site to enable/disable
  • bool $enabled Enable the site when true, disable it when false
Returns
  • void
Show source code of this method: toggleUpdateSite Source Code

protected string
(mixed $updateSiteId)

Get the name of an update site. This is used in logging.
Parameters
  • int $updateSiteId The numeric ID of the update site
Returns
  • string The name of the update site or an empty string if it's not found
Show source code of this method: getUpdateSiteName Source Code

protected \Joomla\CMS\Http\Response|bool
(mixed $options = array())

Try to get the raw HTTP response from the update site, hopefully containing the update XML.
Parameters
  • array $options The update options, see findUpdate() in children classes
Returns
  • \Joomla\CMS\Http\Response|bool False if we can't connect to the site, HTTP Response object otherwise
-
  • \Exception
Show source code of this method: getUpdateSiteResponse Source Code

Properties Summary

protected resource
$xmlParser
Resource handle for the XML Parser
Since
  • 3.0.0
protected array
$stack
Element call stack
Since
  • 3.0.0
protected int
$updateSiteId
ID of update site
Since
  • 3.0.0
protected array
$updatecols
Columns in the extensions table to be updated
Since
  • 3.0.0
protected bool
$appendExtension
Should we try appending a .xml extension to the update site's URL?
protected string
$updateSiteName
The name of the update site (used in logging)
protected string
$_url
The update site URL from which we will get the update information
protected int
$minimum_stability
The minimum stability required for updates to be taken into account. The possible values are: 0 dev Development snapshots, nightly builds, pre-release versions and so on 1 alpha Alpha versions (work in progress, things are likely to be broken) 2 beta Beta versions (major functionality in place, show-stopper bugs are likely to be present) 3 rc Release Candidate versions (almost stable, minor bugs might be present) 4 stable Stable versions (production quality code)
Since
  • 14.1
-
  • int

Tags Summary

Since
1.7.0