bodyClass = 'compact-container'; $this->pageTitle = 'rainlab.builder::lang.plugin.name'; new PluginList($this, 'pluginList'); new DatabaseTableList($this, 'databaseTabelList'); new ModelList($this, 'modelList'); new VersionList($this, 'versionList'); new LanguageList($this, 'languageList'); new ControllerList($this, 'controllerList'); } public function index() { $this->addCss('/plugins/rainlab/builder/assets/css/builder.css', 'RainLab.Builder'); // The table widget scripts should be preloaded $this->addJs('/modules/backend/widgets/table/assets/js/build-min.js', 'core'); $this->addJs('/plugins/rainlab/builder/assets/js/build-min.js', 'RainLab.Builder'); $this->pageTitleTemplate = '%s Builder'; } public function setBuilderActivePlugin($pluginCode, $refreshPluginList = false) { $this->widget->pluginList->setActivePlugin($pluginCode); $result = []; if ($refreshPluginList) { $result = $this->widget->pluginList->updateList(); } $result = array_merge( $result, $this->widget->databaseTabelList->refreshActivePlugin(), $this->widget->modelList->refreshActivePlugin(), $this->widget->versionList->refreshActivePlugin(), $this->widget->languageList->refreshActivePlugin(), $this->widget->controllerList->refreshActivePlugin() ); return $result; } public function getBuilderActivePluginVector() { return $this->widget->pluginList->getActivePluginVector(); } public function updatePluginList() { return $this->widget->pluginList->updateList(); } }