/** * Backup the files for a unzipped patch. * * @param string $guid GUID of the patch. * @return bool Success of the operation. */ private final function backupFilesForPatch($guid) { $filesList = json_decode(Tools::file_get_contents($this->patchFolder . DIRECTORY_SEPARATOR . 'files_list.json'), true); HotfixClassesLoader::loadClass('Backup'); $backup = new HotfixBackup($this->settings); return $backup->backupFilesForPatch($guid, $filesList); }
/** * Module uninstallation. * * @return null */ public function uninstall() { HotfixClassesLoader::loadClass('Installation'); $installation = new HotfixInstallation(); return $installation->removeTables() && $installation->removeFolder($this->settings->get('paths/patches')) && Configuration::deleteByName('SECURITYPATCH_EXEC_RESULT') && parent::uninstall(); }