From 7fcc767603e78f64809d4251677931a085a69337 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 19 Oct 2011 14:43:10 +0200 Subject: [PATCH] Implemented abstraction of object types --- com.woltlab.wcf/packageInstallationPlugin.xml | 2 + .../install/files/acp/templates/header.tpl | 2 +- .../listener/EventListenerAction.class.php | 2 +- .../listener/EventListenerList.class.php | 2 +- .../lib/data/object/type/ObjectType.class.php | 50 +++++++ .../object/type/ObjectTypeAction.class.php | 20 +++ .../object/type/ObjectTypeCache.class.php | 134 ++++++++++++++++++ .../object/type/ObjectTypeEditor.class.php | 20 +++ .../data/object/type/ObjectTypeList.class.php | 20 +++ .../definition/ObjectTypeDefinition.class.php | 25 ++++ .../ObjectTypeDefinitionAction.class.php | 20 +++ .../ObjectTypeDefinitionEditor.class.php | 20 +++ .../ObjectTypeDefinitionList.class.php | 20 +++ .../builder/ObjectTypeCacheBuilder.class.php | 55 +++++++ ...initionPackageInstallationPlugin.class.php | 75 ++++++++++ ...ectTypePackageInstallationPlugin.class.php | 104 ++++++++++++++ wcfsetup/setup/db/install.sql | 25 ++++ 17 files changed, 593 insertions(+), 3 deletions(-) create mode 100644 wcfsetup/install/files/lib/data/object/type/ObjectType.class.php create mode 100644 wcfsetup/install/files/lib/data/object/type/ObjectTypeAction.class.php create mode 100644 wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php create mode 100644 wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php create mode 100644 wcfsetup/install/files/lib/data/object/type/ObjectTypeList.class.php create mode 100644 wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinition.class.php create mode 100644 wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionAction.class.php create mode 100644 wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php create mode 100644 wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionList.class.php create mode 100644 wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php create mode 100644 wcfsetup/install/files/lib/system/package/plugin/ObjectTypeDefinitionPackageInstallationPlugin.class.php create mode 100644 wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php diff --git a/com.woltlab.wcf/packageInstallationPlugin.xml b/com.woltlab.wcf/packageInstallationPlugin.xml index 4f2d429a4a..9deed6ac63 100644 --- a/com.woltlab.wcf/packageInstallationPlugin.xml +++ b/com.woltlab.wcf/packageInstallationPlugin.xml @@ -10,6 +10,8 @@ wcf\system\package\plugin\EventListenerPackageInstallationPlugin wcf\system\package\plugin\FilePackageInstallationPlugin wcf\system\package\plugin\LanguagePackageInstallationPlugin + wcf\system\package\plugin\ObjectTypePackageInstallationPlugin + wcf\system\package\plugin\ObjectTypeDefinitionInstallationPlugin wcf\system\package\plugin\OptionPackageInstallationPlugin wcf\system\package\plugin\PageMenuPackageInstallationPlugin wcf\system\package\plugin\ScriptPackageInstallationPlugin diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index 881bafa104..cc173e6db3 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -100,7 +100,7 @@