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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
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, $minimumStability=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
 
 $compatibleVersions = array()
 

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
1.7.0

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
1.7.0

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
1.7.0

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
1.7.0

◆ _getStackLocation()

_getStackLocation ( )
protected

Gets the reference to the current direct parent

Renvoie
object
Depuis
1.7.0

◆ _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
1.7.0

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

◆ loadFromXml()

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

Loads an XML file from a URL.

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

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

◆ $compatibleVersions

$compatibleVersions = array()
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 :