UNA
Loading...
Searching...
No Matches
BxDolUpgrader Class Reference
Inheritance diagram for BxDolUpgrader:
BxDol

Public Member Functions

 prepare ($bAuto=true)
 
 getLatestVersionNumber ()
 
 getVersionUpdateInfo ()
 
 isNewVersionAvailable ($a)
 
 isUpgradeAvailable ($a)
 
 setTransientUpgradeCronJob ($sUnpackedPath)
 
 getError ()
 

Protected Member Functions

 downloadPatch ($a)
 
 isPatchChecksumCorrect ($sPatchPath, $aVersionUpdateInfo)
 
 unpackPatch ($sPatchPath)
 
 checkFilesChecksums (&$fChangedFilesPercent)
 
 isValidPatch ($sUnpackedPath, $aVersionUpdateInfo)
 
 setError ($s)
 
 normalizeVersion ($s)
 
 getTmpFolderFromZip ($sPatchPath)
 
 deleteUpgradeFolder ($sPatchPath)
 
 deleteUpgradePatch ($sPatchPath)
 

Protected Attributes

 $_sUrlVersionCheck = 'https://v.unacms.com/'
 
 $_sError = false
 

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: