Beispiel #1
0
    public function doUninstall()
    {
        ModuleManager::unregisterModule($this->MODULE_ID);
        $this->UnInstallFiles();
        $this->uninstallDB();

        UnRegisterModuleDependences('iblock', 'OnBeforeIBlockElementDelete', $this->MODULE_ID, '\Iiko\Event', 'onIBlockElementDelete');
    }
 /**
  *
  */
 public function doUninstall()
 {
     global $APPLICATION;
     $request = Application::getInstance()->getContext()->getRequest();
     if ($request['step'] < 2) {
         $APPLICATION->IncludeAdminFile(Loc::getMessage('SHANTILAB_YANDEXDIRECT_UNINSTALL_TITLE'), $this->getPath() . '/install/unstep1.php');
     } elseif ($request['step'] == 2) {
         $this->uninstallEvents();
         $this->uninstallFiles();
         if ($request['savedata'] != 'Y') {
             $this->uninstallDB();
         }
         ModuleManager::unregisterModule($this->MODULE_ID);
         $APPLICATION->IncludeAdminFile(Loc::getMessage('SHANTILAB_YANDEXDIRECT_UNINSTALL_TITLE'), $this->getPath() . '/install/unstep2.php');
     }
 }
Beispiel #3
0
 public function doUninstall()
 {
     $this->uninstallFiles();
     ModuleManager::unregisterModule($this->MODULE_ID);
 }
Beispiel #4
0
	function DoUninstall()
	{

		ModuleManager::unregisterModule(self::MODULE_ID);
		$this->UnInstallDB();
		$this->UnInstallFiles();
	}
 /**
  * Удаление модуля
  */
 public function DoUninstall()
 {
     $this->UnInstallEvents();
     ModuleManager::unregisterModule($this->MODULE_ID);
 }
Beispiel #6
0
 public function doUninstall()
 {
     $this->eventManager->unRegisterEventHandler('main', 'OnProlog', 'shantilab.bxecho', '\\Shantilab\\BxEcho\\Events', 'autoload');
     $this->uninstallDB();
     ModuleManager::unregisterModule($this->MODULE_ID);
 }