ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class ilForumDraftHistory. More...
Public Member Functions | |
getHistoryId () | |
setHistoryId (int $history_id) | |
getDraftId () | |
setDraftId (int $draft_id) | |
getPostSubject () | |
setPostSubject (string $post_subject) | |
getPostMessage () | |
setPostMessage (string $post_message) | |
getDraftDate () | |
setDraftDate (string $draft_date) | |
__construct (int $history_id=0) | |
delete () | |
getFirstAutosaveByDraftId (int $draft_id) | |
getLastAutosaveByDraftId (int $draft_id) | |
addDraftToHistory () | |
deleteMobs () | |
rollbackAutosave () | |
deleteHistoryByPostIds (array $post_ids=[]) | |
deleteHistoryByDraftIds (array $draft_ids=[]) | |
Static Public Member Functions | |
static | getInstancesByDraftId (int $draft_id) |
Data Fields | |
const | MEDIAOBJECT_TYPE = 'frm~h:html' |
Static Protected Member Functions | |
static | populateWithDatabaseRecord (ilForumDraftsHistory $history_draft, array $row) |
Protected Attributes | |
string | $draft_date = '0000-00-00 00:00:00' |
Private Member Functions | |
readByHistoryId (int $history_id) | |
Private Attributes | |
ilDBInterface | $db |
int | $history_id = 0 |
int | $draft_id = 0 |
string | $post_subject = '' |
string | $post_message = '' |
Class ilForumDraftHistory.
Definition at line 25 of file class.ilForumDraftsHistory.php.
ilForumDraftsHistory::__construct | ( | int | $history_id = 0 | ) |
Definition at line 86 of file class.ilForumDraftsHistory.php.
References $DIC, and readByHistoryId().
ilForumDraftsHistory::addDraftToHistory | ( | ) |
Definition at line 194 of file class.ilForumDraftsHistory.php.
References getDraftId(), getPostMessage(), getPostSubject(), and setHistoryId().
ilForumDraftsHistory::delete | ( | ) |
Definition at line 153 of file class.ilForumDraftsHistory.php.
References getHistoryId().
ilForumDraftsHistory::deleteHistoryByDraftIds | ( | array | $draft_ids = [] | ) |
int[] | $draft_ids |
Definition at line 269 of file class.ilForumDraftsHistory.php.
References $res, deleteMobs(), and setHistoryId().
Referenced by deleteHistoryByPostIds(), and rollbackAutosave().
ilForumDraftsHistory::deleteHistoryByPostIds | ( | array | $post_ids = [] | ) |
int[] | $post_ids |
Definition at line 246 of file class.ilForumDraftsHistory.php.
References $res, deleteHistoryByDraftIds(), and ILIAS\Repository\int().
ilForumDraftsHistory::deleteMobs | ( | ) |
Definition at line 210 of file class.ilForumDraftsHistory.php.
References ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), and getHistoryId().
Referenced by deleteHistoryByDraftIds().
ilForumDraftsHistory::getDraftDate | ( | ) |
ilForumDraftsHistory::getDraftId | ( | ) |
Definition at line 46 of file class.ilForumDraftsHistory.php.
References $draft_id.
Referenced by addDraftToHistory(), and rollbackAutosave().
ilForumDraftsHistory::getFirstAutosaveByDraftId | ( | int | $draft_id | ) |
Definition at line 162 of file class.ilForumDraftsHistory.php.
References $res, setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
ilForumDraftsHistory::getHistoryId | ( | ) |
Definition at line 36 of file class.ilForumDraftsHistory.php.
References $history_id.
Referenced by delete(), deleteMobs(), and rollbackAutosave().
|
static |
int | $draft_id |
Definition at line 118 of file class.ilForumDraftsHistory.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\doHistoryCheck().
ilForumDraftsHistory::getLastAutosaveByDraftId | ( | int | $draft_id | ) |
Definition at line 178 of file class.ilForumDraftsHistory.php.
References $res, setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
ilForumDraftsHistory::getPostMessage | ( | ) |
Definition at line 66 of file class.ilForumDraftsHistory.php.
References $post_message.
Referenced by addDraftToHistory(), and rollbackAutosave().
ilForumDraftsHistory::getPostSubject | ( | ) |
Definition at line 56 of file class.ilForumDraftsHistory.php.
References $post_subject.
Referenced by addDraftToHistory(), and rollbackAutosave().
|
staticprotected |
Definition at line 140 of file class.ilForumDraftsHistory.php.
References setDraftDate(), setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
|
private |
Definition at line 97 of file class.ilForumDraftsHistory.php.
References $res, setDraftDate(), setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
Referenced by __construct().
ilForumDraftsHistory::rollbackAutosave | ( | ) |
Definition at line 222 of file class.ilForumDraftsHistory.php.
References deleteHistoryByDraftIds(), getDraftId(), getHistoryId(), getPostMessage(), getPostSubject(), ilForumPostDraft\MEDIAOBJECT_TYPE, ilForumUtil\moveMediaObjects(), and ilForumPostDraft\newInstanceByDraftId().
ilForumDraftsHistory::setDraftDate | ( | string | $draft_date | ) |
Definition at line 81 of file class.ilForumDraftsHistory.php.
References $draft_date.
Referenced by populateWithDatabaseRecord(), and readByHistoryId().
ilForumDraftsHistory::setDraftId | ( | int | $draft_id | ) |
Definition at line 51 of file class.ilForumDraftsHistory.php.
References $draft_id.
Referenced by getFirstAutosaveByDraftId(), getLastAutosaveByDraftId(), populateWithDatabaseRecord(), and readByHistoryId().
ilForumDraftsHistory::setHistoryId | ( | int | $history_id | ) |
Definition at line 41 of file class.ilForumDraftsHistory.php.
References $history_id.
Referenced by addDraftToHistory(), deleteHistoryByDraftIds(), getFirstAutosaveByDraftId(), getLastAutosaveByDraftId(), populateWithDatabaseRecord(), and readByHistoryId().
ilForumDraftsHistory::setPostMessage | ( | string | $post_message | ) |
Definition at line 71 of file class.ilForumDraftsHistory.php.
References $post_message.
Referenced by getFirstAutosaveByDraftId(), getLastAutosaveByDraftId(), populateWithDatabaseRecord(), and readByHistoryId().
ilForumDraftsHistory::setPostSubject | ( | string | $post_subject | ) |
Definition at line 61 of file class.ilForumDraftsHistory.php.
References $post_subject.
Referenced by getFirstAutosaveByDraftId(), getLastAutosaveByDraftId(), populateWithDatabaseRecord(), and readByHistoryId().
|
private |
Definition at line 29 of file class.ilForumDraftsHistory.php.
|
protected |
Definition at line 34 of file class.ilForumDraftsHistory.php.
Referenced by getDraftDate(), and setDraftDate().
|
private |
Definition at line 31 of file class.ilForumDraftsHistory.php.
Referenced by getDraftId(), and setDraftId().
|
private |
Definition at line 30 of file class.ilForumDraftsHistory.php.
Referenced by getHistoryId(), and setHistoryId().
|
private |
Definition at line 33 of file class.ilForumDraftsHistory.php.
Referenced by getPostMessage(), and setPostMessage().
|
private |
Definition at line 32 of file class.ilForumDraftsHistory.php.
Referenced by getPostSubject(), and setPostSubject().
const ilForumDraftsHistory::MEDIAOBJECT_TYPE = 'frm~h:html' |
Definition at line 27 of file class.ilForumDraftsHistory.php.
Referenced by ilObjForumGUI\cancelDraftObject(), ilForumPostDraft\createDraftBackup(), and ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject().