private function updateItemsUpdateStatus(array $items) { if (empty($items)) { return; } foreach ($items as $item) { if ($item[self::URI_VAR_ITEM_TYPE] == self::URI_VAR_ITEM_TYPE_VAL_PLUGIN) { $dto = $this->pluginService->findPluginByKey($item[self::URI_VAR_KEY], $item[self::URI_VAR_DEV_KEY]); if ($dto != null) { $dto->setUpdate(BOL_PluginService::PLUGIN_STATUS_UPDATE); $this->pluginService->savePlugin($dto); } } else { if ($item[self::URI_VAR_ITEM_TYPE] == self::URI_VAR_ITEM_TYPE_VAL_THEME) { $dto = $this->themeService->findThemeByKey($item[self::URI_VAR_KEY]); if ($dto != null && $dto->getDeveloperKey() == $item[self::URI_VAR_DEV_KEY]) { $dto->setUpdate(BOL_ThemeService::THEME_STATUS_UPDATE); $this->themeService->saveTheme($dto); } } } } }
public function reset() { $dto = $this->themeService->findThemeByKey(OW::getConfig()->getValue('base', 'selectedTheme')); $this->themeService->resetTheme($dto->getId()); $this->redirect(OW::getRouter()->urlForRoute('admin_themes_edit')); }