Updater

class OC\Updater
Class that handles autoupdating of ownCloud
Hooks provided in scope \OC\Updater
- maintenanceStart()
- maintenanceEnd()
- dbUpgrade()
- failure(string $message)
Source:lib/private/Updater.php#63
Parent:OC\Hooks\BasicEmitter

Properties

Methods

public OC\Updater::__construct($config, $checker, $log, $installer)
Source:lib/private/Updater.php#85
public OC\Updater::upgrade()
runs the update actions in maintenance mode, does not upgrade the source files
except the main .htaccess file
Source:lib/private/Updater.php#101
Returns:bool true if the operation succeeded, false otherwise
public OC\Updater::isUpgradePossible($oldVersion, $newVersion, $allowedPreviousVersions)
Whether an upgrade to a specified version is possible
Source:

lib/private/Updater.php#192

Parameters:
  • $oldVersion (string)
  • $newVersion (string)
  • $allowedPreviousVersions (array)
Returns:

bool

protected OC\Updater::doCoreUpgrade()
Source:lib/private/Updater.php#302
protected OC\Updater::doAppUpgrade()
upgrades all apps within a major ownCloud upgrade. Also loads “priority”
(types authentication, filesystem, logging, in that order) afterwards.
Source:lib/private/Updater.php#318
Throws:\OC\NeedsUpdateException