From e3667539c8cc75f094495660ec3c2595702f69c9 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 10 Jul 2013 22:39:27 +0200 Subject: [PATCH] Added rebuild data function --- com.woltlab.wcf/acpMenu.xml | 8 +- com.woltlab.wcf/objectType.xml | 8 ++ com.woltlab.wcf/objectTypeDefinition.xml | 5 + com.woltlab.wcf/userGroupOption.xml | 6 ++ .../files/acp/templates/rebuildData.tpl | 57 +++++++++++ .../acp/templates/userActivityPointOption.tpl | 8 +- .../files/acp/templates/userRankList.tpl | 14 --- .../lib/acp/page/RebuildDataPage.class.php | 56 +++++++++++ .../AbstractRebuildDataWorker.class.php | 94 +++++++++++++++++++ .../worker/IRebuildDataWorker.class.php | 21 +++++ ...erActivityPointUpdateCacheWorker.class.php | 68 -------------- .../worker/UserRankUpdateWorker.class.php | 75 --------------- .../worker/UserRebuildDataWorker.class.php | 79 ++++++++++++++++ wcfsetup/install/lang/de.xml | 11 ++- wcfsetup/install/lang/en.xml | 11 ++- 15 files changed, 353 insertions(+), 168 deletions(-) create mode 100644 wcfsetup/install/files/acp/templates/rebuildData.tpl create mode 100644 wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php create mode 100644 wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php create mode 100644 wcfsetup/install/files/lib/system/worker/IRebuildDataWorker.class.php delete mode 100644 wcfsetup/install/files/lib/system/worker/UserActivityPointUpdateCacheWorker.class.php delete mode 100644 wcfsetup/install/files/lib/system/worker/UserRankUpdateWorker.class.php create mode 100644 wcfsetup/install/files/lib/system/worker/UserRebuildDataWorker.class.php diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index cdb9d329c1..58dd4a9f47 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -93,8 +93,14 @@ admin.system.canManageApplication + + + wcf.acp.menu.link.maintenance + admin.system.canRebuildData + + - + wcf.acp.menu.link.maintenance admin.system.canImportData diff --git a/com.woltlab.wcf/objectType.xml b/com.woltlab.wcf/objectType.xml index f7494a9032..24cea360ff 100644 --- a/com.woltlab.wcf/objectType.xml +++ b/com.woltlab.wcf/objectType.xml @@ -263,5 +263,13 @@ + + + + com.woltlab.wcf.user + com.woltlab.wcf.rebuildData + + + \ No newline at end of file diff --git a/com.woltlab.wcf/objectTypeDefinition.xml b/com.woltlab.wcf/objectTypeDefinition.xml index 2fba986584..d2c7abb463 100644 --- a/com.woltlab.wcf/objectTypeDefinition.xml +++ b/com.woltlab.wcf/objectTypeDefinition.xml @@ -139,5 +139,10 @@ com.woltlab.wcf.exporter + + + com.woltlab.wcf.rebuildData + + diff --git a/com.woltlab.wcf/userGroupOption.xml b/com.woltlab.wcf/userGroupOption.xml index fe420e20b2..5c7bd9c4b1 100644 --- a/com.woltlab.wcf/userGroupOption.xml +++ b/com.woltlab.wcf/userGroupOption.xml @@ -143,6 +143,12 @@ 0 1 +