Class: I2CE Updater (Development)

From IHRIS Wiki


This article describes the class I2CE_Updater .

Variables

$timeout

int $timeout. update authentication time (in minutes) is to remain valid

Methods

_updateModules()

  • Defined in i2ce/lib/I2CE_Updater.php on line 442
  • Signature: static protected function _updateModules($updates,$removals,$optional_excludes,$disables)
  • Parameters:
    • $updates
    • $removals
      • Default Value: array()
    • $optional_excludes
      • Default Value: array()
    • $disables
      • Default Value: array()

_updateSite()

  • Defined in i2ce/lib/I2CE_Updater.php on line 132
  • Signature: static protected function _updateSite($site_module_file,$verbose_errors)
  • Parameters:
    • $site_module_file
    • $verbose_errors
      • Default Value: true

failedRequiredUpdate()

  • Defined in i2ce/lib/I2CE_Updater.php on line 873
  • Signature: static protected function failedRequiredUpdate($shortname,$data,$msg,$configurator)
  • Parameters:
    • $shortname
    • &$data
    • $msg
    • $configurator

install()

Worker function for the first time installation. Absolutely nothing has been done yet.

  • Defined in i2ce/lib/I2CE_Updater.php on line 242
  • Signature: static protected function install($site_module_file,$restart,$verbose_errors)
  • Parameters:
    • string $site_module_file
      The site module file
    • $restart
    • boolean $verbose_errors
      defaults to true.
      • Default Value: true

isAuthorizedToUpdate()

method to check if authorized to update

loadModuleMagicData()

  • Defined in i2ce/lib/I2CE_Updater.php on line 975
  • Signature: static protected function loadModuleMagicData($shortname,$file,$old_vers,$new_vers,$mod_configurator)
  • Parameters:
    • $shortname
    • $file
    • $old_vers
    • $new_vers
    • $mod_configurator

postUpdateModule()

  • Defined in i2ce/lib/I2CE_Updater.php on line 1063
  • Signature: static protected function postUpdateModule($shortname,$old_vers,$new_vers)
  • Parameters:
    • $shortname
    • $old_vers
    • $new_vers

preUpgradeModule()

  • Defined in i2ce/lib/I2CE_Updater.php on line 1029
  • Signature: static protected function preUpgradeModule($shortname,$old_vers,$new_vers,$new_storage)
  • Parameters:
    • $shortname
    • $old_vers
    • $new_vers
    • $new_storage

processErasers()

  • Defined in i2ce/lib/I2CE_Updater.php on line 741
  • Signature: static protected function processErasers($mod_config,$old_vers)
  • Parameters:
    • $mod_config
    • $old_vers

reinstall()

  • Defined in i2ce/lib/I2CE_Updater.php on line 306
  • Signature: static protected function reinstall($site_module_file,$restart)
  • Parameters:
    • $site_module_file
    • $restart

storeModuleMagicData()

  • Defined in i2ce/lib/I2CE_Updater.php on line 898
  • Signature: static protected function storeModuleMagicData($shortname,$old_vers,$new_vers,$mod_configurator,$imported)
  • Parameters:
    • $shortname
    • $old_vers
    • $new_vers
    • $mod_configurator
    • $imported

updateModules()

  • Defined in i2ce/lib/I2CE_Updater.php on line 407
  • Signature: static public function updateModules($updates,$removals,$optional_excludes,$disables)
  • Parameters:
    • $updates
    • $removals
      • Default Value: array()
    • $optional_excludes
      • Default Value: array()
    • $disables
      • Default Value: array()

updateOutOfDateConfigFiles()

Checks the registered config files {@see addConfigFile() } to make sure that they have been initialized. If the modified time is more recent than the last access time, then it will re-initialize the files. It also checks all loaded config files for enabled modules/components to make sure that they are up-to-date in a simmiar way.

  • Defined in i2ce/lib/I2CE_Updater.php on line 375
  • Signature: static protected function updateOutOfDateConfigFiles($shortnames)
  • Parameters:
    • $shortnames
      • Default Value: null
  • Returns: boolean
    true on success. Future desired behavior: redirect to an error/admin page on failure or if the site module is removed.

updateSite()

Controls the site update

  • Defined in i2ce/lib/I2CE_Updater.php on line 93
  • Signature: static public function updateSite($site_module_file,$verbose_errors)
  • Parameters:
    • string $site_module_file
    • boolean $verbose_errors
      Defaults to true
      • Default Value: true

upgradeModule()

  • Defined in i2ce/lib/I2CE_Updater.php on line 1048
  • Signature: static protected function upgradeModule($shortname,$old_vers,$new_vers)
  • Parameters:
    • $shortname
    • $old_vers
    • $new_vers