Back to Joomla project (class list)

Class Update - list of methods

Update class. It is used by Updater::update() to install an update. Use Updater::findUpdates() to find updates for an extension.

Extends

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/Update.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 string
()

Get the last position in stack count
Returns
  • string
Since
  • 1.7.0
Show source code of this method: _getLastTag Source Code

public void
(mixed $parser, mixed $name, mixed $attrs = array())

XML Start Element callback
Parameters
  • object $parser Parser object
  • string $name Name of the tag found
  • array $attrs Attributes of the tag
Returns
  • void
Since
  • 1.7.0
-
  • This is public because it is called externally
Show source code of this method: _startElement Source Code

public void
(mixed $parser, mixed $name)

Callback for closing the element
Parameters
  • object $parser Parser object
  • string $name Name of element that was closed
Returns
  • void
Since
  • 1.7.0
-
  • This is public because it is called externally
Show source code of this method: _endElement Source Code

public void
(mixed $parser, mixed $data)

Character Parser Function
Parameters
  • object $parser Parser object.
  • object $data The data.
Returns
  • void
Since
  • 1.7.0
-
  • This is public because its called externally.
Show source code of this method: _characterData Source Code

public bool
(mixed $url, mixed $minimumStability = Updater::STABILITY_STABLE)

Loads an XML file from a URL.
Parameters
  • string $url The URL.
  • int $minimumStability The minimum stability required for updating the extension {@see \Joomla\CMS\Updater\Updater}
Returns
  • bool True on success
Since
  • 1.7.0
Show source code of this method: loadFromXml Source Code

protected int
(mixed $tag)

Converts a tag to numeric stability representation. If the tag doesn't represent a known stability level (one of dev, alpha, beta, rc, stable) it is ignored.
Parameters
  • string $tag The tag string, e.g. dev, alpha, beta, rc, stable
Returns
  • int
Since
  • 3.4
Show source code of this method: stabilityTagToInteger Source Code

Properties Summary

protected string
$name
Update manifest `` element
Since
  • 1.7.0
protected string
$description
Update manifest `` element
Since
  • 1.7.0
protected string
$element
Update manifest `` element
Since
  • 1.7.0
protected string
$type
Update manifest `` element
Since
  • 1.7.0
protected string
$version
Update manifest `` element
Since
  • 1.7.0
protected string
$infourl
Update manifest `` element
Since
  • 1.7.0
protected string
$client
Update manifest `` element
Since
  • 1.7.0
protected string
$group
Update manifest `` element
Since
  • 1.7.0
protected string
$downloads
Update manifest `` element
Since
  • 1.7.0
protected \Joomla\CMS\Updater\DownloadSource[]
$downloadSources
Update manifest `` elements
Since
  • 3.8.3
protected string
$tags
Update manifest `` element
Since
  • 1.7.0
protected string
$maintainer
Update manifest `` element
Since
  • 1.7.0
protected string
$maintainerurl
Update manifest `` element
Since
  • 1.7.0
protected string
$category
Update manifest `` element
Since
  • 1.7.0
protected string
$relationships
Update manifest `` element
Since
  • 1.7.0
protected string
$targetplatform
Update manifest `` element
Since
  • 1.7.0
protected string
$extra_query
Extra query for download URLs
Since
  • 3.2.0
protected resource
$xmlParser
Resource handle for the XML Parser
Since
  • 3.0.0
protected array
$stack
Element call stack
Since
  • 3.0.0
protected array
$stateStore
Unused state array
Since
  • 3.0.0
protected \stdClass
$currentUpdate
Object containing the current update data
Since
  • 3.0.0
protected \stdClass
$latest
Object containing the latest update data
Since
  • 3.0.0
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
protected array
$compatibleVersions
Array with compatible versions used by the pre-update check
Since
  • 3.10.2

Tags Summary

Since
1.7.0
OSZAR »