Modules\Core\Source\MicroModules\SystemOptionsModule::uninstallModule PHP Method

uninstallModule() public method

public uninstallModule ( )
    public function uninstallModule()
    {
        parent::uninstallModule();
        $this->container->get('db')->schema()->dropIfExists('options');
        $this->container->get('db')->schema()->dropIfExists('options_group');
    }

Usage Example

Example #1
0
 public function uninstallModule()
 {
     parent::uninstallModule();
     $this->registerDB();
     $installMicroModule = new CustomizerAdminPanelModule();
     $installMicroModule->uninstallModule();
     $installMicroModule = new PublicModule();
     $installMicroModule->uninstallModule();
     $installMicroModule = new AuthModule();
     $installMicroModule->uninstallModule();
     $installMicroModule = new SystemOptionsModule();
     $installMicroModule->uninstallModule();
     $this->saveConfigForModule(self::class, ["params" => ["installed" => false, "active" => false]]);
 }