|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilForumDraftHistory. More...
Collaboration diagram for ilForumDraftsHistory: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().
Here is the call graph for this function:| ilForumDraftsHistory::addDraftToHistory | ( | ) |
Definition at line 235 of file class.ilForumDraftsHistory.php.
References getDraftId(), getPostMessage(), getPostSubject(), and setHistoryId().
Here is the call graph for this function:| ilForumDraftsHistory::addMobsToDraftsHistory | ( | $message | ) |
Definition at line 250 of file class.ilForumDraftsHistory.php.
References ilRTE\_getMediaObjects(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilObjMediaObject\_saveUsage(), getHistoryId(), and getPostMessage().
Here is the call graph for this function:| ilForumDraftsHistory::delete | ( | ) |
Definition at line 187 of file class.ilForumDraftsHistory.php.
References getHistoryId().
Here is the call graph for this function:| ilForumDraftsHistory::deleteHistoryByDraftIds | ( | $draft_ids = array() | ) |
Definition at line 323 of file class.ilForumDraftsHistory.php.
References $res, deleteMobs(), and setHistoryId().
Referenced by deleteHistoryByPostIds(), and rollbackAutosave().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumDraftsHistory::deleteHistoryByPostIds | ( | $post_ids = array() | ) |
| array | $post_ids |
Definition at line 304 of file class.ilForumDraftsHistory.php.
References $res, and deleteHistoryByDraftIds().
Here is the call graph for this function:| ilForumDraftsHistory::deleteMobs | ( | ) |
Definition at line 268 of file class.ilForumDraftsHistory.php.
References ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), and getHistoryId().
Referenced by deleteHistoryByDraftIds().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilForumDraftsHistory::getFirstAutosaveByDraftId | ( | $draft_id | ) |
| $draft_id |
Definition at line 199 of file class.ilForumDraftsHistory.php.
References $draft_id, $res, setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
Here is the call graph for this function:| ilForumDraftsHistory::getHistoryId | ( | ) |
Definition at line 38 of file class.ilForumDraftsHistory.php.
References $history_id.
Referenced by addMobsToDraftsHistory(), delete(), deleteMobs(), and rollbackAutosave().
Here is the caller graph for this function:
|
static |
Definition at line 150 of file class.ilForumDraftsHistory.php.
References $DIC, $draft_id, $ilDB, $res, and populateWithDatabaseRecord().
Referenced by ilObjForumGUI\doHistoryCheck().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumDraftsHistory::getLastAutosaveByDraftId | ( | $draft_id | ) |
| $draft_id |
Definition at line 218 of file class.ilForumDraftsHistory.php.
References $draft_id, $res, setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
Here is the call graph for this function:| ilForumDraftsHistory::getPostMessage | ( | ) |
Definition at line 86 of file class.ilForumDraftsHistory.php.
References $post_message.
Referenced by addDraftToHistory(), addMobsToDraftsHistory(), and rollbackAutosave().
Here is the caller graph for this function:| ilForumDraftsHistory::getPostSubject | ( | ) |
Definition at line 70 of file class.ilForumDraftsHistory.php.
References $post_subject.
Referenced by addDraftToHistory(), and rollbackAutosave().
Here is the caller graph for this function:
|
staticprotected |
| ilForumDraftsHistory | $history_draft | |
| array | $row |
Definition at line 176 of file class.ilForumDraftsHistory.php.
References setDraftDate(), setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
Referenced by getInstancesByDraftId().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| $history_id |
Definition at line 133 of file class.ilForumDraftsHistory.php.
References $history_id, $res, setDraftDate(), setDraftId(), setHistoryId(), setPostMessage(), and setPostSubject().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| ilForumDraftsHistory::setDraftDate | ( | $draft_date | ) |
| string | $draft_date |
Definition at line 110 of file class.ilForumDraftsHistory.php.
References $draft_date.
Referenced by populateWithDatabaseRecord(), and readByHistoryId().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().