File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/components/bitrix/sale.crm.site.master/tools/b24connectoruninstaller.php
Back
<?php namespace Bitrix\Sale\CrmSiteMaster\Tools; if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) { die(); } use Bitrix\Main, Bitrix\B24Connector; /** * Class B24ConnectorUnInstaller * @package Bitrix\Sale\CrmSiteMaster\Tools */ class B24ConnectorUnInstaller { const MODULE_NAME = "b24connector"; /** * @return bool * @throws Main\LoaderException */ public function isModule() { return Main\Loader::includeModule(self::MODULE_NAME); } /** * @return bool */ public function isSiteConnected() { return B24Connector\Connection::isExist(); } /** * @return Main\Result */ public function uninstallModule() { $result = new Main\Result(); $module = \CModule::CreateModuleObject(self::MODULE_NAME); if (is_object($module)) { $module->UnInstallDB(); $module->UnInstallEvents(); $module->UnInstallFiles(); } /** @noinspection PhpVariableNamingConventionInspection */ global $APPLICATION; if ($ex = $APPLICATION->GetException()) { $result->addError(new Main\Error($ex->GetString())); } return $result; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings