UpdateAdapter class.
- Depuis
- 1.7.0
◆ _getLastTag()
Gets the reference to the last tag
- Renvoie
- object
- Depuis
- 1.7.0
◆ _getStackLocation()
Gets the reference to the current direct parent
- Renvoie
- object
- Depuis
- 1.7.0
◆ findUpdate()
Finds an update
- Paramètres
-
array | $options | Options 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 | $updateSiteId | The 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 | $options | The 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 | $updateSiteId | The numeric ID of the update site to enable/disable |
bool | $enabled | Enable the site when true, disable it when false |
- Renvoie
- void
Références $db, $enabled, $query, et parent.
◆ $_url
◆ $appendExtension
◆ $minimum_stability
◆ $stack
◆ $updatecols
$updatecols = array('NAME', 'ELEMENT', 'TYPE', 'FOLDER', 'CLIENT', 'VERSION', 'DESCRIPTION', 'INFOURL', 'EXTRA_QUERY') |
|
protected |
◆ $updateSiteId
◆ $updateSiteName
◆ $xmlParser
La documentation de cette classe a été générée à partir du fichier suivant :