From: Tim Düsterhus Date: Mon, 23 Jun 2014 15:15:15 +0000 (+0200) Subject: Add Edit History database objects X-Git-Tag: 2.1.0_Alpha_1~590^2~17 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=252a38f4a7c78c507229ec888472daf13f66fc4e;p=GitHub%2FWoltLab%2FWCF.git Add Edit History database objects --- 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'; +}