ILIAS
release_8 Revision v8.19
|
Class ilForumPostDraft. More...
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, readDraft(), setDraftId(), setPostAuthorId(), and setPostId().
|
static |
Definition at line 596 of file class.ilForumPostDraft.php.
References $DIC, $draft_id, $ilDB, $res, ilForumDraftsHistory\MEDIAOBJECT_TYPE, and ilForumUtil\moveMediaObjects().
Referenced by ilObjForumGUI\doHistoryCheck(), and ilObjForumGUI\restoreFromHistoryObject().
ilForumPostDraft::deleteDraft | ( | ) |
Definition at line 372 of file class.ilForumPostDraft.php.
References getDraftId().
Referenced by ilObjForumGUI\createThread(), and ilObjForumGUI\savePostObject().
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().
|
static |
Definition at line 454 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
|
static |
Definition at line 381 of file class.ilForumPostDraft.php.
References ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and ilObjMediaObject\_removeUsage().
ilForumPostDraft::getDraftId | ( | ) |
Definition at line 102 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by ilObjForumGUI\createThread(), ilObjForumGUI\createTopLevelPostObject(), deleteDraft(), readDraft(), and updateDraft().
|
static |
Definition at line 306 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjForumGUI\deleteThreadDraftsObject(), and ilForumDraftsDerivedTaskProvider\getTasks().
|
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(), and ilForumTopicTableGUI\initMergeThreadsTable().
ilForumPostDraft::getForumId | ( | ) |
Definition at line 122 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by saveDraft().
ilForumPostDraft::getPostAuthorId | ( | ) |
Definition at line 202 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by ilObjForumGUI\createThread(), readDraft(), and saveDraft().
ilForumPostDraft::getPostDate | ( | ) |
ilForumPostDraft::getPostDisplayUserId | ( | ) |
Definition at line 212 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
ilForumPostDraft::getPostId | ( | ) |
Definition at line 112 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by saveDraft().
ilForumPostDraft::getPostMessage | ( | ) |
Definition at line 152 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostSubject | ( | ) |
Definition at line 142 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostUpdate | ( | ) |
ilForumPostDraft::getPostUserAlias | ( | ) |
Definition at line 192 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by ilObjForumGUI\createThread(), saveDraft(), and updateDraft().
|
static |
Definition at line 261 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $res, ilForumProperties\VIEW_DATE_DESC, and ilForumProperties\VIEW_TREE.
Referenced by ilObjForumGUI\viewThreadObject().
|
static |
Definition at line 569 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\getContent().
ilForumPostDraft::getThreadId | ( | ) |
Definition at line 132 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by saveDraft().
ilForumPostDraft::getUpdateUserId | ( | ) |
Definition at line 182 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by updateDraft().
|
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().
ilForumPostDraft::isNotificationEnabled | ( | ) |
Definition at line 92 of file class.ilForumPostDraft.php.
References $notify.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
ilForumPostDraft::isPostNotificationEnabled | ( | ) |
Definition at line 82 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
|
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().
|
static |
Definition at line 519 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\decorateWithAutosave(), and ilObjForumGUI\initReplyEditForm().
|
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(), ilObjMediaObjectAccess\checkAccessMob(), ilObjForumGUI\checkDraftAccess(), ilObjForumGUI\deliverDraftZipFileObject(), ilFileDataForumDrafts\deliverZipFile(), ilObjForumGUI\editThreadDraftObject(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilObjMediaObject\getParentObjectIdForUsage(), ilObjForumGUI\publishThreadDraftObject(), ilForumDraftsHistory\rollbackAutosave(), ilObjForumGUI\saveAsDraftObject(), ilObjForumGUI\saveThreadAsDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
|
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().
|
protected |
Definition at line 222 of file class.ilForumPostDraft.php.
References $res, getDraftId(), and getPostAuthorId().
Referenced by __construct().
|
staticprotected |
ilForumPostDraft::saveDraft | ( | ) |
Definition at line 333 of file class.ilForumPostDraft.php.
References $draft_id, getForumId(), getPostAuthorId(), getPostDisplayUserId(), getPostId(), getPostMessage(), getPostSubject(), getPostUserAlias(), getThreadId(), isNotificationEnabled(), isPostNotificationEnabled(), and setDraftId().
ilForumPostDraft::setDraftId | ( | int | $draft_id | ) |
Definition at line 107 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by __construct(), populateWithDatabaseRecord(), and saveDraft().
ilForumPostDraft::setForumId | ( | int | $forum_id | ) |
Definition at line 127 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setNotificationStatus | ( | bool | $notify | ) |
Definition at line 97 of file class.ilForumPostDraft.php.
References $notify.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostAuthorId | ( | int | $post_author_id | ) |
Definition at line 207 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by __construct(), and populateWithDatabaseRecord().
ilForumPostDraft::setPostDate | ( | string | $post_date | ) |
Definition at line 167 of file class.ilForumPostDraft.php.
References $post_date.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostDisplayUserId | ( | int | $post_display_user_id | ) |
Definition at line 217 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostId | ( | int | $post_id | ) |
Definition at line 117 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by __construct(), and populateWithDatabaseRecord().
ilForumPostDraft::setPostMessage | ( | string | $post_message | ) |
Definition at line 157 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostNotificationStatus | ( | bool | $post_notify | ) |
Definition at line 87 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostSubject | ( | string | $post_subject | ) |
Definition at line 147 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by populateWithDatabaseRecord(), and ilObjForumGUI\updateDraftObject().
ilForumPostDraft::setPostUpdate | ( | string | $post_update | ) |
Definition at line 177 of file class.ilForumPostDraft.php.
References $post_update.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostUserAlias | ( | string | $post_user_alias | ) |
Definition at line 197 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setThreadId | ( | int | $thread_id | ) |
Definition at line 137 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setUpdateUserId | ( | int | $update_user_id | ) |
Definition at line 187 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::updateDraft | ( | ) |
Definition at line 357 of file class.ilForumPostDraft.php.
References getDraftId(), getPostMessage(), getPostSubject(), getPostUserAlias(), and getUpdateUserId().
|
private |
Definition at line 34 of file class.ilForumPostDraft.php.
|
private |
Definition at line 35 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 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 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().