ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilForumDraftHistory. More...
Public Member Functions | |
getHistoryId () | |
setHistoryId ($history_id) | |
getDraftId () | |
setDraftId ($draft_id) | |
getPostSubject () | |
setPostSubject ($post_subject) | |
getPostMessage () | |
setPostMessage ($post_message) | |
getDraftDate () | |
setDraftDate ($draft_date) | |
__construct ($history_id=0) | |
ilForumDraftsHistory constructor. More... | |
delete () | |
getFirstAutosaveByDraftId ($draft_id) | |
getLastAutosaveByDraftId ($draft_id) | |
addDraftToHistory () | |
addMobsToDraftsHistory ($message) | |
deleteMobs () | |
rollbackAutosave () | |
deleteHistoryByPostIds ($post_ids=array()) | |
deleteHistoryByDraftIds ($draft_ids=array()) | |
Static Public Member Functions | |
static | getInstancesByDraftId ($draft_id) |
Data Fields | |
const | MEDIAOBJECT_TYPE = 'frm~h:html' |
$db | |
Static Protected Member Functions | |
static | populateWithDatabaseRecord (ilForumDraftsHistory $history_draft, array $row) |
Protected Attributes | |
$history_id = 0 | |
$draft_id = 0 | |
$post_subject = '' | |
$post_message = '' | |
$draft_date = '0000-00-00 00:00:00' | |
Private Member Functions | |
readByHistoryId ($history_id) | |
Class ilForumDraftHistory.
Definition at line 7 of file class.ilForumDraftsHistory.php.
ilForumDraftsHistory::__construct | ( | $history_id = 0 | ) |
ilForumDraftsHistory constructor.
int | $history_id |
Definition at line 119 of file class.ilForumDraftsHistory.php.
References $DIC, $history_id, and readByHistoryId().
ilForumDraftsHistory::addDraftToHistory | ( | ) |
Definition at line 235 of file class.ilForumDraftsHistory.php.
References getDraftId(), getPostMessage(), getPostSubject(), and setHistoryId().
ilForumDraftsHistory::addMobsToDraftsHistory | ( | $message | ) |
Definition at line 250 of file class.ilForumDraftsHistory.php.
References ilRTE\_getMediaObjects(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilObjMediaObject\_saveUsage(), getHistoryId(), and getPostMessage().
ilForumDraftsHistory::delete | ( | ) |
Definition at line 187 of file class.ilForumDraftsHistory.php.
References getHistoryId().
ilForumDraftsHistory::deleteHistoryByDraftIds | ( | $draft_ids = array() | ) |
Definition at line 323 of file class.ilForumDraftsHistory.php.
References $res, $row, deleteMobs(), and setHistoryId().
Referenced by deleteHistoryByPostIds(), and rollbackAutosave().
ilForumDraftsHistory::deleteHistoryByPostIds | ( | $post_ids = array() | ) |
array | $post_ids |
Definition at line 304 of file class.ilForumDraftsHistory.php.
References $res, $row, and deleteHistoryByDraftIds().
ilForumDraftsHistory::deleteMobs | ( | ) |
Definition at line 268 of file class.ilForumDraftsHistory.php.
References ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), and getHistoryId().
Referenced by deleteHistoryByDraftIds().
ilForumDraftsHistory::getDraftDate | ( | ) |
Definition at line 102 of file class.ilForumDraftsHistory.php.
References $draft_date.
ilForumDraftsHistory::getDraftId | ( | ) |
Definition at line 54 of file class.ilForumDraftsHistory.php.
References $draft_id.
Referenced by addDraftToHistory(), and rollbackAutosave().
ilForumDraftsHistory::getFirstAutosaveByDraftId | ( | $draft_id | ) |
$draft_id |
Definition at line 199 of file class.ilForumDraftsHistory.php.
References $draft_id, $res, $row, setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
ilForumDraftsHistory::getHistoryId | ( | ) |
Definition at line 38 of file class.ilForumDraftsHistory.php.
References $history_id.
Referenced by addMobsToDraftsHistory(), delete(), deleteMobs(), and rollbackAutosave().
|
static |
Definition at line 150 of file class.ilForumDraftsHistory.php.
References $DIC, $draft_id, $ilDB, $res, and $row.
Referenced by ilObjForumGUI\doHistoryCheck().
ilForumDraftsHistory::getLastAutosaveByDraftId | ( | $draft_id | ) |
$draft_id |
Definition at line 218 of file class.ilForumDraftsHistory.php.
References $draft_id, $res, $row, setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
ilForumDraftsHistory::getPostMessage | ( | ) |
Definition at line 86 of file class.ilForumDraftsHistory.php.
References $post_message.
Referenced by addDraftToHistory(), addMobsToDraftsHistory(), and rollbackAutosave().
ilForumDraftsHistory::getPostSubject | ( | ) |
Definition at line 70 of file class.ilForumDraftsHistory.php.
References $post_subject.
Referenced by addDraftToHistory(), and rollbackAutosave().
|
staticprotected |
ilForumDraftsHistory | $history_draft | |
array | $row |
Definition at line 176 of file class.ilForumDraftsHistory.php.
References setDraftDate(), setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
|
private |
$history_id |
Definition at line 133 of file class.ilForumDraftsHistory.php.
References $history_id, $res, $row, setDraftDate(), setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
Referenced by __construct().
ilForumDraftsHistory::rollbackAutosave | ( | ) |
Definition at line 281 of file class.ilForumDraftsHistory.php.
References deleteHistoryByDraftIds(), getDraftId(), getHistoryId(), getPostMessage(), getPostSubject(), ilForumPostDraft\MEDIAOBJECT_TYPE, ilForumUtil\moveMediaObjects(), and ilForumPostDraft\newInstanceByDraftId().
ilForumDraftsHistory::setDraftDate | ( | $draft_date | ) |
string | $draft_date |
Definition at line 110 of file class.ilForumDraftsHistory.php.
References $draft_date.
Referenced by populateWithDatabaseRecord(), and readByHistoryId().
ilForumDraftsHistory::setDraftId | ( | $draft_id | ) |
int | $draft_id |
Definition at line 62 of file class.ilForumDraftsHistory.php.
References $draft_id.
Referenced by getFirstAutosaveByDraftId(), getLastAutosaveByDraftId(), populateWithDatabaseRecord(), and readByHistoryId().
ilForumDraftsHistory::setHistoryId | ( | $history_id | ) |
int | $history_id |
Definition at line 46 of file class.ilForumDraftsHistory.php.
References $history_id.
Referenced by addDraftToHistory(), deleteHistoryByDraftIds(), getFirstAutosaveByDraftId(), getLastAutosaveByDraftId(), populateWithDatabaseRecord(), and readByHistoryId().
ilForumDraftsHistory::setPostMessage | ( | $post_message | ) |
string | $post_message |
Definition at line 94 of file class.ilForumDraftsHistory.php.
References $post_message.
Referenced by getFirstAutosaveByDraftId(), getLastAutosaveByDraftId(), populateWithDatabaseRecord(), and readByHistoryId().
ilForumDraftsHistory::setPostSubject | ( | $post_subject | ) |
string | $post_subject |
Definition at line 78 of file class.ilForumDraftsHistory.php.
References $post_subject.
Referenced by getFirstAutosaveByDraftId(), getLastAutosaveByDraftId(), populateWithDatabaseRecord(), and readByHistoryId().
ilForumDraftsHistory::$db |
Definition at line 33 of file class.ilForumDraftsHistory.php.
|
protected |
Definition at line 31 of file class.ilForumDraftsHistory.php.
Referenced by getDraftDate(), and setDraftDate().
|
protected |
Definition at line 18 of file class.ilForumDraftsHistory.php.
Referenced by getDraftId(), getFirstAutosaveByDraftId(), getInstancesByDraftId(), getLastAutosaveByDraftId(), and setDraftId().
|
protected |
Definition at line 14 of file class.ilForumDraftsHistory.php.
Referenced by __construct(), getHistoryId(), readByHistoryId(), and setHistoryId().
|
protected |
Definition at line 26 of file class.ilForumDraftsHistory.php.
Referenced by getPostMessage(), and setPostMessage().
|
protected |
Definition at line 22 of file class.ilForumDraftsHistory.php.
Referenced by getPostSubject(), and setPostSubject().
const ilForumDraftsHistory::MEDIAOBJECT_TYPE = 'frm~h:html' |
Definition at line 9 of file class.ilForumDraftsHistory.php.
Referenced by ilObjForumGUI\cancelDraftObject(), ilForumPostDraft\createDraftBackup(), and ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject().