|
| __construct ($basepath=__DIR__, $classprefix='\\Joomla\\CMS\\Updater\\Adapter', $adapterfolder='Adapter') |
|
| update ($id) |
|
Updater Class
- Depuis
- 1.7.0
◆ __construct()
__construct |
( |
|
$basepath = __DIR__ , |
|
|
|
$classprefix = '\\Joomla\\CMS\\Updater\\Adapter' , |
|
|
|
$adapterfolder = 'Adapter' |
|
) |
| |
Constructor
- Paramètres
-
string | $basepath | Base Path of the adapters |
string | $classprefix | Class prefix of adapters |
string | $adapterfolder | Name of folder to append to base path |
- Depuis
- 3.1
◆ getInstance()
Returns a reference to the global Installer object, only creating it if it doesn't already exist.
- Renvoie
- Updater An installer object
- Depuis
- 1.7.0
◆ getSitesWithUpdates()
getSitesWithUpdates |
( |
|
$timestamp = 0 | ) |
|
|
private |
Returns the IDs of the update sites with cached updates
- Paramètres
-
int | $timestamp | Optional. If set, only update sites checked before $timestamp will be taken into account. |
- Renvoie
- array The IDs of the update sites with cached updates
- Depuis
- 3.6.0
Références $db, $query, et Factory\getDbo().
◆ getUpdateSites()
getUpdateSites |
( |
|
$eid = 0 | ) |
|
|
private |
Returns the update site records for an extension with ID $eid. If $eid is zero all enabled update sites records will be returned.
- Paramètres
-
int | $eid | The extension ID to fetch. |
- Renvoie
- array
- Depuis
- 3.6.0
Références $db, $query, et elseif.
◆ update()
Finds an update for an extension
- Paramètres
-
integer | $id | Id of the extension |
- Renvoie
- mixed
- Depuis
- 3.6.0
- Obsolète:
- 4.0 No replacement.
Références $id, et Table\getInstance().
◆ updateLastCheckTimestamp()
updateLastCheckTimestamp |
( |
|
$updateSiteId | ) |
|
|
private |
Update the last check timestamp of an update site
- Paramètres
-
int | $updateSiteId | The update site ID to mark as just checked |
- Renvoie
- void
- Depuis
- 3.6.0
Références $db, $query, et Factory\getDbo().
◆ $instance
◆ STABILITY_ALPHA
const STABILITY_ALPHA = 1 |
◆ STABILITY_BETA
◆ STABILITY_DEV
◆ STABILITY_RC
◆ STABILITY_STABLE
const STABILITY_STABLE = 4 |
La documentation de cette classe a été générée à partir du fichier suivant :