|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilForumPostDraft. More...
Collaboration diagram for ilForumPostDraft:Public Member Functions | |
| getPostNotify () | |
| setPostNotify ($post_notify) | |
| getDraftId () | |
| setDraftId ($draft_id) | |
| getPostId () | |
| setPostId ($post_id) | |
| getForumId () | |
| setForumId ($forum_id) | |
| getThreadId () | |
| setThreadId ($thread_id) | |
| getPostSubject () | |
| setPostSubject ($post_subject) | |
| getPostMessage () | |
| setPostMessage ($post_message) | |
| getPostDate () | |
| setPostDate ($post_date) | |
| getPostUpdate () | |
| setPostUpdate ($post_update) | |
| getUpdateUserId () | |
| setUpdateUserId ($update_user_id) | |
| getPostUserAlias () | |
| setPostUserAlias ($post_user_alias) | |
| getPostAuthorId () | |
| setPostAuthorId ($post_author_id) | |
| getPostDisplayUserId () | |
| setPostDisplayUserId ($post_display_user_id) | |
| getNotify () | |
| setNotify ($notify) | |
| __construct ($user_id=0, $post_id=0, $draft_id=0) | |
| ilForumPostDraft constructor. More... | |
| saveDraft () | |
| updateDraft () | |
| deleteDraft () | |
| deleteDraftsByDraftIds (array $draft_ids=array()) | |
Static Public Member Functions | |
| static | getDraftInstancesByUserId ($user_id) |
| static | getInstancesByUserIdAndThreadId ($user_id, $thread_id) |
| static | deleteMobsOfDraft ($draft_id) |
| static | deleteDraftsByUserId ($user_id) |
| static | isSavePostDraftAllowed () |
| static | isAutoSavePostDraftAllowed () |
| static | lookupAutosaveInterval () |
| static | getDraftsStatisticsByRefId ($ref_id) |
| static | moveDraftsByMergedThreads ($source_thread_id, $target_thread_id) |
| static | moveDraftsByMovedThread ($thread_ids, $source_ref_id, $target_ref_id) |
| static | getThreadDraftData ($post_author_id, $forum_id) |
| static | createDraftBackup ($draft_id) |
Data Fields | |
| const | MEDIAOBJECT_TYPE = 'frm~d:html' |
Protected Member Functions | |
| readDraft () | |
Static Protected Member Functions | |
| static | populateWithDatabaseRecord (ilForumPostDraft $draft, array $row) |
| static | readDrafts ($user_id) |
Protected Attributes | |
| $draft_id = 0 | |
| $post_id = 0 | |
| $forum_id = 0 | |
| $thread_id = 0 | |
| $post_subject = '' | |
| $post_message = '' | |
| $post_date = '0000-00-00 00:00:00' | |
| $post_update = '0000-00-00 00:00:00' | |
| $update_user_id = 0 | |
| $post_user_alias = '' | |
| $post_author_id = 0 | |
| $post_display_user_id = 0 | |
| $notify = 0 | |
| $post_notify = 0 | |
Static Protected Attributes | |
| static | $forum_statistics_cache = array() |
| static | $drafts_settings_cache = array() |
Static Private Attributes | |
| static | $instances = array() |
Class ilForumPostDraft.
Definition at line 8 of file class.ilForumPostDraft.php.
| ilForumPostDraft::__construct | ( | $user_id = 0, |
|
$post_id = 0, |
|||
$draft_id = 0 |
|||
| ) |
ilForumPostDraft constructor.
| int | $user_id | |
| int | $post_id |
Definition at line 333 of file class.ilForumPostDraft.php.
References $draft_id, $post_id, readDraft(), setDraftId(), setPostAuthorId(), and setPostId().
Here is the call graph for this function:
|
static |
| $draft_id |
Definition at line 728 of file class.ilForumPostDraft.php.
References $draft_id, $ilDB, $res, $row, ilForumDraftsHistory\MEDIAOBJECT_TYPE, ilForumUtil\moveMediaObjects(), and populateWithDatabaseRecord().
Referenced by ilObjForumGUI\doHistoryCheck(), and ilObjForumGUI\restoreFromHistoryObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumPostDraft::deleteDraft | ( | ) |
Definition at line 513 of file class.ilForumPostDraft.php.
References $ilDB, and getDraftId().
Here is the call graph for this function:| ilForumPostDraft::deleteDraftsByDraftIds | ( | array | $draft_ids = array() | ) |
| array | $draft_ids |
Definition at line 543 of file class.ilForumPostDraft.php.
References $draft_id, $ilDB, and deleteMobsOfDraft().
Here is the call graph for this function:
|
static |
| int | $user_id |
Definition at line 562 of file class.ilForumPostDraft.php.
References $draft_id, $ilDB, $res, $row, and deleteMobsOfDraft().
Here is the call graph for this function:
|
static |
| $draft_id |
Definition at line 524 of file class.ilForumPostDraft.php.
References $draft_id, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and ilObjMediaObject\_removeUsage().
Referenced by deleteDraftsByDraftIds(), and deleteDraftsByUserId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumPostDraft::getDraftId | ( | ) |
Definition at line 123 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by ilObjForumGUI\createTopLevelPostObject(), deleteDraft(), readDraft(), and updateDraft().
Here is the caller graph for this function:
|
static |
| int | $user_id |
Definition at line 388 of file class.ilForumPostDraft.php.
References readDrafts().
Referenced by ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjForumGUI\deleteThreadDraftsObject(), and ilForumPostingDraftsBlockGUI\fillDataSection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| $ref_id |
Definition at line 635 of file class.ilForumPostDraft.php.
References $ilDB, $ilUser, $ref_id, $res, $row, and ilObjForum\lookupForumIdByRefId().
Here is the call graph for this function:| ilForumPostDraft::getForumId | ( | ) |
Definition at line 155 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by saveDraft().
Here is the caller graph for this function:
|
static |
| $user_id | |
| $thread_id |
Definition at line 403 of file class.ilForumPostDraft.php.
References $thread_id, and readDrafts().
Here is the call graph for this function:| ilForumPostDraft::getNotify | ( | ) |
Definition at line 315 of file class.ilForumPostDraft.php.
References $notify.
Referenced by saveDraft(), and updateDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostAuthorId | ( | ) |
Definition at line 283 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by readDraft(), and saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostDate | ( | ) |
Definition at line 219 of file class.ilForumPostDraft.php.
References $post_date.
| ilForumPostDraft::getPostDisplayUserId | ( | ) |
Definition at line 299 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by saveDraft(), and updateDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostId | ( | ) |
Definition at line 139 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by readDraft(), and saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostMessage | ( | ) |
Definition at line 203 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by saveDraft(), and updateDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostNotify | ( | ) |
Definition at line 107 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by saveDraft(), and updateDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostSubject | ( | ) |
Definition at line 187 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by saveDraft(), and updateDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostUpdate | ( | ) |
Definition at line 235 of file class.ilForumPostDraft.php.
References $post_update.
| ilForumPostDraft::getPostUserAlias | ( | ) |
Definition at line 267 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by saveDraft(), and updateDraft().
Here is the caller graph for this function:
|
static |
| $post_author_id | |
| $forum_id |
Definition at line 703 of file class.ilForumPostDraft.php.
References $forum_id, $ilDB, $post_author_id, $res, $row, and populateWithDatabaseRecord().
Here is the call graph for this function:| ilForumPostDraft::getThreadId | ( | ) |
Definition at line 171 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::getUpdateUserId | ( | ) |
Definition at line 251 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by updateDraft().
Here is the caller graph for this function:
|
static |
Definition at line 605 of file class.ilForumPostDraft.php.
References $ilSetting.
Referenced by ilObjForumGUI\addAutosave(), ilObjForumGUI\autosaveDraftAsyncObject(), ilObjForumGUI\autosaveThreadDraftAsyncObject(), ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\doHistoryCheck(), and ilObjForumGUI\editDraftObject().
Here is the caller graph for this function:
|
static |
Definition at line 592 of file class.ilForumPostDraft.php.
References $ilSetting.
Referenced by ilObjForumGUI\createTopLevelPostObject(), ilObjForumGUI\deleteSelectedDraft(), ilObjForumGUI\deleteThreadDraftsObject(), and ilObjForumGUI\publishDraftObject().
Here is the caller graph for this function:
|
static |
Definition at line 622 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\addAutosave().
Here is the caller graph for this function:
|
static |
| $source_thread_id | |
| $target_thread_id |
Definition at line 666 of file class.ilForumPostDraft.php.
References $ilDB.
|
static |
| array | $thread_ids | |
| int | $source_ref_id | |
| int | $target_ref_id |
Definition at line 681 of file class.ilForumPostDraft.php.
References $ilDB, and ilObjForum\lookupForumIdByRefId().
Here is the call graph for this function:
|
staticprotected |
| $draft | ilForumPostDraft |
| $row | array |
Definition at line 86 of file class.ilForumPostDraft.php.
References $row, setDraftId(), setForumId(), setNotify(), setPostAuthorId(), setPostDate(), setPostDisplayUserId(), setPostId(), setPostMessage(), setPostNotify(), setPostSubject(), setPostUpdate(), setPostUserAlias(), setThreadId(), and setUpdateUserId().
Referenced by createDraftBackup(), getThreadDraftData(), readDraft(), and readDrafts().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 347 of file class.ilForumPostDraft.php.
References $ilDB, $res, $row, getDraftId(), getPostAuthorId(), getPostId(), and populateWithDatabaseRecord().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
| int | $user_id |
Definition at line 366 of file class.ilForumPostDraft.php.
References $ilDB, $res, $row, and populateWithDatabaseRecord().
Referenced by getDraftInstancesByUserId(), and getInstancesByUserIdAndThreadId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumPostDraft::saveDraft | ( | ) |
Definition at line 469 of file class.ilForumPostDraft.php.
References $draft_id, $ilDB, $post_date, date, getForumId(), getNotify(), getPostAuthorId(), getPostDisplayUserId(), getPostId(), getPostMessage(), getPostNotify(), getPostSubject(), getPostUserAlias(), getThreadId(), and setDraftId().
Here is the call graph for this function:| ilForumPostDraft::setDraftId | ( | $draft_id | ) |
| int | $draft_id |
Definition at line 131 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by __construct(), populateWithDatabaseRecord(), and saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::setForumId | ( | $forum_id | ) |
| int | $forum_id |
Definition at line 163 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setNotify | ( | $notify | ) |
| int | $notify |
Definition at line 323 of file class.ilForumPostDraft.php.
References $notify.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostAuthorId | ( | $post_author_id | ) |
| int | $post_author_id |
Definition at line 291 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by __construct(), and populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostDate | ( | $post_date | ) |
| string | $post_date |
Definition at line 227 of file class.ilForumPostDraft.php.
References $post_date.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostDisplayUserId | ( | $post_display_user_id | ) |
| int | $post_display_user_id |
Definition at line 307 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostId | ( | $post_id | ) |
| int | $post_id |
Definition at line 147 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by __construct(), and populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostMessage | ( | $post_message | ) |
| string | $post_message |
Definition at line 211 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostNotify | ( | $post_notify | ) |
| int | $post_notify |
Definition at line 115 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostSubject | ( | $post_subject | ) |
| string | $post_subject |
Definition at line 195 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostUpdate | ( | $post_update | ) |
| string | $post_update |
Definition at line 243 of file class.ilForumPostDraft.php.
References $post_update.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostUserAlias | ( | $post_user_alias | ) |
| string | $post_user_alias |
Definition at line 275 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setThreadId | ( | $thread_id | ) |
| int | $thread_id |
Definition at line 179 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setUpdateUserId | ( | $update_user_id | ) |
| int | $update_user |
Definition at line 259 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::updateDraft | ( | ) |
Definition at line 496 of file class.ilForumPostDraft.php.
References $ilDB, date, getDraftId(), getNotify(), getPostDisplayUserId(), getPostMessage(), getPostNotify(), getPostSubject(), getPostUserAlias(), and getUpdateUserId().
Here is the call graph for this function:
|
protected |
Definition at line 14 of file class.ilForumPostDraft.php.
Referenced by __construct(), createDraftBackup(), deleteDraftsByDraftIds(), deleteDraftsByUserId(), deleteMobsOfDraft(), getDraftId(), saveDraft(), and setDraftId().
|
staticprotected |
Definition at line 80 of file class.ilForumPostDraft.php.
|
protected |
Definition at line 22 of file class.ilForumPostDraft.php.
Referenced by getForumId(), getThreadDraftData(), and setForumId().
|
staticprotected |
Definition at line 75 of file class.ilForumPostDraft.php.
|
staticprivate |
Definition at line 69 of file class.ilForumPostDraft.php.
|
protected |
Definition at line 63 of file class.ilForumPostDraft.php.
Referenced by getNotify(), and setNotify().
|
protected |
Definition at line 54 of file class.ilForumPostDraft.php.
Referenced by getPostAuthorId(), getThreadDraftData(), and setPostAuthorId().
|
protected |
Definition at line 38 of file class.ilForumPostDraft.php.
Referenced by getPostDate(), saveDraft(), and setPostDate().
|
protected |
Definition at line 58 of file class.ilForumPostDraft.php.
Referenced by getPostDisplayUserId(), and setPostDisplayUserId().
|
protected |
Definition at line 18 of file class.ilForumPostDraft.php.
Referenced by __construct(), getPostId(), and setPostId().
|
protected |
Definition at line 34 of file class.ilForumPostDraft.php.
Referenced by getPostMessage(), and setPostMessage().
|
protected |
Definition at line 64 of file class.ilForumPostDraft.php.
Referenced by getPostNotify(), and setPostNotify().
|
protected |
Definition at line 30 of file class.ilForumPostDraft.php.
Referenced by getPostSubject(), and setPostSubject().
|
protected |
Definition at line 42 of file class.ilForumPostDraft.php.
Referenced by getPostUpdate(), and setPostUpdate().
|
protected |
Definition at line 50 of file class.ilForumPostDraft.php.
Referenced by getPostUserAlias(), and setPostUserAlias().
|
protected |
Definition at line 26 of file class.ilForumPostDraft.php.
Referenced by getInstancesByUserIdAndThreadId(), getThreadId(), and setThreadId().
|
protected |
Definition at line 46 of file class.ilForumPostDraft.php.
Referenced by getUpdateUserId(), and setUpdateUserId().
| const ilForumPostDraft::MEDIAOBJECT_TYPE = 'frm~d:html' |
Definition at line 10 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\autosaveDraftAsyncObject(), ilObjForumGUI\autosaveThreadDraftAsyncObject(), ilObjForumGUI\cancelDraftObject(), and ilForumDraftsHistory\rollbackAutosave().