|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class ilForumPostDraft. More...
Collaboration diagram for ilForumPostDraft:Static Public Member Functions | |
| static | getSortedDrafts (int $usrId, int $threadId, int $sorting=ilForumProperties::VIEW_DATE_ASC) |
| static | getDraftInstancesByUserId (int $user_id) |
| static | newInstanceByDraftId (int $draft_id) |
| static | deleteMobsOfDraft (int $draft_id) |
| static | deleteDraftsByUserId (int $user_id) |
| static | isSavePostDraftAllowed () |
| static | isAutoSavePostDraftAllowed () |
| static | lookupAutosaveInterval () |
| static | getDraftsStatisticsByRefId (int $ref_id) |
| static | moveDraftsByMergedThreads (int $source_thread_id, int $target_thread_id) |
| static | getThreadDraftData (int $post_author_id, int $forum_id) |
| static | createDraftBackup (int $draft_id) |
Data Fields | |
| const | MEDIAOBJECT_TYPE = 'frm~d:html' |
| const | NO_RCID = '-' |
Protected Member Functions | |
| readDraft () | |
Static Protected Member Functions | |
| static | populateWithDatabaseRecord (ilForumPostDraft $draft, array $row) |
| static | readDrafts (int $user_id) |
Private Attributes | |
| ilDBInterface | $db |
| int | $draft_id = 0 |
| int | $post_id = 0 |
| int | $forum_id = 0 |
| int | $thread_id = 0 |
| string | $post_subject = '' |
| string | $post_message = '' |
| string | $post_date = '0000-00-00 00:00:00' |
| string | $post_update = '0000-00-00 00:00:00' |
| int | $update_user_id = 0 |
| string | $post_user_alias = '' |
| int | $post_author_id = 0 |
| int | $post_display_user_id = 0 |
| bool | $notify = false |
| bool | $post_notify = false |
| string | $rcid = '' |
Static Private Attributes | |
| static array | $instances = [] |
| static array | $forum_statistics_cache = [] |
| static array | $drafts_settings_cache = [] |
Class ilForumPostDraft.
Definition at line 25 of file class.ilForumPostDraft.php.
| ilForumPostDraft::__construct | ( | int | $user_id = 0, |
| int | $post_id = 0, |
||
| int | $draft_id = 0 |
||
| ) |
Definition at line 52 of file class.ilForumPostDraft.php.
References $DIC, readDraft(), setDraftId(), setPostAuthorId(), and setPostId().
Here is the call graph for this function:
|
static |
Definition at line 618 of file class.ilForumPostDraft.php.
References $DIC, $draft_id, $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 391 of file class.ilForumPostDraft.php.
References getDraftId().
Referenced by ilObjForumGUI\createThread(), and ilObjForumGUI\savePostObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumPostDraft::deleteDraftsByDraftIds | ( | array | $draft_ids = [] | ) |
| ilForumPostDraft::deleteDraftsByPostIds | ( | array | $post_ids = [] | ) |
| int[] | $post_ids |
Definition at line 415 of file class.ilForumPostDraft.php.
References $res, and ILIAS\Repository\int().
Here is the call graph for this function:
|
static |
Definition at line 475 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Here is the call graph for this function:
|
static |
Definition at line 400 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 115 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by ilObjForumGUI\createThread(), ilObjForumGUI\createTopLevelPostObject(), deleteDraft(), readDraft(), and updateDraft().
Here is the caller graph for this function:
|
static |
Definition at line 319 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjForumGUI\deleteThreadDraftsObject(), and ilForumDraftsDerivedTaskProvider\getTasks().
Here is the caller graph for this function:
|
static |
Definition at line 548 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $ref_id, $res, ILIAS\Repository\int(), and ilObjForum\lookupForumIdByRefId().
Referenced by ilObjForumListGUI\getProperties(), and ilForumTopicTableGUI\initMergeThreadsTable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumPostDraft::getForumId | ( | ) |
Definition at line 135 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostAuthorId | ( | ) |
Definition at line 215 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by ilObjForumGUI\createThread(), readDraft(), and saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostDate | ( | ) |
| ilForumPostDraft::getPostDisplayUserId | ( | ) |
Definition at line 225 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostId | ( | ) |
Definition at line 125 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostMessage | ( | ) |
Definition at line 165 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by saveDraft(), and updateDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostSubject | ( | ) |
Definition at line 155 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by saveDraft(), and updateDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostUpdate | ( | ) |
| ilForumPostDraft::getPostUserAlias | ( | ) |
Definition at line 205 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by ilObjForumGUI\createThread(), saveDraft(), and updateDraft().
Here is the caller graph for this function:| ilForumPostDraft::getRCID | ( | ) |
Definition at line 85 of file class.ilForumPostDraft.php.
References $rcid.
Referenced by ilObjForumGUI\createThread(), and updateDraft().
Here is the caller graph for this function:
|
static |
Definition at line 274 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $res, ilForumProperties\VIEW_DATE_DESC, and ilForumProperties\VIEW_TREE.
Referenced by ilObjForumGUI\viewThreadObject().
Here is the caller graph for this function:
|
static |
Definition at line 591 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\addDraftButtonIfDraftsExists().
Here is the caller graph for this function:| ilForumPostDraft::getThreadId | ( | ) |
Definition at line 145 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::getUpdateUserId | ( | ) |
Definition at line 195 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by updateDraft().
Here is the caller graph for this function:
|
static |
Definition at line 521 of file class.ilForumPostDraft.php.
References $DIC, and ILIAS\Repository\int().
Referenced by ilForumThreadFormGUI\addAutosaveInfo(), ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\decorateWithAutosave(), ilObjForumGUI\doHistoryCheck(), ilObjForumGUI\editDraftObject(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilObjForumGUI\initReplyEditForm(), ilObjForumGUI\saveAsDraftObject(), and ilObjForumGUI\savePostObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumPostDraft::isNotificationEnabled | ( | ) |
Definition at line 105 of file class.ilForumPostDraft.php.
References $notify.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::isPostNotificationEnabled | ( | ) |
Definition at line 95 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
Here is the caller graph for this function:
|
static |
Definition at line 511 of file class.ilForumPostDraft.php.
References $DIC.
Referenced by ilForumThreadObjectTableGUI\__construct(), ilForumTopicTableGUI\__construct(), ilObjForumGUI\addEmptyThreadObject(), ilObjForumGUI\addThreadObject(), ilObjForumGUI\createTopLevelPostObject(), ilObjForumGUI\deleteSelectedDraft(), ilObjForumGUI\editThreadDraftObject(), ilForumThreadFormGUI\generateDefaultForm(), ilObjForumGUI\getContent(), ilObjForumListGUI\getProperties(), ilObjForumGUI\initReplyEditForm(), ilObjForumGUI\publishDraftObject(), ilObjForumGUI\publishThreadDraftObject(), ilObjForumGUI\saveAsDraftObject(), ilObjForumGUI\savePostObject(), ilObjForumGUI\saveThreadAsDraftObject(), ilObjForumGUI\updateDraftObject(), ilObjForumGUI\updateThreadDraftObject(), and ilObjForumGUI\viewThreadObject().
Here is the caller graph for this function:
|
static |
Definition at line 540 of file class.ilForumPostDraft.php.
Referenced by ilForumThreadFormGUI\addAutosaveInfo(), ilObjForumGUI\decorateWithAutosave(), and ilObjForumGUI\initReplyEditForm().
Here is the caller graph for this function:
|
static |
Definition at line 579 of file class.ilForumPostDraft.php.
|
static |
Definition at line 328 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\addEmptyThreadObject(), ilForumThreadFormGUI\addFileUploadInput(), ilObjForumGUI\addThreadObject(), ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\cancelPostObject(), ilObjMediaObjectAccess\checkAccessMob(), ilObjForumGUI\checkDraftAccess(), ilObjForumGUI\deliverDraftZipFileObject(), ilFileDataForumDraftsLegacyImplementation\deliverZipFile(), ilObjForumGUI\editThreadDraftObject(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilFileDataForumDrafts\getCurrentDraft(), ilFileDataForumDraftsRCImplementation\getDraftById(), ilObjMediaObject\getParentObjectIdForUsage(), ilObjForumGUI\publishThreadDraftObject(), ilForumDraftsHistory\rollbackAutosave(), ilObjForumGUI\saveAsDraftObject(), ilObjForumGUI\saveThreadAsDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 66 of file class.ilForumPostDraft.php.
References setDraftId(), setForumId(), setNotificationStatus(), setPostAuthorId(), setPostDate(), setPostDisplayUserId(), setPostId(), setPostMessage(), setPostNotificationStatus(), setPostSubject(), setPostUpdate(), setPostUserAlias(), setRCID(), setThreadId(), and setUpdateUserId().
Here is the call graph for this function:
|
protected |
Definition at line 235 of file class.ilForumPostDraft.php.
References $res, getDraftId(), and getPostAuthorId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
| ilForumPostDraft::saveDraft | ( | ) |
Definition at line 346 of file class.ilForumPostDraft.php.
References $draft_id, getForumId(), getPostAuthorId(), getPostDisplayUserId(), getPostId(), getPostMessage(), getPostSubject(), getPostUserAlias(), getThreadId(), isNotificationEnabled(), isPostNotificationEnabled(), and setDraftId().
Here is the call graph for this function:| ilForumPostDraft::setDraftId | ( | int | $draft_id | ) |
Definition at line 120 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by __construct(), populateWithDatabaseRecord(), and saveDraft().
Here is the caller graph for this function:| ilForumPostDraft::setForumId | ( | int | $forum_id | ) |
Definition at line 140 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setNotificationStatus | ( | bool | $notify | ) |
Definition at line 110 of file class.ilForumPostDraft.php.
References $notify.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostAuthorId | ( | int | $post_author_id | ) |
Definition at line 220 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by __construct(), and populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostDate | ( | string | $post_date | ) |
Definition at line 180 of file class.ilForumPostDraft.php.
References $post_date.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostDisplayUserId | ( | int | $post_display_user_id | ) |
Definition at line 230 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostId | ( | int | $post_id | ) |
Definition at line 130 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by __construct(), and populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostMessage | ( | string | $post_message | ) |
Definition at line 170 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostNotificationStatus | ( | bool | $post_notify | ) |
Definition at line 100 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostSubject | ( | string | $post_subject | ) |
Definition at line 160 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by populateWithDatabaseRecord(), and ilObjForumGUI\updateDraftObject().
Here is the caller graph for this function:| ilForumPostDraft::setPostUpdate | ( | string | $post_update | ) |
Definition at line 190 of file class.ilForumPostDraft.php.
References $post_update.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostUserAlias | ( | string | $post_user_alias | ) |
Definition at line 210 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setRCID | ( | string | $rcid | ) |
Definition at line 90 of file class.ilForumPostDraft.php.
References $rcid.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setThreadId | ( | int | $thread_id | ) |
Definition at line 150 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setUpdateUserId | ( | int | $update_user_id | ) |
Definition at line 200 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::update | ( | ) |
Definition at line 370 of file class.ilForumPostDraft.php.
References updateDraft().
Here is the call graph for this function:| ilForumPostDraft::updateDraft | ( | ) |
Definition at line 375 of file class.ilForumPostDraft.php.
References getDraftId(), getPostMessage(), getPostSubject(), getPostUserAlias(), getRCID(), and getUpdateUserId().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 35 of file class.ilForumPostDraft.php.
|
private |
Definition at line 36 of file class.ilForumPostDraft.php.
Referenced by createDraftBackup(), getDraftId(), saveDraft(), and setDraftId().
|
staticprivate |
Definition at line 32 of file class.ilForumPostDraft.php.
|
private |
Definition at line 38 of file class.ilForumPostDraft.php.
Referenced by getForumId(), and setForumId().
|
staticprivate |
Definition at line 31 of file class.ilForumPostDraft.php.
|
staticprivate |
Definition at line 30 of file class.ilForumPostDraft.php.
|
private |
Definition at line 48 of file class.ilForumPostDraft.php.
Referenced by isNotificationEnabled(), and setNotificationStatus().
|
private |
Definition at line 46 of file class.ilForumPostDraft.php.
Referenced by getPostAuthorId(), and setPostAuthorId().
|
private |
Definition at line 42 of file class.ilForumPostDraft.php.
Referenced by getPostDate(), and setPostDate().
|
private |
Definition at line 47 of file class.ilForumPostDraft.php.
Referenced by getPostDisplayUserId(), and setPostDisplayUserId().
|
private |
Definition at line 37 of file class.ilForumPostDraft.php.
Referenced by getPostId(), and setPostId().
|
private |
Definition at line 41 of file class.ilForumPostDraft.php.
Referenced by getPostMessage(), and setPostMessage().
|
private |
Definition at line 49 of file class.ilForumPostDraft.php.
Referenced by isPostNotificationEnabled(), and setPostNotificationStatus().
|
private |
Definition at line 40 of file class.ilForumPostDraft.php.
Referenced by getPostSubject(), and setPostSubject().
|
private |
Definition at line 43 of file class.ilForumPostDraft.php.
Referenced by getPostUpdate(), and setPostUpdate().
|
private |
Definition at line 45 of file class.ilForumPostDraft.php.
Referenced by getPostUserAlias(), and setPostUserAlias().
|
private |
Definition at line 50 of file class.ilForumPostDraft.php.
|
private |
Definition at line 39 of file class.ilForumPostDraft.php.
Referenced by getThreadId(), and setThreadId().
|
private |
Definition at line 44 of file class.ilForumPostDraft.php.
Referenced by getUpdateUserId(), and setUpdateUserId().
| const ilForumPostDraft::MEDIAOBJECT_TYPE = 'frm~d:html' |
Definition at line 27 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\cancelDraftObject(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), and ilForumDraftsHistory\rollbackAutosave().
| const ilForumPostDraft::NO_RCID = '-' |
Definition at line 34 of file class.ilForumPostDraft.php.