ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Class ilForumPostDraft. More...
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 | readDrafts (int $user_id) |
Static Private Member Functions | |
static | populateWithDatabaseRecord (ilForumPostDraft $draft, array $row) |
Private Attributes | |
readonly 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, $user_id, readDraft(), setDraftId(), setPostAuthorId(), and setPostId().
|
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().
ilForumPostDraft::deleteDraft | ( | ) |
Definition at line 391 of file class.ilForumPostDraft.php.
References getDraftId().
Referenced by ilObjForumGUI\createThread().
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().
|
static |
Definition at line 475 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
|
static |
Definition at line 400 of file class.ilForumPostDraft.php.
References ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and ilObjMediaObject\_removeUsage().
ilForumPostDraft::getDraftId | ( | ) |
Definition at line 115 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by ilObjForumGUI\createThread(), deleteDraft(), ilObjForumGUI\hasDraftAccess(), readDraft(), and updateDraft().
|
static |
Definition at line 319 of file class.ilForumPostDraft.php.
References $user_id.
Referenced by ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjForumGUI\deleteThreadDraftsObject(), and ilForumDraftsDerivedTaskProvider\getTasks().
|
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().
ilForumPostDraft::getForumId | ( | ) |
Definition at line 135 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by saveDraft().
ilForumPostDraft::getPostAuthorId | ( | ) |
Definition at line 215 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by ilObjForumGUI\createThread(), ilObjForumGUI\hasDraftAccess(), readDraft(), and saveDraft().
ilForumPostDraft::getPostDate | ( | ) |
ilForumPostDraft::getPostDisplayUserId | ( | ) |
Definition at line 225 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
ilForumPostDraft::getPostId | ( | ) |
Definition at line 125 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by saveDraft().
ilForumPostDraft::getPostMessage | ( | ) |
Definition at line 165 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostSubject | ( | ) |
Definition at line 155 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostUpdate | ( | ) |
ilForumPostDraft::getPostUserAlias | ( | ) |
Definition at line 205 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by ilObjForumGUI\createThread(), saveDraft(), and updateDraft().
ilForumPostDraft::getRCID | ( | ) |
Definition at line 85 of file class.ilForumPostDraft.php.
References $rcid.
Referenced by ilObjForumGUI\createThread(), and updateDraft().
|
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().
|
static |
Definition at line 591 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\addDraftButtonIfDraftsExists(), ilObjForumGUI\confirmDeleteThreadDraftsObject(), and ILIAS\Forum\Drafts\ForumDraftsTable\initRecords().
ilForumPostDraft::getThreadId | ( | ) |
Definition at line 145 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by saveDraft().
ilForumPostDraft::getUpdateUserId | ( | ) |
Definition at line 195 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by updateDraft().
|
static |
Definition at line 521 of file class.ilForumPostDraft.php.
References $DIC, and ILIAS\Repository\int().
Referenced by ilForumThreadFormGUI\addAutosaveInfo(), ilObjForumGUI\decorateWithAutosave(), ilObjForumGUI\doHistoryCheck(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), and ilObjForumGUI\initReplyEditForm().
ilForumPostDraft::isNotificationEnabled | ( | ) |
Definition at line 105 of file class.ilForumPostDraft.php.
References $notify.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
ilForumPostDraft::isPostNotificationEnabled | ( | ) |
Definition at line 95 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
|
static |
Definition at line 511 of file class.ilForumPostDraft.php.
References $DIC.
Referenced by ilForumTopicTableGUI\__construct(), ilObjForumGUI\addThreadObject(), ilObjForumGUI\autosaveDraftAsyncObject(), ilObjForumGUI\autosaveThreadDraftAsyncObject(), ilObjForumGUI\createTopLevelPostObject(), ilObjForumGUI\editThreadDraftObject(), ilForumThreadFormGUI\generateDefaultForm(), ilObjForumGUI\getContent(), ilObjForumListGUI\getProperties(), ilObjForumGUI\initReplyEditForm(), ilObjForumGUI\publishDraftObject(), ilObjForumGUI\publishThreadDraftObject(), ilObjForumGUI\restoreFromHistoryObject(), ilObjForumGUI\saveAsDraftObject(), ilObjForumGUI\saveThreadAsDraftObject(), ilObjForumGUI\updateDraftObject(), ilObjForumGUI\updateThreadDraftObject(), and ilObjForumGUI\viewThreadObject().
|
static |
Definition at line 540 of file class.ilForumPostDraft.php.
Referenced by ilForumThreadFormGUI\addAutosaveInfo(), ilObjForumGUI\decorateWithAutosave(), and ilObjForumGUI\initReplyEditForm().
|
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 ilForumThreadFormGUI\addFileUploadInput(), ilObjForumGUI\addThreadObject(), ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\cancelPostObject(), ilObjMediaObjectAccess\checkAccessMob(), ilMobStakeholder\checkAccessMobUsage(), ilObjForumGUI\checkDraftAccess(), ilObjForumGUI\deliverDraftZipFileObject(), ilObjForumGUI\editThreadDraftObject(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilFileDataForumDraftsRCImplementation\getDraftById(), ilObjMediaObject\getParentObjectIdForUsage(), ilObjForumGUI\hasDraftAccess(), ilObjForumGUI\publishThreadDraftObject(), ilForumDraftsHistory\rollbackAutosave(), ilObjForumGUI\saveAsDraftObject(), ilObjForumGUI\saveThreadAsDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
|
staticprivate |
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().
|
protected |
Definition at line 235 of file class.ilForumPostDraft.php.
References $res, getDraftId(), and getPostAuthorId().
Referenced by __construct().
|
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().
ilForumPostDraft::setDraftId | ( | int | $draft_id | ) |
Definition at line 120 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by __construct(), populateWithDatabaseRecord(), and saveDraft().
ilForumPostDraft::setForumId | ( | int | $forum_id | ) |
Definition at line 140 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setNotificationStatus | ( | bool | $notify | ) |
Definition at line 110 of file class.ilForumPostDraft.php.
References $notify.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostAuthorId | ( | int | $post_author_id | ) |
Definition at line 220 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by __construct(), and populateWithDatabaseRecord().
ilForumPostDraft::setPostDate | ( | string | $post_date | ) |
Definition at line 180 of file class.ilForumPostDraft.php.
References $post_date.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostDisplayUserId | ( | int | $post_display_user_id | ) |
Definition at line 230 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostId | ( | int | $post_id | ) |
Definition at line 130 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by __construct(), and populateWithDatabaseRecord().
ilForumPostDraft::setPostMessage | ( | string | $post_message | ) |
Definition at line 170 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostNotificationStatus | ( | bool | $post_notify | ) |
Definition at line 100 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostSubject | ( | string | $post_subject | ) |
Definition at line 160 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostUpdate | ( | string | $post_update | ) |
Definition at line 190 of file class.ilForumPostDraft.php.
References $post_update.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostUserAlias | ( | string | $post_user_alias | ) |
Definition at line 210 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setRCID | ( | string | $rcid | ) |
Definition at line 90 of file class.ilForumPostDraft.php.
References $rcid.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setThreadId | ( | int | $thread_id | ) |
Definition at line 150 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setUpdateUserId | ( | int | $update_user_id | ) |
Definition at line 200 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::update | ( | ) |
Definition at line 370 of file class.ilForumPostDraft.php.
References updateDraft().
ilForumPostDraft::updateDraft | ( | ) |
Definition at line 375 of file class.ilForumPostDraft.php.
References getDraftId(), getPostMessage(), getPostSubject(), getPostUserAlias(), getRCID(), and getUpdateUserId().
Referenced by update().
|
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.