function DoUninstall() { UnRegisterModuleDependences("main", "OnBeforeProlog", "intelma.telegramma", "Itelegramma", "MyOnBeforePrologHandler"); UnRegisterModuleDependences("iblock", "OnAfterIBlockElementAdd", "intelma.telegramma", "Itelegramma", "MyOnAfterIBlockElementAddHandler"); UnRegisterModuleDependences("iblock", "OnAfterIBlockElementDelete", "intelma.telegramma", "Itelegramma", "MyOnAfterIBlockElementDeleteHandler"); UnRegisterModule("intelma.telegramma"); }
function UnInstallDB($arParams = array()) { global $DB, $DBType, $APPLICATION; $this->errors = false; if (!array_key_exists("save_tables", $arParams) || $arParams["save_tables"] != "Y") { // remove user data CModule::IncludeModule("highloadblock"); $result = \Bitrix\Highloadblock\HighloadBlockTable::getList(); while ($hldata = $result->fetch()) { \Bitrix\Highloadblock\HighloadBlockTable::delete($hldata['ID']); } // remove hl system data $this->errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/highloadblock/install/db/" . strtolower($DB->type) . "/uninstall.sql"); } UnRegisterModule("highloadblock"); UnRegisterModuleDependences("main", "OnBeforeUserTypeAdd", "highloadblock", '\\Bitrix\\Highloadblock\\HighloadBlockTable', "OnBeforeUserTypeAdd"); UnRegisterModuleDependences("main", "OnAfterUserTypeAdd", "highloadblock", '\\Bitrix\\Highloadblock\\HighloadBlockTable', "onAfterUserTypeAdd"); UnRegisterModuleDependences("main", "OnBeforeUserTypeDelete", "highloadblock", '\\Bitrix\\Highloadblock\\HighloadBlockTable', "OnBeforeUserTypeDelete"); UnRegisterModuleDependences('main', 'OnUserTypeBuildList', 'highloadblock', 'CUserTypeHlblock', 'GetUserTypeDescription'); UnRegisterModuleDependences('iblock', 'OnIBlockPropertyBuildList', 'highloadblock', 'CIBlockPropertyDirectory', 'GetUserTypeDescription'); if ($this->errors !== false) { $APPLICATION->ThrowException(implode("<br>", $this->errors)); return false; } return true; }
function DoUninstall() { global $DOCUMENT_ROOT, $APPLICATION; $this->UnInstallFiles(); UnRegisterModule("shackijj.responsiveslider"); $APPLICATION->IncludeAdminFile(GetMessage("RS_UNINSTALL_RESULT"), $DOCUMENT_ROOT . "/bitrix/modules/shackijj.responsiveslider/unstep.php"); }
public function DoUninstall() { COption::RemoveOption('imageimport'); DeleteDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/imageimport/install/admin', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin'); UnRegisterModule('imageimport'); return true; }
function DoUninstall() { global $DOCUMENT_ROOT, $APPLICATION; UnRegisterModule($this->MODULE_ID); $APPLICATION->IncludeAdminFile("Удаление модуля CityFranchise", $DOCUMENT_ROOT."/local/modules/cityfranchise/install/unstep.php"); return true; }
function UnInstallDB($arParams = array()) { global $APPLICATION, $DB, $DOCUMENT_ROOT; if(!array_key_exists("savedata", $arParams) || $arParams["savedata"] != "Y") { $errors = $DB->RunSQLBatch($DOCUMENT_ROOT."/bitrix/modules/socialservices/install/db/".strtolower($DB->type)."/uninstall.sql"); if (!empty($errors)) { $APPLICATION->ThrowException(implode("", $errors)); return false; } } UnRegisterModuleDependences("main", "OnUserDelete", "socialservices", "CSocServAuthDB", "OnUserDelete"); UnRegisterModuleDependences('socialnetwork', 'OnFillSocNetLogEvents', 'socialservices', 'CSocServEventHandlers', 'OnFillSocNetLogEvents'); UnRegisterModuleDependences('timeman', 'OnAfterTMReportDailyAdd', 'socialservices', 'CSocServAuthDB', 'OnAfterTMReportDailyAdd'); UnRegisterModuleDependences('timeman', 'OnAfterTMDayStart', 'socialservices', 'CSocServAuthDB', 'OnAfterTMDayStart'); UnRegisterModuleDependences('timeman', 'OnTimeManShow', 'socialservices', 'CSocServEventHandlers', 'OnTimeManShow'); $dbSites = CSite::GetList(($b="sort"), ($o="asc"), array("ACTIVE" => "Y")); while ($arSite = $dbSites->Fetch()) { $siteId = $arSite['ID']; CAgent::RemoveAgent("CSocServAuthManager::GetTwitMessages($siteId);", "socialservices"); } UnRegisterModule("socialservices"); return true; }
function UnInstallDB($arParams = array()) { global $DB, $DBType, $APPLICATION; $this->errors = false; if (!array_key_exists("savedata", $arParams) || $arParams["savedata"] != "Y") { $this->errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/vote/install/db/" . strtolower($DB->type) . "/uninstall.sql"); } //delete agents CAgent::RemoveModuleAgents("vote"); $db_res = $DB->Query("SELECT ID FROM b_file WHERE MODULE_ID = 'vote'"); while ($arRes = $db_res->Fetch()) { CFile::Delete($arRes["ID"]); } // Events include $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/vote/install/events/del_events.php"; UnRegisterModuleDependences("im", "OnGetNotifySchema", "vote", "CVoteNotifySchema", "OnGetNotifySchema"); UnRegisterModuleDependences("main", "OnUserLogin", "vote", "CVoteUser", "OnUserLogin", 200); UnRegisterModuleDependences("main", "OnUserTypeBuildList", "vote", "CUserTypeVote", "GetUserTypeDescription", 200); UnRegisterModuleDependences("main", "OnBeforeProlog", "main", "", "", "/modules/vote/keepvoting.php"); UnRegisterModule("vote"); if ($this->errors !== false) { $APPLICATION->ThrowException(implode("<br>", $this->errors)); return false; } return true; }
function UnInstallDB() { global $DB, $DBType, $APPLICATION; $this->errors = false; UnRegisterModule($this->MODULE_ID); return true; }
function DoUninstall() { global $DOCUMENT_ROOT, $APPLICATION; $this->UnInstallFiles(); UnRegisterModule("dg_slider_new"); $APPLICATION->IncludeAdminFile("Деинсталляция модуля dg_module", $DOCUMENT_ROOT."/bitrix/modules/dg_slider_new/install/unstep.php"); }
function UnInstallDB($arParams = array()) { UnRegisterModuleDependences("main", "OnPageStart", "compression", "CCompress", "OnPageStart"); UnRegisterModuleDependences("main", "OnAfterEpilog", "compression", "CCompress", "OnAfterEpilog"); UnRegisterModule("compression"); return true; }
public function DoUninstall() { global $APPLICATION; COption::RemoveOption($this->MODULE_ID); UnRegisterModule($this->MODULE_ID); $this->UnInstallFiles(); }
function DoUninstall() { //launch upgrade when reinstalled module \Sprint\Migration\Module::setDbOption('upgrade_version', 'unknown'); DeleteDirFiles(__DIR__ . "/admin", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/admin"); UnRegisterModule($this->MODULE_ID); }
public function DoUninstall() { global $APPLICATION; $this->UnInstallFiles(); UnRegisterModule($this->MODULE_ID); $APPLICATION->IncludeAdminFile($this->localization()->getDataByPath('setup.down'), __DIR__ . '/unstep.php'); }
public function DoUninstall() { DeleteDirFiles(__DIR__ . '/images', $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/images/' . $this->MODULE_ID, true, true); DeleteDirFiles(__DIR__ . '/js', $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/js/' . $this->MODULE_ID, true, true); $this->DoDependences(false); UnRegisterModule($this->MODULE_ID); }
function UnInstallDB() { // именно в таком порядке UnRegisterModuleDependences("main", "OnProlog", $this->MODULE_ID, "TestModuleOnPageLoad", "testModuleMainHandler"); UnRegisterModule($this->MODULE_ID); return true; }
function DoUninstall() { foreach ($this->events as $event) { UnRegisterModuleDependences($event["from_module"], $event["from_event"], $event["to_module"], $event["to_class"], $event["to_method"]); } UnRegisterModule($this->MODULE_ID); }
function DoUninstall() { global $APPLICATION; UnRegisterModule(self::MODULE_ID); $this->UnInstallDB(); //$this->UnInstallFiles(); }
function UnInstallDB($arParams = array()) { global $DB, $DBType, $APPLICATION; $this->errors = false; UnRegisterModuleDependences("main", "OnPageStart", "security", "CSecurityIPRule", "OnPageStart"); UnRegisterModuleDependences("main", "OnBeforeProlog", "security", "CSecurityFilter", "OnBeforeProlog"); UnRegisterModuleDependences("main", "OnEndBufferContent", "security", "CSecurityXSSDetect", "OnEndBufferContent"); UnRegisterModuleDependences("main", "OnBeforeUserLogin", "security", "CSecurityUser", "OnBeforeUserLogin"); UnRegisterModuleDependences("main", "OnUserDelete", "security", "CSecurityUser", "OnUserDelete"); UnRegisterModuleDependences("main", "OnEventLogGetAuditTypes", "security", "CSecurityFilter", "GetAuditTypes"); UnRegisterModuleDependences("main", "OnEventLogGetAuditTypes", "security", "CSecurityAntiVirus", "GetAuditTypes"); UnRegisterModuleDependences("main", "OnBeforeLocalRedirect", "security", "CSecurityRedirect", "BeforeLocalRedirect"); UnRegisterModuleDependences("main", "OnEndBufferContent", "security", "CSecurityRedirect", "EndBufferContent"); UnRegisterModuleDependences("main", "OnAdminInformerInsertItems", "security", "CSecurityFilter", "OnAdminInformerInsertItems"); COption::SetOptionString("main", "session_id_ttl", "60"); COption::SetOptionString("main", "use_session_id_ttl", "N"); COption::SetOptionInt("main", "session_id_ttl", 60); COption::SetOptionString("security", "session", "N"); if (!array_key_exists("save_tables", $arParams) || $arParams["save_tables"] != "Y") { $this->errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/security/install/db/" . strtolower($DB->type) . "/uninstall.sql"); $this->UnInstallTasks(); } UnRegisterModule("security"); if ($this->errors !== false) { $APPLICATION->ThrowException(implode("<br>", $this->errors)); return false; } return true; }
function UnInstallDB($arParams = array()) { global $DB, $APPLICATION; $errors = null; if (CModule::IncludeModule("socialnetwork")) { $dbLog = CSocNetLog::GetList(array(), array("ENTITY_TYPE" => array("R", "T"), "EVENT_ID" => array("timeman_entry", "report")), false, false, array("ID")); while ($arLog = $dbLog->Fetch()) { CSocNetLog::Delete($arLog["ID"]); } } if (true == array_key_exists("savedata", $arParams) && $arParams["savedata"] != 'Y') { $errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . '/bitrix/modules/' . $this->MODULE_ID . '/install/db/' . strtolower($DB->type) . '/uninstall.sql'); if (!empty($errors)) { $APPLICATION->ThrowException(implode("", $errors)); return false; } $this->UnInstallTasks(); } UnRegisterModuleDependences('socialnetwork', 'OnFillSocNetLogEvents', 'timeman', 'CReportNotifications', 'AddEvent'); UnRegisterModuleDependences('socialnetwork', 'OnFillSocNetAllowedSubscribeEntityTypes', 'timeman', 'CReportNotifications', 'OnFillSocNetAllowedSubscribeEntityTypes'); UnRegisterModuleDependences('socialnetwork', 'OnFillSocNetLogEvents', 'timeman', 'CTimeManNotify', 'OnFillSocNetLogEvents'); UnRegisterModuleDependences('socialnetwork', 'OnFillSocNetAllowedSubscribeEntityTypes', 'timeman', 'CTimeManNotify', 'OnFillSocNetAllowedSubscribeEntityTypes'); UnRegisterModuleDependences("im", "OnGetNotifySchema", "timeman", "CTimemanNotifySchema", "OnGetNotifySchema"); UnRegisterModuleDependences('main', 'OnAfterUserUpdate', 'timeman', 'CTimeManNotify', 'OnAfterUserUpdate'); UnRegisterModuleDependences('main', 'OnAfterUserUpdate', 'timeman', 'CReportNotifications', 'OnAfterUserUpdate'); UnRegisterModule($this->MODULE_ID); return true; }
function DoUninstall() { global $APPLICATION; UnRegisterModule(self::MODULE_ID); $this->UnInstallDB(); $this->UnInstallFiles(); $APPLICATION->IncludeAdminFile(GetMessage("FORM_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".self::MODULE_ID."/install/unstep1.php"); }
function UnInstallDB() { global $DB, $DBType, $APPLICATION; //if(array_key_exists("savedata", $arParams) && $arParams["savedata"] != "Y") //{ $errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/fileman/install/db/" . $DBType . "/uninstall.sql"); if (!empty($errors)) { $APPLICATION->ThrowException(implode("", $errors)); return false; } //} UnRegisterModuleDependences("main", "OnGroupDelete", "fileman", "CFileman", "OnGroupDelete"); UnRegisterModuleDependences("main", "OnPanelCreate", "fileman", "CFileman", "OnPanelCreate"); UnRegisterModuleDependences("main", "OnModuleUpdate", "fileman", "CFileman", "OnModuleUpdate"); UnRegisterModuleDependences("main", "OnModuleInstalled", "fileman", "CFileman", "ClearComponentsListCache"); UnRegisterModule("fileman"); UnRegisterModuleDependences('iblock', 'OnIBlockPropertyBuildList', 'fileman', 'CIBlockPropertyMapGoogle', 'GetUserTypeDescription'); UnRegisterModuleDependences('iblock', 'OnIBlockPropertyBuildList', 'fileman', 'CIBlockPropertyMapYandex', 'GetUserTypeDescription'); UnRegisterModuleDependences('iblock', 'OnIBlockPropertyBuildList', 'fileman', 'CIBlockPropertyVideo', 'GetUserTypeDescription'); UnRegisterModuleDependences("main", "OnUserTypeBuildList", "fileman", "CUserTypeVideo", "GetUserTypeDescription"); UnRegisterModuleDependences("main", "OnEventLogGetAuditTypes", "fileman", "CEventFileman", "GetAuditTypes"); UnRegisterModuleDependences("main", "OnEventLogGetAuditHandlers", "fileman", "CEventFileman", "MakeFilemanObject"); require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/fileman/install/tasks/uninstall.php"; return true; }
function UnInstallDB($arParams = array()) { global $DB, $APPLICATION; $this->errors = false; if (!array_key_exists("savedata", $arParams) || $arParams["savedata"] != "Y") { $this->errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/meeting/install/db/" . strtolower($DB->type) . "/uninstall.sql"); if ($this->errors === false && CModule::IncludeModule('forum')) { $dbRes = CSite::GetList($by = 'sort', $order = 'asc', array()); while ($arSite = $dbRes->Fetch()) { $forumId = COption::GetOptionInt('meeting', 'comments_forum_id', 0, $arSite['ID']); if ($forumId > 0) { CForumNew::Delete($forumId); } } } } UnRegisterModuleDependences("calendar", "OnAfterCalendarConvert", "meeting", "CMeetingEventHandlers", "OnAfterCalendarConvert"); UnRegisterModuleDependences("tasks", "OnTaskDelete", "meeting", "CMeetingEventHandlers", "OnTaskDelete"); UnRegisterModule("meeting"); if ($this->errors !== false) { $APPLICATION->ThrowException(implode("<br>", $this->errors)); return false; } return true; }
public function UnInstallDB() { global $APPLICATION, $DB, $DBType, $errors; UnRegisterModuleDependences('sale', 'OnSaleComponentOrderOneStepProcess', $this->MODULE_ID, 'CDadataSuggestions', 'OnSaleComponentOrderOneStepProcess'); UnRegisterModule($this->MODULE_ID); return true; }
function DoUninstall() { global $DOCUMENT_ROOT, $APPLICATION; $this->UnInstallFiles(); UnRegisterModule("slyblocksmodule"); $APPLICATION->IncludeAdminFile("ƒеинсталл¤ци¤ модул¤ »нтерактивные блоки", $DOCUMENT_ROOT."/bitrix/modules/slyblocksmodule/install/unstep.php"); }
function DoUninstall() { global $DOCUMENT_ROOT, $APPLICATION; $this->UnInstallFiles(); UnRegisterModule("safin"); $APPLICATION->IncludeAdminFile(GetMessage('uninstall_module'), $DOCUMENT_ROOT . "/bitrix/modules/safin/install/unstep.php"); }
function DoUninstall() { global $DOCUMENT_ROOT, $APPLICATION; $this->UnInstallDB(); UnRegisterModule("sanikeev"); $APPLICATION->IncludeAdminFile("Деинсталляция модуля sanikeev_module", $DOCUMENT_ROOT . "/local/modules/sanikeev/install/unstep.php"); }
function UnInstallDB($arParams = array()) { global $DB, $DBType, $APPLICATION; UnRegisterModuleDependences("main", "OnBeforeProlog", "bitrix.eshop", "CEShop", "ShowPanel"); UnRegisterModule("bitrix.eshop"); return true; }
public function DoUninstall() { global $DB, $DBType; COption::RemoveOption($this->MODULE_ID); UnRegisterModule($this->MODULE_ID); DeleteDirFiles( $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/bx_ichannels/install/admin', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin' ); DeleteDirFiles( $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/bx_ichannels/install/js', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/js/bx_ichannels' ); UnRegisterModuleDependences( 'bx_ichannels', 'getImporters', 'bx_ichannels', 'CIChannelsRss', 'getImporter' ); UnRegisterModuleDependences( 'bx_ichannels', 'getRssMappers', 'bx_ichannels', 'CIChannelsRssMapperByLink', 'getRssMapper' ); $this->errors = $DB->RunSQLBatch($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/bx_ichannels/install/db/' . $DBType . '/uninstall.sql'); }
function UnInstallDB() { COption::RemoveOption("translate"); UnRegisterModuleDependences('main', 'OnPanelCreate', 'translate'); UnRegisterModule("translate"); return true; }
function UnInstallDB($arParams = array()) { UnRegisterModuleDependences("pull", "OnGetDependentModule", "mobile", "CMobileEvent", "PullOnGetDependentModule"); UnRegisterModuleDependences("main", "OnApplicationsBuildList", "main", 'MobileApplication', "OnApplicationsBuildList", 100, "modules/mobile/classes/general/mobile_event.php"); UnRegisterModule("mobile"); return true; }