Class: I2CE Updater (4.0.2)

From IHRIS Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


This article describes the class I2CE_Updater .

Methods

_updateModules()

  • Defined in i2ce/lib/I2CE_Updater.php on line 369
  • 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 75
  • 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 676
  • 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 183
  • Signature: static protected function install($site_module_file,$verbose_errors)
  • Parameters:
    • string $site_module_file
      The site module file
    • boolean $verbose_errors
      defaults to true.
      • Default Value: true

loadModuleMagicData()

  • Defined in i2ce/lib/I2CE_Updater.php on line 775
  • 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 862
  • 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 828
  • Signature: static protected function preUpgradeModule($shortname,$old_vers,$new_vers,$new_storage)
  • Parameters:
    • $shortname
    • $old_vers
    • $new_vers
    • $new_storage

reinstall()

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

storeModuleMagicData()

  • Defined in i2ce/lib/I2CE_Updater.php on line 701
  • 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 340
  • 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 311
  • 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 46
  • 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 847
  • Signature: static protected function upgradeModule($shortname,$old_vers,$new_vers)
  • Parameters:
    • $shortname
    • $old_vers
    • $new_vers