/** * Deletes theme content by theme id. * * @param integer $themeId */ public function deleteThemeContent($themeId) { // delete master pages, css, decorators $this->themeContentDao->deleteByThemeId($themeId); // delete master page assignes $this->themeMasterPageDao->deleteByThemeId($themeId); // delete theme controls $this->themeControlDao->deleteThemeControls($themeId); }
/** * Deletes theme content by theme id. * * @param integer $themeId */ public function deleteThemeContent($themeId) { // delete master pages, css, decorators $this->themeContentDao->deleteByThemeId($themeId); // delete master page assignes $this->themeMasterPageDao->deleteByThemeId($themeId); // delete theme controls $this->themeControlDao->deleteThemeControls($themeId); //TODO shouldn't delete control values on theme processing, only on total remove // $this->themeControlValueDao->deleteThemeControlValues($themeId); // // $curentValue = json_decode(OW::getConfig()->getValue('base', 'master_page_theme_info'), true); // // unset($curentValue[$themeId]); // OW::getConfig()->getValue('base', 'master_page_theme_info', json_encode($curentValue)); }