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 UpdateAdapter
+ Graphe d'héritage de UpdateAdapter:

Fonctions membres publiques

 findUpdate ($options)
 

Fonctions membres protégées

 _getStackLocation ()
 
 _getLastTag ()
 
 toggleUpdateSite ($updateSiteId, $enabled=true)
 
 getUpdateSiteName ($updateSiteId)
 
 getUpdateSiteResponse ($options=array())
 

Attributs protégés

 $xmlParser
 
 $stack = array('base')
 
 $updateSiteId = 0
 
 $updatecols = array('NAME', 'ELEMENT', 'TYPE', 'FOLDER', 'CLIENT', 'VERSION', 'DESCRIPTION', 'INFOURL', 'EXTRA_QUERY')
 
 $appendExtension = false
 
 $updateSiteName = ''
 
 $_url = ''
 
 $minimum_stability = Updater::STABILITY_STABLE
 

Description détaillée

UpdateAdapter class.

Depuis
1.7.0

Documentation des fonctions membres

◆ _getLastTag()

_getLastTag ( )
protected

Gets the reference to the last tag

Renvoie
object
Depuis
1.7.0

◆ _getStackLocation()

_getStackLocation ( )
protected

Gets the reference to the current direct parent

Renvoie
object
Depuis
1.7.0

◆ findUpdate()

findUpdate (   $options)
abstract

Finds an update

Paramètres
array$optionsOptions to use: update_site_id: the unique ID of the update site to look at
Renvoie
array Update_sites and updates discovered
Depuis
1.7.0

◆ getUpdateSiteName()

getUpdateSiteName (   $updateSiteId)
protected

Get the name of an update site. This is used in logging.

Paramètres
int$updateSiteIdThe numeric ID of the update site
Renvoie
string The name of the update site or an empty string if it's not found

Références $db, $name, $query, et parent.

◆ getUpdateSiteResponse()

getUpdateSiteResponse (   $options = array())
protected

Try to get the raw HTTP response from the update site, hopefully containing the update XML.

Paramètres
array$optionsThe update options, see findUpdate() in children classes
Renvoie
boolean| False if we can't connect to the site, JHttpResponse otherwise
Exceptions

Références $app, $options, $startTime, $url, $version, Log\add(), Factory\getApplication(), HttpFactory\getHttp(), Log\INFO, null, Registry\set(), et Log\WARNING.

◆ toggleUpdateSite()

toggleUpdateSite (   $updateSiteId,
  $enabled = true 
)
protected

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.

Paramètres
int$updateSiteIdThe numeric ID of the update site to enable/disable
bool$enabledEnable the site when true, disable it when false
Renvoie
void

Références $db, $enabled, $query, et parent.

Documentation des champs

◆ $_url

$_url = ''
protected

◆ $appendExtension

$appendExtension = false
protected

◆ $minimum_stability

$minimum_stability = Updater::STABILITY_STABLE
protected

◆ $stack

$stack = array('base')
protected

◆ $updatecols

$updatecols = array('NAME', 'ELEMENT', 'TYPE', 'FOLDER', 'CLIENT', 'VERSION', 'DESCRIPTION', 'INFOURL', 'EXTRA_QUERY')
protected

◆ $updateSiteId

$updateSiteId = 0
protected

◆ $updateSiteName

$updateSiteName = ''
protected

◆ $xmlParser

$xmlParser
protected

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