- Class name: AdminUpgrade
- Parent class: AdminPreferences
- Source: admin-dev/tabs/AdminUpgrade.php line 30
- $_includeContainer
- $ajax
- $autoupgradeDir
- $autoupgradePath
- $backupFileList
- $backupIgnoreAbsoluteFiles
- $backupIgnoreFiles
- $currentParams
- $destDownloadFilename
- $error
- $excludeAbsoluteFilesFromUpgrade
- $excludeFilesFromUpgrade
- $latestRootDir
- $loopBackupFiles
- $loopRemoveSamples
- $loopUpgradeFiles
- $next
- $nextDesc
- $nextParams
- $nextQuickInfo
- $nextResponseType
- $prodRootDir
- $rootWritable
- $sampleFileList
- $skipAction
- $stepDone
- $svnDir
- $toUpgradeFileList
- $useSvn
- ZipExtract
- __construct
- _cleanUp
- _displayRollbackForm
- _displayUpgraderForm
- _getJsErrorMsgs
- _getJsInit
- _listArchivedFiles
- _listBackupFiles
- _listFilesToUpgrade
- _listSampleFiles
- _modelDoUpgrade
- _removeOneSample
- _setFields
- _skipFile
- ajaxPreProcess
- ajaxProcessBackupDb
- ajaxProcessBackupFiles
- ajaxProcessDesactiveShop
- ajaxProcessDownload
- ajaxProcessRemoveSamples
- ajaxProcessRestoreDb
- ajaxProcessRestoreFiles
- ajaxProcessRollback
- ajaxProcessSvnCheckout
- ajaxProcessSvnExport
- ajaxProcessUnzip
- ajaxProcessUpgradeComplete
- ajaxProcessUpgradeDb
- ajaxProcessUpgradeFiles
- ajaxProcessUpgradeNow
- apacheModExists
- buildAjaxResult
- display
- displayAjax
- displayConf
- getFilePath
- init
- isUpgradeAllowed
- postProcess
- upgradeThisFile
protected mixed $_includeContainer = false
- Visibility: protected
- Source: admin-dev/tabs/AdminUpgrade.php line 85.
public mixed $ajax = false
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 32.
public string $autoupgradeDir = 'autoupgrade'
autoupgradeDir
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 53.
public mixed $autoupgradePath = ''
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 47.
public mixed $backupFileList = array()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 60.
private mixed $backupIgnoreAbsoluteFiles = array()
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 63.
private mixed $backupIgnoreFiles = array()
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 62.
public mixed $currentParams = array()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 46.
public mixed $destDownloadFilename = 'prestashop.zip'
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 58.
public mixed $error = '0'
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 42.
private mixed $excludeAbsoluteFilesFromUpgrade = array()
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 65.
private mixed $excludeFilesFromUpgrade = array()
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 64.
public mixed $latestRootDir = ''
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 54.
public mixed $loopBackupFiles = 1000
int loopBackupFiles : if your server has a low memory size, lower this value
- Visibility: public
- This property is static.
- Source: admin-dev/tabs/AdminUpgrade.php line 71.
public mixed $loopRemoveSamples = 1000
intloopRemoveSamples : if your server has a low memory size, lower this value
- Visibility: public
- This property is static.
- Source: admin-dev/tabs/AdminUpgrade.php line 79.
public mixed $loopUpgradeFiles = 1000
int loopUpgradeFiles : if your server has a low memory size, lower this value
- Visibility: public
- This property is static.
- Source: admin-dev/tabs/AdminUpgrade.php line 75.
public mixed $next = 'N/A'
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 34.
public mixed $nextDesc = '.'
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 43.
public mixed $nextParams = array()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 44.
public mixed $nextQuickInfo = array()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 45.
public mixed $nextResponseType = 'json'
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 33.
public mixed $prodRootDir = ''
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 55.
public mixed $rootWritable = false
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 56.
public mixed $sampleFileList = array()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 61.
public mixed $skipAction
- Visibility: public
- This property is static.
- Source: admin-dev/tabs/AdminUpgrade.php line 82.
public boolean $stepDone = true
set to false if the current step is a loop
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 41.
public mixed $svnDir = 'svn'
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 57.
public mixed $toUpgradeFileList = array()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 59.
public mixed $useSvn
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 83.
boolean AdminUpgrade::ZipExtract($fromFile, $toDir)
- Visibility: private
- This method is static.
- Source: admin-dev/tabs/AdminUpgrade.php line 1781
- $fromFile mixed
- $toDir mixed
mixed AdminUpgrade::__construct()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 87
mixed AdminUpgrade::_cleanUp($path)
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 1741
- $path mixed
mixed AdminUpgrade::_displayRollbackForm()
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 1208
mixed AdminUpgrade::_displayUpgraderForm()
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 1226
mixed AdminUpgrade::_getJsErrorMsgs()
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 1143
mixed AdminUpgrade::_getJsInit()
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 1443
mixed AdminUpgrade::_listArchivedFiles()
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 1814
mixed AdminUpgrade::_listBackupFiles($dir)
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 378
- $dir mixed
mixed AdminUpgrade::_listFilesToUpgrade($dir)
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 398
- $dir mixed
void AdminUpgrade::_listSampleFiles(string $dir, string $fileext)
_listSampleFiles will make a recursive call to scandir() function and list all file which match to the $fileext suffixe (this can be an extension or whole filename)
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 354
- $dir string - directory to look in
- $fileext string - suffixe filename
void AdminUpgrade::_modelDoUpgrade()
model_doUpgrade prepare the call to doUpgrade.php file (like model.php)
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 496
mixed AdminUpgrade::_removeOneSample($removeList)
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 921
- $removeList mixed
void AdminUpgrade::_setFields()
_setFields function to set fields (only when we need it).
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 102
mixed AdminUpgrade::_skipFile(\type $file, \type $fullpath, \type $way)
bool _skipFile : check whether a file is in backup or restore skip list
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 1846
- $file type - : current file or directory name eg:'.svn' , 'settings.inc.php'
- $fullpath type - : current file or directory fullpath eg:'/home/web/www/prestashop/img'
- $way type - : 'backup' , 'upgrade'
mixed AdminUpgrade::ajaxPreProcess()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 1098
mixed AdminUpgrade::ajaxProcessBackupDb()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 807
mixed AdminUpgrade::ajaxProcessBackupFiles()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 825
mixed AdminUpgrade::ajaxProcessDesactiveShop()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 424
mixed AdminUpgrade::ajaxProcessDownload()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 1042
mixed AdminUpgrade::ajaxProcessRemoveSamples()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 943
\type AdminUpgrade::ajaxProcessRestoreDb()
try to restore db backup file
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 743
boolean AdminUpgrade::ajaxProcessRestoreFiles()
ajaxProcessRestoreFiles restore the previously saved files.
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 690
mixed AdminUpgrade::ajaxProcessRollback()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 654
mixed AdminUpgrade::ajaxProcessSvnCheckout()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 984
mixed AdminUpgrade::ajaxProcessSvnExport()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 283
mixed AdminUpgrade::ajaxProcessUnzip()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 320
mixed AdminUpgrade::ajaxProcessUpgradeComplete()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 272
mixed AdminUpgrade::ajaxProcessUpgradeDb()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 559
mixed AdminUpgrade::ajaxProcessUpgradeFiles()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 440
mixed AdminUpgrade::ajaxProcessUpgradeNow()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 278
boolean AdminUpgrade::apacheModExists(string $name)
apacheModExists return true if the apache module $name is loaded
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 1128
- $name string - module name
mixed AdminUpgrade::buildAjaxResult()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 1065
mixed AdminUpgrade::display()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 1365
mixed AdminUpgrade::displayAjax()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 1204
void AdminUpgrade::displayConf()
displayConf
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 1088
void AdminUpgrade::getFilePath()
getFilePath return the path to the zipfile containing prestashop.
- Visibility: private
- Source: admin-dev/tabs/AdminUpgrade.php line 259
void AdminUpgrade::init()
init to build informations we need
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 154
void AdminUpgrade::isUpgradeAllowed()
isUpgradeAllowed checks if all server configuration is valid for upgrade
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 139
mixed AdminUpgrade::postProcess()
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 264
void AdminUpgrade::upgradeThisFile(mixed $file)
upgradeThisFile
- Visibility: public
- Source: admin-dev/tabs/AdminUpgrade.php line 598
- $file mixed