[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Updater/ -> Updater.php (summary)

Joomla! Content Management System

Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 427 lines (15 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 1 class

Updater:: (7 methods):
  __construct()
  getInstance()
  findUpdates()
  getUpdateSites()
  getUpdateObjectsForSite()
  getSitesWithUpdates()
  updateLastCheckTimestamp()


Class: Updater  - X-Ref

Updater Class

__construct($basepath = __DIR__, $classprefix = '\\Joomla\\CMS\\Updater\\Adapter', $adapterfolder = 'Adapter')   X-Ref
Constructor

param: string  $basepath       Base Path of the adapters
param: string  $classprefix    Class prefix of adapters
param: string  $adapterfolder  Name of folder to append to base path

getInstance()   X-Ref
Returns a reference to the global Installer object, only creating it
if it doesn't already exist.

return: Updater  An installer object

findUpdates($eid = 0, $cacheTimeout = 0, $minimumStability = self::STABILITY_STABLE, $includeCurrent = false)   X-Ref
Finds the update for an extension. Any discovered updates are stored in the #__updates table.

param: int|array  $eid               Extension Identifier or list of Extension Identifiers; if zero use all
param: integer    $cacheTimeout      How many seconds to cache update information; if zero, force reload the
param: integer    $minimumStability  Minimum stability for the updates; 0=dev, 1=alpha, 2=beta, 3=rc,
param: boolean    $includeCurrent    Should I include the current version in the results?
return: boolean True if there are updates

getUpdateSites($eid = 0)   X-Ref
Returns the update site records for an extension with ID $eid. If $eid is zero all enabled update sites records
will be returned.

param: int  $eid  The extension ID to fetch.
return: array

getUpdateObjectsForSite($updateSite, $minimumStability = self::STABILITY_STABLE, $includeCurrent = false)   X-Ref
Loads the contents of an update site record $updateSite and returns the update objects

param: array  $updateSite        The update site record to process
param: int    $minimumStability  Minimum stability for the returned update records
param: bool   $includeCurrent    Should I also include the current version?
return: array  The update records. Empty array if no updates are found.

getSitesWithUpdates($timestamp = 0)   X-Ref
Returns the IDs of the update sites with cached updates

param: int  $timestamp  Optional. If set, only update sites checked before $timestamp will be taken into
return: array  The IDs of the update sites with cached updates

updateLastCheckTimestamp($updateSiteId)   X-Ref
Update the last check timestamp of an update site

param: int  $updateSiteId  The update site ID to mark as just checked
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer