$catalogFill->csv_export($parent_id); } else { if ($exp_type == 'xls') { $catalogFill->xls_export($parent_id); } else { if ($exp_type == 'xlsx') { $catalogFill->xls_export($parent_id, 'Excel2007'); } } } break; case "clean_parent": $parent_id = $_POST['parent']; $catalogFill->cleanParent($parent_id); $catalogFill->cleanHermitTVvalues(); $catalogFill->cleanHermitContent(); if ($cf_config['content_type'] == 'documents' || $cf_config['include_categories']) { $modx->sendRedirect('index.php?a=112&id=' . $_GET['id'] . '&cf_action=clear_cache', 0, 'REDIRECT_HEADER'); exit; } break; case "clean": $c_dir = isset($_POST['item_id']) && $_POST['item_id'] == "import" ? $cf_config['files_import_dir'] : $cf_config['files_export_dir']; $catalogFill->cleanDir($c_dir); break; case "clear_cache": include_once "./processors/cache_sync.class.processor.php"; echo ' <html> <head> <link rel="stylesheet" type="text/css" href="media/style/' . $theme . '/style.css" />