|
ILIAS
release_8 Revision v8.24
|
Class ilForumPostDraft. More...
Collaboration diagram for ilForumPostDraft:Public Member Functions | |
| __construct (int $user_id=0, int $post_id=0, int $draft_id=0) | |
| isPostNotificationEnabled () | |
| setPostNotificationStatus (bool $post_notify) | |
| isNotificationEnabled () | |
| setNotificationStatus (bool $notify) | |
| getDraftId () | |
| setDraftId (int $draft_id) | |
| getPostId () | |
| setPostId (int $post_id) | |
| getForumId () | |
| setForumId (int $forum_id) | |
| getThreadId () | |
| setThreadId (int $thread_id) | |
| getPostSubject () | |
| setPostSubject (string $post_subject) | |
| getPostMessage () | |
| setPostMessage (string $post_message) | |
| getPostDate () | |
| setPostDate (string $post_date) | |
| getPostUpdate () | |
| setPostUpdate (string $post_update) | |
| getUpdateUserId () | |
| setUpdateUserId (int $update_user_id) | |
| getPostUserAlias () | |
| setPostUserAlias (string $post_user_alias) | |
| getPostAuthorId () | |
| setPostAuthorId (int $post_author_id) | |
| getPostDisplayUserId () | |
| setPostDisplayUserId (int $post_display_user_id) | |
| saveDraft () | |
| updateDraft () | |
| deleteDraft () | |
| deleteDraftsByPostIds (array $post_ids=[]) | |
| deleteDraftsByDraftIds (array $draft_ids=[]) | |
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' |
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 |
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 50 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 |
Definition at line 596 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 372 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\createThread().
Here is the caller graph for this function:| ilForumPostDraft::deleteDraftsByDraftIds | ( | array | $draft_ids = [] | ) |
| int[] | $draft_ids |
Definition at line 432 of file class.ilForumPostDraft.php.
| ilForumPostDraft::deleteDraftsByPostIds | ( | array | $post_ids = [] | ) |
| int[] | $post_ids |
Definition at line 396 of file class.ilForumPostDraft.php.
References $res, and ILIAS\Repository\int().
Here is the call graph for this function:
|
static |
Definition at line 454 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 381 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 102 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 |
Definition at line 306 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 527 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $ilUser, $ref_id, $res, ILIAS\Repository\int(), and ilObjForum\lookupForumIdByRefId().
Referenced by ilObjForumListGUI\getProperties().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumPostDraft::getForumId | ( | ) |
Definition at line 122 of file class.ilForumPostDraft.php.
References $forum_id.
| ilForumPostDraft::getPostAuthorId | ( | ) |
Definition at line 202 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by ilObjForumGUI\createThread(), ilObjForumGUI\deleteSelectedDraft(), and readDraft().
Here is the caller graph for this function:| ilForumPostDraft::getPostDate | ( | ) |
Definition at line 162 of file class.ilForumPostDraft.php.
References $post_date.
| ilForumPostDraft::getPostDisplayUserId | ( | ) |
Definition at line 212 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 112 of file class.ilForumPostDraft.php.
References $post_id.
| ilForumPostDraft::getPostMessage | ( | ) |
Definition at line 152 of file class.ilForumPostDraft.php.
References $post_message.
| ilForumPostDraft::getPostSubject | ( | ) |
Definition at line 142 of file class.ilForumPostDraft.php.
References $post_subject.
| ilForumPostDraft::getPostUpdate | ( | ) |
Definition at line 172 of file class.ilForumPostDraft.php.
References $post_update.
| ilForumPostDraft::getPostUserAlias | ( | ) |
Definition at line 192 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by ilObjForumGUI\createThread().
Here is the caller graph for this function:
|
static |
Definition at line 261 of file class.ilForumPostDraft.php.
References ilForumProperties\VIEW_DATE_DESC.
Referenced by ilObjForumGUI\viewThreadObject().
Here is the caller graph for this function:
|
static |
Definition at line 569 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\getContent().
Here is the caller graph for this function:| ilForumPostDraft::getThreadId | ( | ) |
Definition at line 132 of file class.ilForumPostDraft.php.
References $thread_id.
| ilForumPostDraft::getUpdateUserId | ( | ) |
Definition at line 182 of file class.ilForumPostDraft.php.
References $update_user_id.
|
static |
Definition at line 500 of file class.ilForumPostDraft.php.
References $DIC, and ILIAS\Repository\int().
Referenced by 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 92 of file class.ilForumPostDraft.php.
References $notify.
Referenced by ilObjForumGUI\createThread().
Here is the caller graph for this function:| ilForumPostDraft::isPostNotificationEnabled | ( | ) |
Definition at line 82 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by ilObjForumGUI\createThread().
Here is the caller graph for this function:
|
static |
Definition at line 490 of file class.ilForumPostDraft.php.
References $DIC.
Referenced by 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 519 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\decorateWithAutosave(), and ilObjForumGUI\initReplyEditForm().
Here is the caller graph for this function:
|
static |
Definition at line 557 of file class.ilForumPostDraft.php.
|
static |
Definition at line 315 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\addEmptyThreadObject(), ilForumThreadFormGUI\addFileUploadInput(), ilObjForumGUI\addThreadObject(), ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\cancelPostObject(), ilObjForumGUI\checkDraftAccess(), ilObjForumGUI\deliverDraftZipFileObject(), ilFileDataForumDrafts\deliverZipFile(), ilObjForumGUI\editThreadDraftObject(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilObjForumGUI\publishThreadDraftObject(), ilForumDraftsHistory\rollbackAutosave(), ilObjForumGUI\saveAsDraftObject(), ilObjForumGUI\saveThreadAsDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 64 of file class.ilForumPostDraft.php.
References setDraftId(), setForumId(), setNotificationStatus(), setPostAuthorId(), setPostDate(), setPostDisplayUserId(), setPostId(), setPostMessage(), setPostNotificationStatus(), 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 222 of file class.ilForumPostDraft.php.
References $res, getDraftId(), getPostAuthorId(), and populateWithDatabaseRecord().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Definition at line 235 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $res, and populateWithDatabaseRecord().
Here is the call graph for this function:| ilForumPostDraft::saveDraft | ( | ) |
Definition at line 333 of file class.ilForumPostDraft.php.
| ilForumPostDraft::setDraftId | ( | int | $draft_id | ) |
Definition at line 107 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by __construct(), and populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setForumId | ( | int | $forum_id | ) |
Definition at line 127 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 97 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 207 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 167 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 217 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 117 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 157 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 87 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 147 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setPostUpdate | ( | string | $post_update | ) |
Definition at line 177 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 197 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by populateWithDatabaseRecord().
Here is the caller graph for this function:| ilForumPostDraft::setThreadId | ( | int | $thread_id | ) |
Definition at line 137 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 187 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 357 of file class.ilForumPostDraft.php.
|
private |
Definition at line 34 of file class.ilForumPostDraft.php.
|
private |
Definition at line 35 of file class.ilForumPostDraft.php.
Referenced by __construct(), getDraftId(), and setDraftId().
|
staticprivate |
Definition at line 32 of file class.ilForumPostDraft.php.
|
private |
Definition at line 37 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 47 of file class.ilForumPostDraft.php.
Referenced by isNotificationEnabled(), and setNotificationStatus().
|
private |
Definition at line 45 of file class.ilForumPostDraft.php.
Referenced by getPostAuthorId(), and setPostAuthorId().
|
private |
Definition at line 41 of file class.ilForumPostDraft.php.
Referenced by getPostDate(), and setPostDate().
|
private |
Definition at line 46 of file class.ilForumPostDraft.php.
Referenced by getPostDisplayUserId(), and setPostDisplayUserId().
|
private |
Definition at line 36 of file class.ilForumPostDraft.php.
Referenced by __construct(), getPostId(), and setPostId().
|
private |
Definition at line 40 of file class.ilForumPostDraft.php.
Referenced by getPostMessage(), and setPostMessage().
|
private |
Definition at line 48 of file class.ilForumPostDraft.php.
Referenced by isPostNotificationEnabled(), and setPostNotificationStatus().
|
private |
Definition at line 39 of file class.ilForumPostDraft.php.
Referenced by getPostSubject(), and setPostSubject().
|
private |
Definition at line 42 of file class.ilForumPostDraft.php.
Referenced by getPostUpdate(), and setPostUpdate().
|
private |
Definition at line 44 of file class.ilForumPostDraft.php.
Referenced by getPostUserAlias(), and setPostUserAlias().
|
private |
Definition at line 38 of file class.ilForumPostDraft.php.
Referenced by getThreadId(), and setThreadId().
|
private |
Definition at line 43 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().