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


PHP ModuleManager::registerModule方法代码示例

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


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

示例1: DoInstall

 function DoInstall()
 {
     $this->InstallDB();
     $this->InstallFiles();
     ModuleManager::registerModule($this->MODULE_ID);
     $GLOBALS['APPLICATION']->IncludeAdminFile(GetMessage("UMBM_INSTALL_TITLE"), $this->install_source . 'step.php');
 }
开发者ID:u-mulder,项目名称:bixmigs,代码行数:7,代码来源:index.php

示例2: DoInstall

	function DoInstall()
	{

		ModuleManager::registerModule(self::MODULE_ID);
		$this->InstallFiles();
		$this->InstallDB();
	}
开发者ID:HotPiN,项目名称:bitrix.lang,代码行数:7,代码来源:index.php

示例3: DoInstall

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

示例4: InstallDB

 function InstallDB($arParams = array())
 {
     global $DB, $DBType, $APPLICATION;
     $this->InstallTasks();
     ModuleManager::registerModule($this->MODULE_ID);
     Loader::includeModule($this->MODULE_ID);
     return true;
 }
开发者ID:Hawkart,项目名称:megatv,代码行数:8,代码来源:index.php

示例5: doInstall

    public function doInstall()
    {
        ModuleManager::registerModule($this->MODULE_ID);

        $this->InstallFiles();
        $this->InstallDB();

        RegisterModuleDependences('iblock', 'OnBeforeIBlockElementDelete', $this->MODULE_ID, '\Iiko\Event', 'onIBlockElementDelete');
    }
开发者ID:phwb,项目名称:ugraweb.iiko,代码行数:9,代码来源:index.php

示例6: InstallDB

 public function InstallDB()
 {
     global $errors;
     $errors = false;
     if (!empty($errors)) {
         throw new BitrixApiException(implode('', $errors));
     }
     \Bitrix\Main\ModuleManager::registerModule($this->MODULE_ID);
     return true;
 }
开发者ID:ASDAFF,项目名称:bitrix_parser,代码行数:10,代码来源:index.php

示例7: InstallDB

 /**
  * Регистрация модуля в БД, установка таблиц модуля
  *
  * @return bool
  * @throws Exception
  */
 public function InstallDB()
 {
     global $errors;
     $errors = false;
     // если у модуля есть свои таблицы, сюда следует поместить создание этих таблиц
     if (!empty($errors)) {
         throw new \Exception(implode('', $errors));
     }
     \Bitrix\Main\ModuleManager::registerModule($this->MODULE_ID);
     return true;
 }
开发者ID:osotov,项目名称:bitrix_template_module,代码行数:17,代码来源:index.php

示例8: doInstall

 /**
  *
  */
 public function doInstall()
 {
     global $APPLICATION;
     if ($this->isVersionD7()) {
         ModuleManager::registerModule($this->MODULE_ID);
         $this->installDB();
         $this->installEvents();
         $this->installFiles();
     } else {
         $APPLICATION->ThrowException(Loc::getMessage('SHANTILAB_YANDEXDIRECT_INSTALL_ERROR_VERSION'));
     }
     $APPLICATION->IncludeAdminFile(Loc::getMessage('SHANTILAB_YANDEXDIRECT_INSTALL_TITLE'), $this->getPath() . '/install/step.php');
 }
开发者ID:SidiGi,项目名称:shantilab.yandexdirect,代码行数:16,代码来源:index.php

示例9: InstallDB

 function InstallDB()
 {
     global $DB, $APPLICATION;
     $this->errors = false;
     if (!$DB->Query("SELECT COUNT(CURRENCY) FROM b_catalog_currency", true)) {
         $this->errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/currency/install/db/" . strtolower($DB->type) . "/install.sql");
     }
     if ($this->errors !== false) {
         $APPLICATION->ThrowException(implode("", $this->errors));
         return false;
     }
     ModuleManager::registerModule('currency');
     self::installCurrencies();
     return true;
 }
开发者ID:Satariall,项目名称:izurit,代码行数:15,代码来源:index.php

示例10: InstallDB

 function InstallDB($arParams = array())
 {
     ModuleManager::registerModule('conversion');
     global $DB;
     $DB->RunSQLBatch($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/conversion/install/db/' . strtolower($DB->type) . '/install.sql');
     RegisterModuleDependences('conversion', 'OnGetCounterTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetCounterTypes');
     RegisterModuleDependences('conversion', 'OnGetAttributeTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetAttributeTypes');
     RegisterModuleDependences('conversion', 'OnGetAttributeGroupTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetAttributeGroupTypes');
     RegisterModuleDependences('conversion', 'OnSetDayContextAttributes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onSetDayContextAttributes');
     RegisterModuleDependences('main', 'OnProlog', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onProlog');
     if (Option::get('conversion', 'START_DATE_TIME', 'undefined') == 'undefined') {
         Option::set('conversion', 'START_DATE_TIME', date('Y-m-d H:i:s'));
     }
     return true;
 }
开发者ID:vim84,项目名称:b-markt,代码行数:15,代码来源:index.php

示例11: InstallDB

 function InstallDB($params = array())
 {
     global $DB;
     if (!$DB->Query("SELECT 'x' FROM b_conv_context", true)) {
         Option::set('conversion', 'START_DATE_TIME', date('Y-m-d H:i:s'));
         if (ModuleManager::isModuleInstalled('sale') && ($currency = Option::get('sale', 'default_currency'))) {
             Option::set('conversion', 'BASE_CURRENCY', $currency);
         } elseif (Bitrix\Main\Loader::includeModule('currency')) {
             Option::set('conversion', 'BASE_CURRENCY', Bitrix\Currency\CurrencyManager::getBaseCurrency());
         }
         if ($params['GENERATE_INITIAL_DATA'] !== 'Y') {
             Option::set('conversion', 'GENERATE_INITIAL_DATA', 'generated');
         }
         $DB->RunSQLBatch($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/conversion/install/db/' . strtolower($DB->type) . '/install.sql');
     }
     ModuleManager::registerModule('conversion');
     RegisterModuleDependences('conversion', 'OnGetCounterTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetCounterTypes');
     RegisterModuleDependences('conversion', 'OnGetAttributeTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetAttributeTypes');
     RegisterModuleDependences('conversion', 'OnGetAttributeGroupTypes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onGetAttributeGroupTypes');
     RegisterModuleDependences('conversion', 'OnSetDayContextAttributes', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onSetDayContextAttributes');
     RegisterModuleDependences('main', 'OnProlog', 'conversion', '\\Bitrix\\Conversion\\Internals\\Handlers', 'onProlog');
     return true;
 }
开发者ID:Satariall,项目名称:izurit,代码行数:23,代码来源:index.php

示例12: DoInstall

 public function DoInstall()
 {
     try {
         //Проверка зависимостей модуля
         if (!IsModuleInstalled("sale")) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_SALE_MODULE_NOT_INSTALL_ERROR"));
         }
         if (!function_exists("curl_init")) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_CURL_NOT_INSTALL_ERROR"));
         }
         if (!function_exists("json_decode")) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_JSON_NOT_INSTALL_ERROR"));
         }
         //регистраниция модуля
         \Bitrix\Main\ModuleManager::registerModule($this->MODULE_ID);
         //создание платёжной системы
         $psid = $this->addPaysys();
         if ($psid === false) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_PS_ERROR_MESS"));
         }
         //сохранение ID пл. системы в настройках модуля
         \Bitrix\Main\Config\Option::set($this->MODULE_ID, "payment_system_id", $psid);
         //копируем файлы обработчика пл. системы
         if (!$this->copyHandlerFiles()) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_COPY_ERROR_MESS"));
         }
         //регистрируем обработчик пл. системы
         $pay_handler_ids = $this->addPaysysHandler($psid);
         if (empty($pay_handler_ids)) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_PS_ACTION_ERROR_REG"));
         }
         //сохраняем id обработчиков пл. системы
         \Bitrix\Main\Config\Option::set($this->MODULE_ID, "pay_handler_ids", implode("|", $pay_handler_ids));
         //создание статуса заказа [ЕРИП]Ожидание оплаты
         $o_status_code = $this->addOStatus();
         if ($o_status_code === false) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_ORDER_STATUS_ERROR_MESS"));
         }
         //сохранение кода статуса заказа в настройках модуля
         \Bitrix\Main\Config\Option::set($this->MODULE_ID, "order_status_code_erip", $o_status_code);
         //Создание типа почтового события
         if ($this->addMailEvType() === false) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_MAIL_EVENT_ADD_ERROR"));
         }
         //сохранение названия типа почтового события в настройках модуля
         \Bitrix\Main\Config\Option::set($this->MODULE_ID, "mail_event_name", $this->mail_event_name);
         //создание почтового шаблона
         $mail_temp_id = $this->addMailTemplate();
         if ($mail_temp_id === false) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_MAIL_TEMPLATE_ADD_ERROR"));
         }
         //сохранение ID почтового шаблона в настройках модуля
         \Bitrix\Main\Config\Option::set($this->MODULE_ID, "mail_template_id", $mail_temp_id);
         //регистрация обработчика обновления заказа
         if ($this->addHandlers() === false) {
             throw new Exception(Loc::getMessage("DEVTM_ERIP_HANDLERS_ADD_ERROR"));
         }
         return true;
     } catch (Exception $e) {
         $this->DoUninstall();
         $GLOBALS["APPLICATION"]->ThrowException($e->getMessage());
         return false;
     }
     return true;
 }
开发者ID:dimabresky,项目名称:bitrix-Erip-module,代码行数:65,代码来源:index.php

示例13: InstallDB

 function InstallDB()
 {
     global $DB, $DBType, $APPLICATION;
     $this->errors = false;
     $clearInstall = false;
     if (!$DB->Query("SELECT 'x' FROM b_sale_basket", true)) {
         $clearInstall = true;
         $this->errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/install/db/" . $DBType . "/install.sql");
     }
     if ($this->errors !== false) {
         $APPLICATION->ThrowException(implode("", $this->errors));
         return false;
     }
     ModuleManager::registerModule('sale');
     $eventManager = \Bitrix\Main\EventManager::getInstance();
     $eventManager->registerEventHandlerCompatible('main', 'OnUserLogout', 'sale', '\\Bitrix\\Sale\\DiscountCouponsManager', 'logout');
     RegisterModuleDependences("main", "OnUserLogin", "sale", "CSaleUser", "OnUserLogin");
     RegisterModuleDependences("main", "OnUserLogout", "sale", "CSaleUser", "OnUserLogout");
     RegisterModuleDependences("main", "OnBeforeLangDelete", "sale", "CSalePersonType", "OnBeforeLangDelete");
     RegisterModuleDependences("main", "OnLanguageDelete", "sale", "CSaleLocation", "OnLangDelete");
     RegisterModuleDependences("main", "OnLanguageDelete", "sale", "CSaleLocationGroup", "OnLangDelete");
     RegisterModuleDependences("main", "OnUserDelete", "sale", "CSaleOrderUserProps", "OnUserDelete");
     RegisterModuleDependences("main", "OnUserDelete", "sale", "CSaleUserAccount", "OnUserDelete");
     RegisterModuleDependences("main", "OnUserDelete", "sale", "CSaleAuxiliary", "OnUserDelete");
     RegisterModuleDependences("main", "OnUserDelete", "sale", "CSaleUser", "OnUserDelete");
     RegisterModuleDependences("main", "OnUserDelete", "sale", "CSaleRecurring", "OnUserDelete");
     RegisterModuleDependences("main", "OnUserDelete", "sale", "CSaleUserCards", "OnUserDelete");
     RegisterModuleDependences("main", "OnBeforeUserDelete", "sale", "CSaleOrder", "OnBeforeUserDelete");
     RegisterModuleDependences("main", "OnBeforeUserDelete", "sale", "CSaleAffiliate", "OnBeforeUserDelete");
     RegisterModuleDependences("main", "OnBeforeUserDelete", "sale", "CSaleUserAccount", "OnBeforeUserDelete");
     RegisterModuleDependences("main", "OnBeforeProlog", "main", "", "", 100, "/modules/sale/affiliate.php");
     RegisterModuleDependences("main", "OnEventLogGetAuditTypes", "sale", "CSaleYMHandler", 'OnEventLogGetAuditTypes');
     RegisterModuleDependences("main", "OnEventLogGetAuditTypes", "sale", "CSalePaySystemAction", 'OnEventLogGetAuditTypes');
     RegisterModuleDependences("currency", "OnBeforeCurrencyDelete", "sale", "CSaleOrder", "OnBeforeCurrencyDelete");
     RegisterModuleDependences("currency", "OnBeforeCurrencyDelete", "sale", "CSaleLang", "OnBeforeCurrencyDelete");
     RegisterModuleDependences("currency", "OnModuleUnInstall", "sale", "", "CurrencyModuleUnInstallSale");
     RegisterModuleDependences("catalog", "OnSaleOrderSumm", "sale", "CSaleOrder", "__SaleOrderCount");
     RegisterModuleDependences("mobileapp", "OnBeforeAdminMobileMenuBuild", "sale", "CSaleMobileOrderUtils", "buildSaleAdminMobileMenu");
     RegisterModuleDependences("sender", "OnConnectorList", "sale", "\\Bitrix\\Sale\\SenderEventHandler", "onConnectorListBuyer");
     RegisterModuleDependences("sender", "OnTriggerList", "sale", "\\Bitrix\\Sale\\Sender\\EventHandler", "onTriggerList");
     RegisterModuleDependences("sender", "OnPresetMailingList", "sale", "\\Bitrix\\Sale\\Sender\\EventHandler", "onPresetMailingList");
     RegisterModuleDependences("sender", "OnPresetTemplateList", "sale", "\\Bitrix\\Sale\\Sender\\EventHandler", "onPresetTemplateList");
     RegisterModuleDependences("sale", "OnCondSaleControlBuildList", "sale", "CSaleCondCtrlGroup", "GetControlDescr", 100);
     RegisterModuleDependences("sale", "OnCondSaleControlBuildList", "sale", "CSaleCondCtrlBasketGroup", "GetControlDescr", 200);
     RegisterModuleDependences("sale", "OnCondSaleControlBuildList", "sale", "CSaleCondCtrlBasketFields", "GetControlDescr", 300);
     RegisterModuleDependences("sale", "OnCondSaleControlBuildList", "sale", "CSaleCondCtrlOrderFields", "GetControlDescr", 1000);
     RegisterModuleDependences("sale", "OnCondSaleControlBuildList", "sale", "CSaleCondCtrlCommon", "GetControlDescr", 10000);
     RegisterModuleDependences("sale", "OnCondSaleActionsControlBuildList", "sale", "CSaleActionCtrlGroup", "GetControlDescr", 100);
     RegisterModuleDependences("sale", "OnCondSaleActionsControlBuildList", "sale", "CSaleActionCtrlDelivery", "GetControlDescr", 200);
     RegisterModuleDependences("sale", "OnCondSaleActionsControlBuildList", "sale", "CSaleActionCtrlBasketGroup", "GetControlDescr", 300);
     RegisterModuleDependences("sale", "OnCondSaleActionsControlBuildList", "sale", "CSaleActionCtrlSubGroup", "GetControlDescr", 1000);
     RegisterModuleDependences("sale", "OnCondSaleActionsControlBuildList", "sale", "CSaleActionCondCtrlBasketFields", "GetControlDescr", 1100);
     //pulling for mobile orders
     RegisterModuleDependences("sale", "OnOrderDelete", "sale", "CSaleMobileOrderPull", "onOrderDelete", 100);
     RegisterModuleDependences("sale", "OnOrderAdd", "sale", "CSaleMobileOrderPull", "onOrderAdd", 100);
     RegisterModuleDependences("sale", "OnOrderUpdate", "sale", "CSaleMobileOrderPull", "onOrderUpdate", 100);
     // sale product2product
     RegisterModuleDependences("sale", "OnBasketOrder", "sale", "\\Bitrix\\Sale\\Product2ProductTable", "onSaleOrderAdd", 100);
     RegisterModuleDependences("sale", "OnSaleStatusOrder", "sale", "\\Bitrix\\Sale\\Product2ProductTable", "onSaleStatusOrderHandler", 100);
     RegisterModuleDependences("sale", "OnSaleDeliveryOrder", "sale", "\\Bitrix\\Sale\\Product2ProductTable", "onSaleDeliveryOrderHandler", 100);
     RegisterModuleDependences("sale", "OnSaleDeductOrder", "sale", "\\Bitrix\\Sale\\Product2ProductTable", "onSaleDeductOrderHandler", 100);
     RegisterModuleDependences("sale", "OnSaleCancelOrder", "sale", "\\Bitrix\\Sale\\Product2ProductTable", "onSaleCancelOrderHandler", 100);
     RegisterModuleDependences("sale", "OnSalePayOrder", "sale", "\\Bitrix\\Sale\\Product2ProductTable", "onSalePayOrderHandler", 100);
     CAgent::AddAgent("\\Bitrix\\Sale\\Product2ProductTable::deleteOldProducts(10);", "sale", "N", 10 * 24 * 3600, "", "Y");
     // conversion
     RegisterModuleDependences('conversion', 'OnGetCounterTypes', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onGetCounterTypes');
     RegisterModuleDependences('conversion', 'OnGetRateTypes', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onGetRateTypes');
     RegisterModuleDependences('conversion', 'OnGenerateInitialData', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onGenerateInitialData');
     RegisterModuleDependences('sale', 'OnBeforeBasketAdd', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onBeforeBasketAdd');
     RegisterModuleDependences('sale', 'OnBasketAdd', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onBasketAdd');
     RegisterModuleDependences('sale', 'OnBeforeBasketUpdate', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onBeforeBasketUpdate');
     RegisterModuleDependences('sale', 'OnBasketUpdate', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onBasketUpdate');
     RegisterModuleDependences('sale', 'OnBeforeBasketDelete', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onBeforeBasketDelete');
     RegisterModuleDependences('sale', 'OnBasketDelete', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onBasketDelete');
     RegisterModuleDependences('sale', 'OnOrderAdd', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onOrderAdd');
     RegisterModuleDependences('sale', 'OnSalePayOrder', 'sale', '\\Bitrix\\Sale\\Internals\\ConversionHandlers', 'onSalePayOrder');
     RegisterModuleDependences("perfmon", "OnGetTableSchema", "sale", "sale", "OnGetTableSchema");
     COption::SetOptionString("sale", "viewed_capability", "N");
     COption::SetOptionString("sale", "viewed_count", 10);
     COption::SetOptionString("sale", "viewed_time", 5);
     COption::SetOptionString("main", "~sale_converted_15", 'Y');
     COption::SetOptionString("sale", "expiration_processing_events", 'N');
     COption::SetOptionString("sale", "p2p_status_list", serialize(array("N", "P", "F", "F_CANCELED", "F_DELIVERY", "F_PAY", "F_OUT")));
     if ($clearInstall) {
         \Bitrix\Main\Config\Option::set('sale', 'basket_discount_converted', 'Y', '');
     }
     CAgent::AddAgent("CSaleRecurring::AgentCheckRecurring();", "sale", "N", 7200, "", "Y");
     CAgent::AddAgent("CSaleOrder::RemindPayment();", "sale", "N", 86400, "", "Y");
     CAgent::AddAgent("CSaleViewedProduct::ClearViewed();", "sale", "N", 86400, "", "Y");
     CAgent::AddAgent("CSaleOrder::ClearProductReservedQuantity();", "sale", "N", 86400, "", "Y");
     COption::SetOptionString("sale", "product_reserve_clear_period", "3");
     \Bitrix\Main\Config\Option::set('sale', 'sale_locationpro_import_performed', 'Y');
     // install tasks + operations for statuses
     $operations = array();
     $operations[] = Bitrix\Main\OperationTable::add(array('MODULE_ID' => 'sale', 'BINDING' => 'status', 'NAME' => 'sale_status_view'));
     $operations[] = Bitrix\Main\OperationTable::add(array('MODULE_ID' => 'sale', 'BINDING' => 'status', 'NAME' => 'sale_status_cancel'));
     $operations[] = Bitrix\Main\OperationTable::add(array('MODULE_ID' => 'sale', 'BINDING' => 'status', 'NAME' => 'sale_status_mark'));
     $operations[] = Bitrix\Main\OperationTable::add(array('MODULE_ID' => 'sale', 'BINDING' => 'status', 'NAME' => 'sale_status_delivery'));
     $operations[] = Bitrix\Main\OperationTable::add(array('MODULE_ID' => 'sale', 'BINDING' => 'status', 'NAME' => 'sale_status_deduction'));
     $operations[] = Bitrix\Main\OperationTable::add(array('MODULE_ID' => 'sale', 'BINDING' => 'status', 'NAME' => 'sale_status_payment'));
//.........这里部分代码省略.........
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:101,代码来源:index.php

示例14: DoInstall

 public function DoInstall()
 {
     $this->installFiles();
     \Bitrix\Main\ModuleManager::registerModule($this->MODULE_ID);
     return true;
 }
开发者ID:beGateway,项目名称:bitrix-payment-module,代码行数:6,代码来源:index.php

示例15: DoInstall

 /**
  *
  */
 function DoInstall()
 {
     global $APPLICATION;
     if ($this->isVersionD7()) {
         ModuleManager::registerModule($this->MODULE_ID);
         $this->InstallDB();
         $this->InstallEvents();
         $this->InstallFiles();
         #работа с .settings.php
         $configuration = Conf\Configuration::getInstance();
         $adelshin_module_person = $configuration->get('adelshin_module_person');
         $adelshin_module_person['install'] = $adelshin_module_person['install'] + 1;
         $configuration->add('adelshin_module_person', $adelshin_module_person);
         $configuration->saveConfiguration();
         //Необходим для сохранения наших конфигурации
         #работа с .settings.php
     } else {
         $APPLICATION->ThrowException(Loc::getMessage("ADELSHIN_PERSON_INSTALL_ERROR_VERSION"));
     }
     $APPLICATION->IncludeAdminFile(Loc::getMessage("ADELSHIN_PERSON_INSTALL_TITLE"), $this->GetPath() . "/install/step.php");
 }
开发者ID:Orendev,项目名称:bitrx.local,代码行数:24,代码来源:index.php


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