|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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 () | |
| deleteDraftsByPostIds (array $post_ids=array()) | |
| deleteDraftsByDraftIds (array $draft_ids=array()) | |
Static Public Member Functions | |
| static | getSortedDrafts (int $usrId, int $threadId, int $sorting=ilForumProperties::VIEW_DATE_ASC) |
| static | getDraftInstancesByUserId ($user_id) |
| static | getInstancesByUserIdAndThreadId ($user_id, $thread_id) |
| static | newInstanceByDraftId ($draft_id) |
| static | newInstanceByHistorytId ($history_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 7 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 335 of file class.ilForumPostDraft.php.
References $DIC, $draft_id, $post_id, readDraft(), setDraftId(), setPostAuthorId(), and setPostId().
Here is the call graph for this function:
|
static |
| $draft_id |
Definition at line 797 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $res, ilForumDraftsHistory\MEDIAOBJECT_TYPE, and ilForumUtil\moveMediaObjects().
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 555 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\createThread().
Here is the caller graph for this function:| ilForumPostDraft::deleteDraftsByDraftIds | ( | array | $draft_ids = array() | ) |
| array | $draft_ids |
Definition at line 605 of file class.ilForumPostDraft.php.
| ilForumPostDraft::deleteDraftsByPostIds | ( | array | $post_ids = array() | ) |
| array | $post_ids |
Definition at line 583 of file class.ilForumPostDraft.php.
References $res.
|
static |
| int | $user_id |
Definition at line 621 of file class.ilForumPostDraft.php.
|
static |
| $draft_id |
Definition at line 567 of file class.ilForumPostDraft.php.
References ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and ilObjMediaObject\_removeUsage().
Here is the call graph for this function:| ilForumPostDraft::getDraftId | ( | ) |
Definition at line 125 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by ilObjForumGUI\createThread(), ilObjForumGUI\createTopLevelPostObject(), and readDraft().
Here is the caller graph for this function:
|
static |
| int | $user_id |
Definition at line 443 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjForumGUI\deleteThreadDraftsObject(), and ilForumDraftsDerivedTaskProvider\getTasks().
Here is the caller graph for this function:
|
static |
| $ref_id |
Definition at line 695 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $ilUser, $res, and ilObjForum\lookupForumIdByRefId().
Referenced by ilForumTopicTableGUI\fillRow(), and ilObjForumListGUI\getProperties().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumPostDraft::getForumId | ( | ) |
Definition at line 157 of file class.ilForumPostDraft.php.
References $forum_id.
|
static |
| $user_id | |
| $thread_id |
Definition at line 457 of file class.ilForumPostDraft.php.
| ilForumPostDraft::getNotify | ( | ) |
Definition at line 317 of file class.ilForumPostDraft.php.
References $notify.
Referenced by ilObjForumGUI\createThread().
Here is the caller graph for this function:| ilForumPostDraft::getPostAuthorId | ( | ) |
Definition at line 285 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by ilObjForumGUI\checkDraftAccess(), ilObjForumGUI\createThread(), ilObjForumGUI\deleteSelectedDraft(), and readDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostDate | ( | ) |
Definition at line 221 of file class.ilForumPostDraft.php.
References $post_date.
| ilForumPostDraft::getPostDisplayUserId | ( | ) |
Definition at line 301 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by ilObjForumGUI\createThread().
Here is the caller graph for this function:| ilForumPostDraft::getPostId | ( | ) |
Definition at line 141 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by readDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostMessage | ( | ) |
Definition at line 205 of file class.ilForumPostDraft.php.
References $post_message.
| ilForumPostDraft::getPostNotify | ( | ) |
Definition at line 109 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by ilObjForumGUI\createThread().
Here is the caller graph for this function:| ilForumPostDraft::getPostSubject | ( | ) |
Definition at line 189 of file class.ilForumPostDraft.php.
References $post_subject.
| ilForumPostDraft::getPostUpdate | ( | ) |
Definition at line 237 of file class.ilForumPostDraft.php.
References $post_update.
| ilForumPostDraft::getPostUserAlias | ( | ) |
Definition at line 269 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by ilObjForumGUI\createThread().
Here is the caller graph for this function:
|
static |
| int | $usrId | |
| int | $threadId | |
| int | $sorting |
Definition at line 397 of file class.ilForumPostDraft.php.
References ilForumProperties\VIEW_DATE_DESC.
|
static |
| $post_author_id | |
| $forum_id |
Definition at line 770 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\getContent().
Here is the caller graph for this function:| ilForumPostDraft::getThreadId | ( | ) |
| ilForumPostDraft::getUpdateUserId | ( | ) |
Definition at line 253 of file class.ilForumPostDraft.php.
References $update_user_id.
|
static |
Definition at line 668 of file class.ilForumPostDraft.php.
References $DIC.
Referenced by ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\decorateWithAutosave(), ilObjForumGUI\doHistoryCheck(), ilObjForumGUI\editDraftObject(), and ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject().
Here is the caller graph for this function:
|
static |
Definition at line 656 of file class.ilForumPostDraft.php.
References $DIC.
Referenced by ilForumTopicTableGUI\__construct(), ilObjForumGUI\addThreadObject(), ilObjForumGUI\createTopLevelPostObject(), ilObjForumGUI\deleteSelectedDraft(), ilObjForumGUI\editThreadDraftObject(), ilObjForumGUI\getContent(), ilObjForumListGUI\getProperties(), ilForumThreadFormGUI\initForm(), ilObjForumGUI\publishDraftObject(), ilObjForumGUI\publishThreadDraftObject(), ilObjForumGUI\saveThreadAsDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
Here is the caller graph for this function:
|
static |
Definition at line 683 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\decorateWithAutosave().
Here is the caller graph for this function:
|
static |
| $source_thread_id | |
| $target_thread_id |
Definition at line 729 of file class.ilForumPostDraft.php.
|
static |
| array | $thread_ids | |
| int | $source_ref_id | |
| int | $target_ref_id |
Definition at line 746 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and ilObjForum\lookupForumIdByRefId().
Here is the call graph for this function:
|
static |
| $draft_id |
Definition at line 474 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\addThreadObject(), ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\cancelPostObject(), ilObjForumGUI\checkDraftAccess(), ilObjForumGUI\deliverDraftZipFileObject(), ilFileDataForumDrafts\deliverZipFile(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilObjMediaObject\getParentObjectIdForUsage(), ilForumThreadFormGUI\initForm(), ilObjForumGUI\publishThreadDraftObject(), ilForumDraftsHistory\rollbackAutosave(), ilObjForumGUI\saveThreadAsDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
Here is the caller graph for this function:
|
static |
| $history_id |
| ilException |
Definition at line 497 of file class.ilForumPostDraft.php.
|
staticprotected |
| $draft | ilForumPostDraft |
| $row | array |
Definition at line 88 of file class.ilForumPostDraft.php.
References setDraftId(), setForumId(), setNotify(), setPostAuthorId(), setPostDate(), setPostDisplayUserId(), setPostId(), setPostMessage(), setPostNotify(), setPostSubject(), setPostUpdate(), setPostUserAlias(), setThreadId(), and setUpdateUserId().
Referenced by readDraft(), and readDrafts().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 352 of file class.ilForumPostDraft.php.
References $res, 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 368 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $res, and populateWithDatabaseRecord().
Here is the call graph for this function:| ilForumPostDraft::saveDraft | ( | ) |
Definition at line 517 of file class.ilForumPostDraft.php.
| ilForumPostDraft::setDraftId | ( | $draft_id | ) |
| int | $draft_id |
Definition at line 133 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by __construct(), and populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setForumId | ( | $forum_id | ) |
| int | $forum_id |
Definition at line 165 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 325 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 293 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 229 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 309 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 149 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 213 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 117 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 197 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 245 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 277 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 181 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_id |
Definition at line 261 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 542 of file class.ilForumPostDraft.php.
|
protected |
Definition at line 13 of file class.ilForumPostDraft.php.
Referenced by __construct(), getDraftId(), and setDraftId().
|
staticprotected |
Definition at line 82 of file class.ilForumPostDraft.php.
|
protected |
Definition at line 21 of file class.ilForumPostDraft.php.
Referenced by getForumId(), and setForumId().
|
staticprotected |
Definition at line 77 of file class.ilForumPostDraft.php.
|
staticprivate |
Definition at line 71 of file class.ilForumPostDraft.php.
|
protected |
Definition at line 62 of file class.ilForumPostDraft.php.
Referenced by getNotify(), and setNotify().
|
protected |
Definition at line 53 of file class.ilForumPostDraft.php.
Referenced by getPostAuthorId(), and setPostAuthorId().
|
protected |
Definition at line 37 of file class.ilForumPostDraft.php.
Referenced by getPostDate(), and setPostDate().
|
protected |
Definition at line 57 of file class.ilForumPostDraft.php.
Referenced by getPostDisplayUserId(), and setPostDisplayUserId().
|
protected |
Definition at line 17 of file class.ilForumPostDraft.php.
Referenced by __construct(), getPostId(), and setPostId().
|
protected |
Definition at line 33 of file class.ilForumPostDraft.php.
Referenced by getPostMessage(), and setPostMessage().
|
protected |
Definition at line 66 of file class.ilForumPostDraft.php.
Referenced by getPostNotify(), and setPostNotify().
|
protected |
Definition at line 29 of file class.ilForumPostDraft.php.
Referenced by getPostSubject(), and setPostSubject().
|
protected |
Definition at line 41 of file class.ilForumPostDraft.php.
Referenced by getPostUpdate(), and setPostUpdate().
|
protected |
Definition at line 49 of file class.ilForumPostDraft.php.
Referenced by getPostUserAlias(), and setPostUserAlias().
|
protected |
Definition at line 25 of file class.ilForumPostDraft.php.
Referenced by getThreadId(), and setThreadId().
|
protected |
Definition at line 45 of file class.ilForumPostDraft.php.
Referenced by getUpdateUserId(), and setUpdateUserId().
| const ilForumPostDraft::MEDIAOBJECT_TYPE = 'frm~d:html' |
Definition at line 9 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\cancelDraftObject(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), and ilForumDraftsHistory\rollbackAutosave().