当前位置: 首页>>代码示例>>PHP>>正文


PHP ModuleManager::unRegisterModule方法代码示例

本文整理汇总了PHP中Bitrix\Main\ModuleManager::unRegisterModule方法的典型用法代码示例。如果您正苦于以下问题:PHP ModuleManager::unRegisterModule方法的具体用法?PHP ModuleManager::unRegisterModule怎么用?PHP ModuleManager::unRegisterModule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Bitrix\Main\ModuleManager的用法示例。


在下文中一共展示了ModuleManager::unRegisterModule方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: DoUninstall

 public function DoUninstall()
 {
     $this->UnInstallFiles();
     ModuleManager::unRegisterModule($this->MODULE_ID);
     $eventManager = \Bitrix\Main\EventManager::getInstance();
     $eventManager->unRegisterEventHandler("fileman", "OnBeforeHTMLEditorScriptRuns", $this->MODULE_ID, '\\Newkaliningrad\\Typografru\\Typograf', "onBeforeHTMLEditorScriptRuns");
 }
开发者ID:askew-,项目名称:bitrix-typograf,代码行数:7,代码来源:index.php

示例2: DoUninstall

 public function DoUninstall()
 {
     $this->uninstallFiles();
     \Bitrix\Main\Config\Option::delete($this->MODULE_ID);
     \Bitrix\Main\ModuleManager::unRegisterModule($this->MODULE_ID);
     return true;
 }
开发者ID:beGateway,项目名称:bitrix-payment-module,代码行数:7,代码来源:index.php

示例3: DoUninstall

 function DoUninstall()
 {
     $this->unInstallDB();
     $this->unInstallFiles();
     ModuleManager::unRegisterModule($this->MODULE_ID);
     $GLOBALS['APPLICATION']->IncludeAdminFile(GetMessage("UMBM_UNINSTALL_TITLE"), $this->install_source . 'unstep.php');
 }
开发者ID:u-mulder,项目名称:bixmigs,代码行数:7,代码来源:index.php

示例4: UnInstallDB

 /**
  * Удалить модуль из БД, удаление таблиц модуля
  *
  * @param array $arParams
  * @return bool
  */
 public function UnInstallDB($arParams = array())
 {
     // если у модуля есть свои таблицы, сюда следует поместить удаление этих таблиц
     COption::RemoveOption($this->MODULE_ID);
     \Bitrix\Main\ModuleManager::unRegisterModule($this->MODULE_ID);
     return true;
 }
开发者ID:osotov,项目名称:bitrix_template_module,代码行数:13,代码来源:index.php

示例5: UnInstallDB

 public function UnInstallDB($arParams = array())
 {
     global $errors;
     //COption::RemoveOption($this->getModuleId());
     \Bitrix\Main\ModuleManager::unRegisterModule($this->MODULE_ID);
     return true;
 }
开发者ID:ASDAFF,项目名称:bitrix_parser,代码行数:7,代码来源:index.php

示例6: UnInstallDB

 function UnInstallDB($arParams = array())
 {
     UnRegisterModuleDependences('conversion', 'OnGetCounterTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetCounterTypes');
     UnRegisterModuleDependences('conversion', 'OnGetAttributeTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetAttributeTypes');
     UnRegisterModuleDependences('conversion', 'OnGetAttributeGroupTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetAttributeGroupTypes');
     UnRegisterModuleDependences('conversion', 'OnSetDayContextAttributes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onSetDayContextAttributes');
     UnRegisterModuleDependences('main', 'OnProlog', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onProlog');
     global $DB;
     $DB->RunSQLBatch($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/conversion/install/db/' . strtolower($DB->type) . '/uninstall.sql');
     ModuleManager::unRegisterModule('conversion');
     return true;
 }
开发者ID:vim84,项目名称:b-markt,代码行数:12,代码来源:index.php

示例7: UnInstallDB

 function UnInstallDB($params = array())
 {
     UnRegisterModuleDependences('conversion', 'OnGetCounterTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetCounterTypes');
     UnRegisterModuleDependences('conversion', 'OnGetAttributeTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetAttributeTypes');
     UnRegisterModuleDependences('conversion', 'OnGetAttributeGroupTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetAttributeGroupTypes');
     UnRegisterModuleDependences('conversion', 'OnSetDayContextAttributes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onSetDayContextAttributes');
     UnRegisterModuleDependences('main', 'OnProlog', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onProlog');
     ModuleManager::unRegisterModule('conversion');
     if ($params['SAVE_TABLES'] !== 'Y') {
         global $DB;
         $DB->RunSQLBatch($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/conversion/install/db/' . strtolower($DB->type) . '/uninstall.sql');
         Option::delete('conversion', array('name' => 'START_DATE_TIME'));
         Option::delete('conversion', array('name' => 'BASE_CURRENCY'));
         Option::delete('conversion', array('name' => 'GENERATE_INITIAL_DATA'));
     }
     return true;
 }
开发者ID:Satariall,项目名称:izurit,代码行数:17,代码来源:index.php

示例8: DoUninstall

 public function DoUninstall()
 {
     Loader::includeModule($this->MODULE_ID);
     $this->GetConnection()->dropTable(NewsTable::getTableName());
     ModuleManager::unRegisterModule($this->MODULE_ID);
 }
开发者ID:niksamokhvalov,项目名称:demo.adminhelper,代码行数:6,代码来源:index.php

示例9: doUninstall

 /**
  * Remove module
  *
  * @return void
  */
 public function doUninstall()
 {
     $this->unInstallDB();
     $this->unInstallFiles();
     $this->unInstallEvents();
     ModuleManager::unRegisterModule($this->MODULE_ID);
 }
开发者ID:studiofact,项目名称:citfact.reactengine,代码行数:12,代码来源:index.php

示例10: DoInstall

 function DoInstall()
 {
     global $USER, $APPLICATION;
     $this->errors = false;
     if ($USER->IsAdmin()) {
         if ($this->InstallDB()) {
             $this->InstallEvents();
             $this->InstallFiles();
         }
         $GLOBALS['errors'] = $this->errors;
         if ($this->errors !== false) {
             ModuleManager::unRegisterModule($this->MODULE_ID);
             $APPLICATION->ThrowException(implode('<br>', $this->errors));
             return false;
         }
     }
 }
开发者ID:Hawkart,项目名称:megatv,代码行数:17,代码来源:index.php

示例11: UnInstallDB

 function UnInstallDB($arParams = array())
 {
     global $DB, $APPLICATION;
     $this->errors = false;
     if (Loader::includeModule('currency')) {
         \Bitrix\Currency\CurrencyManager::clearCurrencyCache();
     }
     if (!isset($arParams["savedata"]) || $arParams["savedata"] != "Y") {
         $this->errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/currency/install/db/" . strtolower($DB->type) . "/uninstall.sql");
         if ($this->errors !== false) {
             $APPLICATION->ThrowException(implode('', $this->errors));
             return false;
         }
     }
     CAgent::RemoveModuleAgents('currency');
     ModuleManager::unRegisterModule('currency');
     return true;
 }
开发者ID:Satariall,项目名称:izurit,代码行数:18,代码来源:index.php

示例12: DoUninstall

 public function DoUninstall()
 {
     $this->UnInstallFiles();
     ModuleManager::unRegisterModule($this->MODULE_ID);
 }
开发者ID:notagency,项目名称:notagency.base,代码行数:5,代码来源:index.php

示例13: UnInstallDB

 function UnInstallDB()
 {
     UnRegisterModuleDependences("main", "OnEventLogGetAuditTypes", "scale", "\\Bitrix\\Scale\\Logger", 'onEventLogGetAuditTypes');
     $result = \Bitrix\Main\ModuleManager::unRegisterModule("scale");
     return true;
 }
开发者ID:Satariall,项目名称:izurit,代码行数:6,代码来源:index.php

示例14: DoUninstall

 /**
  *
  */
 function DoUninstall()
 {
     global $APPLICATION;
     $context = Application::getInstance()->getContext();
     $request = $context->getRequest();
     if ($request["step"] < 2) {
         $APPLICATION->IncludeAdminFile(Loc::getMessage("ADELSHIN_PERSONE_UNINSTALL_TITLE"), $this->GetPath() . "/install/unstep1.php");
     } elseif ($request["step"] == 2) {
         $this->UnInstallFiles();
         $this->UnInstallEvents();
         if ($request['savedata'] != 'Y') {
             $this->UnInstallDB();
         }
         ModuleManager::unRegisterModule($this->MODULE_ID);
         #работа с .settings.php
         $configuration = Conf\Configuration::getInstance();
         $adelshin_module_person = $configuration->get('adelshin_module_person');
         $adelshin_module_person['uninstall'] = $adelshin_module_person['uninstall'] + 1;
         $configuration->add('adelshin_module_person', $adelshin_module_person);
         $configuration->saveConfiguration();
         #работа с .settings.php
         $APPLICATION->IncludeAdminFile(Loc::getMessage("ADELSHIN_PERSONE_UNINSTALL_TITLE"), $this->GetPath() . "/install/unstep2.php");
     }
 }
开发者ID:Orendev,项目名称:bitrx.local,代码行数:27,代码来源:index.php

示例15: UnInstallDB

 function UnInstallDB($arParams = array())
 {
     global $APPLICATION, $DB, $errors;
     if (!defined('BX_CATALOG_UNINSTALLED')) {
         define('BX_CATALOG_UNINSTALLED', true);
     }
     if (!isset($arParams["savedata"]) || $arParams["savedata"] != "Y") {
         $errors = $DB->RunSQLBatch($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/catalog/install/db/" . strtolower($DB->type) . "/uninstall.sql");
         if (!empty($errors)) {
             $APPLICATION->ThrowException(implode("", $errors));
             return false;
         }
         $this->UnInstallTasks();
         COption::RemoveOption("catalog");
     }
     UnRegisterModuleDependences("iblock", "OnIBlockDelete", "catalog", "CCatalog", "OnIBlockDelete");
     UnRegisterModuleDependences("iblock", "OnIBlockElementDelete", "catalog", "CProduct", "OnIBlockElementDelete");
     UnRegisterModuleDependences("iblock", "OnIBlockElementDelete", "catalog", "CPrice", "OnIBlockElementDelete");
     UnRegisterModuleDependences("iblock", "OnIBlockElementDelete", "catalog", "CCatalogStoreProduct", "OnIBlockElementDelete");
     UnRegisterModuleDependences("iblock", "OnIBlockElementDelete", "catalog", "CCatalogDocs", "OnIBlockElementDelete");
     UnRegisterModuleDependences("iblock", "OnBeforeIBlockElementDelete", "catalog", "CCatalogDocs", "OnBeforeIBlockElementDelete");
     UnRegisterModuleDependences("currency", "OnCurrencyDelete", "catalog", "CPrice", "OnCurrencyDelete");
     UnRegisterModuleDependences("iblock", "OnAfterIBlockElementUpdate", "catalog", "CCatalogProduct", "OnAfterIBlockElementUpdate");
     UnRegisterModuleDependences("currency", "OnModuleUnInstall", "catalog", "", "CurrencyModuleUnInstallCatalog");
     UnRegisterModuleDependences("iblock", "OnBeforeIBlockDelete", "catalog", "CCatalog", "OnBeforeCatalogDelete");
     UnRegisterModuleDependences("iblock", "OnBeforeIBlockElementDelete", "catalog", "CCatalog", "OnBeforeIBlockElementDelete");
     UnRegisterModuleDependences("main", "OnEventLogGetAuditTypes", "catalog", "CCatalogEvent", "GetAuditTypes");
     UnRegisterModuleDependences('main', 'OnBuildGlobalMenu', 'catalog', 'CCatalogAdmin', 'OnBuildGlobalMenu');
     UnRegisterModuleDependences('main', 'OnAdminListDisplay', 'catalog', 'CCatalogAdmin', 'OnAdminListDisplay');
     UnRegisterModuleDependences('main', 'OnBuildGlobalMenu', 'catalog', 'CCatalogAdmin', 'OnBuildSaleMenu');
     UnRegisterModuleDependences("catalog", "OnCondCatControlBuildList", "catalog", "CCatalogCondCtrlGroup", "GetControlDescr");
     UnRegisterModuleDependences("catalog", "OnCondCatControlBuildList", "catalog", "CCatalogCondCtrlIBlockFields", "GetControlDescr");
     UnRegisterModuleDependences("catalog", "OnCondCatControlBuildList", "catalog", "CCatalogCondCtrlIBlockProps", "GetControlDescr");
     UnRegisterModuleDependences("catalog", "OnDocumentBarcodeDelete", "catalog", "CCatalogStoreDocsElement", "OnDocumentBarcodeDelete");
     UnRegisterModuleDependences("catalog", "OnBeforeDocumentDelete", "catalog", "CCatalogStoreDocsBarcode", "OnBeforeDocumentDelete");
     UnRegisterModuleDependences("catalog", "OnCatalogStoreDelete", "catalog", "CCatalogDocs", "OnCatalogStoreDelete");
     UnRegisterModuleDependences("iblock", "OnBeforeIBlockPropertyDelete", "catalog", "CCatalog", "OnBeforeIBlockPropertyDelete");
     UnRegisterModuleDependences("sale", "OnCondSaleControlBuildList", "catalog", "CCatalogCondCtrlBasketProductFields", "GetControlDescr");
     UnRegisterModuleDependences("sale", "OnCondSaleControlBuildList", "catalog", "CCatalogCondCtrlBasketProductProps", "GetControlDescr");
     UnRegisterModuleDependences("sale", "OnCondSaleActionsControlBuildList", "catalog", "CCatalogActionCtrlBasketProductFields", "GetControlDescr");
     UnRegisterModuleDependences("sale", "OnCondSaleActionsControlBuildList", "catalog", "CCatalogActionCtrlBasketProductProps", "GetControlDescr");
     UnRegisterModuleDependences("sale", "OnExtendBasketItems", "catalog", "CCatalogDiscount", "ExtendBasketItems");
     UnRegisterModuleDependences('iblock', 'OnModuleUnInstall', 'catalog', 'CCatalog', 'OnIBlockModuleUnInstall');
     $eventManager = \Bitrix\Main\EventManager::getInstance();
     $eventManager->unRegisterEventHandler('sale', 'onBuildCouponProviders', 'catalog', '\\Bitrix\\Catalog\\DiscountCouponTable', 'couponManager');
     CAgent::RemoveModuleAgents('catalog');
     ModuleManager::unRegisterModule('catalog');
     return true;
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:49,代码来源:index.php


注:本文中的Bitrix\Main\ModuleManager::unRegisterModule方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。