interface DrupalUpdaterInterface

Interface for a class which can update a Drupal project.

An Updater currently serves the following purposes:

  • It can take a given directory, and determine if it can operate on it.
  • It can move the contents of that directory into the appropriate place on the system using FileTransfer classes.
  • It can return a list of "next steps" after an update or install.
  • In the future, it will most likely perform some of those steps as well.

Hierarchy

Expanded class hierarchy of DrupalUpdaterInterface

All classes that implement DrupalUpdaterInterface

File

includes/updater.inc, line 21
Classes used for updating various files in the Drupal webroot. These classes use a FileTransfer object to actually perform the operations. Normally, the FileTransfer is provided when the site owner is redirected to authorize.php as part of a multistep…

Members

Name Modifiers Type Description
DrupalUpdaterInterface::canUpdateDirectory public static function Determine if the Updater can handle the project provided in $directory.
DrupalUpdaterInterface::getInstallDirectory public function
DrupalUpdaterInterface::getProjectName public static function Returns the system name of the project.
DrupalUpdaterInterface::isInstalled public function Checks if the project is installed.
DrupalUpdaterInterface::postInstall public function Actions to run after an install has occurred.
DrupalUpdaterInterface::postUpdate public function Actions to run after an update has occurred.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!updater.inc/interface/DrupalUpdaterInterface/7.x