Joomla CMS  3.8.5 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.8.5 et du framework Joomla Platform intégré
Référence de la classe Update
+ Graphe d'héritage de Update:

Fonctions membres publiques

 _startElement ($parser, $name, $attrs=array())
 
 _endElement ($parser, $name)
 
 _characterData ($parser, $data)
 
 loadFromXml ($url, $minimum_stability=Updater::STABILITY_STABLE)
 

Fonctions membres protégées

 _getStackLocation ()
 
 _getLastTag ()
 
 stabilityTagToInteger ($tag)
 

Attributs protégés

 $name
 
 $description
 
 $element
 
 $type
 
 $version
 
 $infourl
 
 $client
 
 $group
 
 $downloads
 
 $downloadSources = array()
 
 $tags
 
 $maintainer
 
 $maintainerurl
 
 $category
 
 $relationships
 
 $targetplatform
 
 $extra_query
 
 $xmlParser
 
 $stack = array('base')
 
 $stateStore = array()
 
 $currentUpdate
 
 $latest
 
 $minimum_stability = Updater::STABILITY_STABLE
 

Description détaillée

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

Depuis
11.1

Documentation des fonctions membres

◆ _characterData()

_characterData (   $parser,
  $data 
)

Character Parser Function

Paramètres
object$parserParser object.
object$dataThe data.
Renvoie
void
Note
This is public because its called externally.
Depuis
11.1

Références $data.

◆ _endElement()

_endElement (   $parser,
  $name 
)

Callback for closing the element

Paramètres
object$parserParser object
string$nameName of element that was closed
Renvoie
void
Note
This is public because it is called externally
Depuis
11.1

Références $db, $key, $name, Log\add(), elseif, Factory\getDbo(), InputFilter\getInstance(), Version\PATCH_VERSION, Version\PRODUCT, et Log\WARNING.

◆ _getLastTag()

_getLastTag ( )
protected

Get the last position in stack count

Renvoie
string
Depuis
11.1

◆ _getStackLocation()

_getStackLocation ( )
protected

Gets the reference to the current direct parent

Renvoie
object
Depuis
11.1

◆ _startElement()

_startElement (   $parser,
  $name,
  $attrs = array() 
)

XML Start Element callback

Paramètres
object$parserParser object
string$nameName of the tag found
array$attrsAttributes of the tag
Renvoie
void
Note
This is public because it is called externally
Depuis
11.1

Références $data, $key, et $name.

◆ loadFromXml()

loadFromXml (   $url,
  $minimum_stability = Updater::STABILITY_STABLE 
)

Loads an XML file from a URL.

Paramètres
string$urlThe URL.
int$minimum_stabilityThe minimum stability required for updating the extension {
Voir également
Updater}
Renvoie
boolean True on success
Depuis
11.1

Références $url, $version, Log\add(), HttpFactory\getHttp(), null, Registry\set(), et Log\WARNING.

◆ stabilityTagToInteger()

stabilityTagToInteger (   $tag)
protected

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.

Paramètres
string$tagThe tag string, e.g. dev, alpha, beta, rc, stable
Renvoie
integer
Depuis
3.4

Références Updater\STABILITY_STABLE.

Documentation des champs

◆ $category

$category
protected

◆ $client

$client
protected

◆ $currentUpdate

$currentUpdate
protected

◆ $description

$description
protected

◆ $downloads

$downloads
protected

◆ $downloadSources

$downloadSources = array()
protected

◆ $element

$element
protected

◆ $extra_query

$extra_query
protected

◆ $group

$group
protected

◆ $infourl

$infourl
protected

◆ $latest

$latest
protected

◆ $maintainer

$maintainer
protected

◆ $maintainerurl

$maintainerurl
protected

◆ $minimum_stability

$minimum_stability = Updater::STABILITY_STABLE
protected

◆ $name

$name
protected

◆ $relationships

$relationships
protected

◆ $stack

$stack = array('base')
protected

◆ $stateStore

$stateStore = array()
protected

◆ $tags

$tags
protected

◆ $targetplatform

$targetplatform
protected

◆ $type

$type
protected

◆ $version

$version
protected

◆ $xmlParser

$xmlParser
protected

La documentation de cette classe a été générée à partir du fichier suivant :