From 252a38f4a7c78c507229ec888472daf13f66fc4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 23 Jun 2014 17:15:15 +0200 Subject: [PATCH] Add Edit History database objects --- .../history/entry/EditHistoryEntry.class.php | 34 +++++++++++++++++++ .../entry/EditHistoryEntryAction.class.php | 20 +++++++++++ .../entry/EditHistoryEntryEditor.class.php | 20 +++++++++++ .../entry/EditHistoryEntryList.class.php | 20 +++++++++++ 4 files changed, 94 insertions(+) create mode 100644 wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php create mode 100644 wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryAction.class.php create mode 100644 wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php create mode 100644 wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryList.class.php diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php new file mode 100644 index 0000000000..d4d59ed8f9 --- /dev/null +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php @@ -0,0 +1,34 @@ + + * @package com.woltlab.wcf + * @subpackage data.edit.history.entry + * @category Community Framework + */ +class EditHistoryEntry extends DatabaseObject { + /** + * @see \wcf\data\DatabaseObject::$databaseTableName + */ + protected static $databaseTableName = 'edit_history_entry'; + + /** + * @see \wcf\data\DatabaseObject::$databaseTableIndexName + */ + protected static $databaseTableIndexName = 'entryID'; + + /** + * Returns the message text of the history entry. + * + * @return string + */ + public function getMessage() { + return $this->message; + } +} diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryAction.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryAction.class.php new file mode 100644 index 0000000000..d6c004ebef --- /dev/null +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryAction.class.php @@ -0,0 +1,20 @@ + +* @package com.woltlab.wcf +* @subpackage data.edit.history.entry +* @category Community Framework +*/ +class EditHistoryEntryAction extends AbstractDatabaseObjectAction { + /** + * @see \wcf\data\AbstractDatabaseObjectAction::$className + */ + protected $className = 'wcf\data\edit\history\entry\EditHistoryEntryEditor'; +} diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php new file mode 100644 index 0000000000..6f6d46c039 --- /dev/null +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php @@ -0,0 +1,20 @@ + +* @package com.woltlab.wcf +* @subpackage data.edit.history.entry +* @category Community Framework +*/ +class EditHistoryEntryEditor extends DatabaseObjectEditor { + /** + * @see \wcf\data\DatabaseObjectEditor::$baseClass + */ + protected static $baseClass = 'wcf\data\edit\history\entry\EditHistoryEntry'; +} diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryList.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryList.class.php new file mode 100644 index 0000000000..b86e47a616 --- /dev/null +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryList.class.php @@ -0,0 +1,20 @@ + +* @package com.woltlab.wcf +* @subpackage data.edit.history.entry +* @category Community Framework +*/ +class EditHistoryEntryList extends DatabaseObjectList { + /** + * @see \wcf\data\DatabaseObjectList::$className + */ + public $className = 'wcf\data\edit\history\entry\EditHistoryEntry'; +} -- 2.20.1