- Class name: UpgraderCore
- Source: classes/Upgrader.php line 28
- $autoupgrade
- $autoupgrade_last_version
- $autoupgrade_module
- $autoupgrade_module_link
- $changed_files
- $changelog
- $link
- $md5
- $missing_files
- $need_upgrade
- $rss_md5file_link_dir
- $rss_version_link
- $version_is_modified
- $version_name
- $version_num
- __construct
- __get
- addChangedFile
- addMissingFile
- browseXmlAndCompare
- checkPSVersion
- compareChecksum
- downloadLast
- getChangedFilesList
- isAuthenticPrestashopVersion
- isLastVersion
- loadFromConfig
const DEFAULT_CHECK_VERSION_DELAY_HOURS = 24
- Source: classes/Upgrader.php line 30.
public mixed $autoupgrade
- Visibility: public
- Source: classes/Upgrader.php line 47.
public mixed $autoupgrade_last_version
- Visibility: public
- Source: classes/Upgrader.php line 49.
public mixed $autoupgrade_module
- Visibility: public
- Source: classes/Upgrader.php line 48.
public mixed $autoupgrade_module_link
- Visibility: public
- Source: classes/Upgrader.php line 50.
private mixed $changed_files = array()
- Visibility: private
- Source: classes/Upgrader.php line 37.
public mixed $changelog
- Visibility: public
- Source: classes/Upgrader.php line 51.
public string $link
- Visibility: public
- Source: classes/Upgrader.php line 46.
public mixed $md5
- Visibility: public
- Source: classes/Upgrader.php line 52.
private mixed $missing_files = array()
- Visibility: private
- Source: classes/Upgrader.php line 38.
private boolean $need_upgrade = false
- Visibility: private
- Source: classes/Upgrader.php line 36.
public mixed $rss_md5file_link_dir = 'http://api.prestashop.com/xml/md5/'
- Visibility: public
- Source: classes/Upgrader.php line 32.
public mixed $rss_version_link = 'http://api.prestashop.com/xml/upgrader.xml'
- Visibility: public
- Source: classes/Upgrader.php line 31.
public mixed $version_is_modified = null
- Visibility: public
- Source: classes/Upgrader.php line 42.
public mixed $version_name
- Visibility: public
- Source: classes/Upgrader.php line 40.
public mixed $version_num
- Visibility: public
- Source: classes/Upgrader.php line 41.
mixed UpgraderCore::__construct($autoload)
- Visibility: public
- Source: classes/Upgrader.php line 54
- $autoload mixed
mixed UpgraderCore::__get($var)
- Visibility: public
- Source: classes/Upgrader.php line 63
- $var mixed
mixed UpgraderCore::addChangedFile(string $path)
populate $this->changed_files with $path in sub arrays mail, translation and core items
- Visibility: protected
- Source: classes/Upgrader.php line 219
- $path string - filepath to add, relative to PS_ROOT_DIR
mixed UpgraderCore::addMissingFile(string $path)
populate $this->missing_files with $path
- Visibility: protected
- Source: classes/Upgrader.php line 241
- $path string - filepath to add, relative to PS_ROOT_DIR
mixed UpgraderCore::browseXmlAndCompare($node, $current_path, $level)
- Visibility: protected
- Source: classes/Upgrader.php line 247
- $node mixed
- $current_path mixed
- $level mixed
mixed UpgraderCore::checkPSVersion($force)
checkPSVersion ask to prestashop.com if there is a new version. return an array if yes, false otherwise
- Visibility: public
- Source: classes/Upgrader.php line 103
- $force mixed
mixed UpgraderCore::compareChecksum($path, $original_sum)
- Visibility: protected
- Source: classes/Upgrader.php line 279
- $path mixed
- $original_sum mixed
boolean UpgraderCore::downloadLast(string $dest, string $filename)
downloadLast download the last version of PrestaShop and save it in $dest/$filename
- Visibility: public
- Source: classes/Upgrader.php line 78
- $dest string - directory where to save the file
- $filename string - new filename
void UpgraderCore::getChangedFilesList()
return an array of files that the md5file does not match to the original md5file (provided by $rss_md5file_link_dir )
- Visibility: public
- Source: classes/Upgrader.php line 199
mixed UpgraderCore::isAuthenticPrestashopVersion()
- Visibility: public
- Source: classes/Upgrader.php line 286
mixed UpgraderCore::isLastVersion()
- Visibility: public
- Source: classes/Upgrader.php line 89
\UpgraderCore UpgraderCore::loadFromConfig()
load the last version informations stocked in base
- Visibility: public
- Source: classes/Upgrader.php line 165