UNA
BxDolUpgrader Class Reference
Inheritance diagram for BxDolUpgrader:
BxDol

Public Member Functions

 prepare ($bAuto=true)
 

Member Function Documentation

◆ prepare()

BxDolUpgrader::prepare (   $bAuto = true)

Prepare for system upgrade. It prepares upgrade by downloading upgrade pack and performing different checks. After all check are successfully completed, transient cron job is set to run upgrade upon next cron run.

Returns
true if upgrade was successfully scheduled to run, or false on error (you can call
See also
getError to determine particular error message)

NOTE. Temporary disabled. TODO. Enable after "Main Version Compatibility Check" will be performed for updates.

if(!$bAuto) { $aUpdates = BxDolStudioInstallerUtils::getInstance()->checkUpdates(); if(!empty($aUpdates) && is_array($aUpdates)) { $this->setError(_t('_sys_upgrade_modules_upgrade_first')); break; } }


The documentation for this class was generated from the following file: