ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilForumPostDraft. More...
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 | 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 332 of file class.ilForumPostDraft.php.
References $DIC, $draft_id, $post_id, readDraft(), setDraftId(), setPostAuthorId(), and setPostId().
|
static |
$draft_id |
Definition at line 744 of file class.ilForumPostDraft.php.
References $DIC, $draft_id, $ilDB, $res, $row, ilForumDraftsHistory\MEDIAOBJECT_TYPE, and ilForumUtil\moveMediaObjects().
Referenced by ilObjForumGUI\doHistoryCheck(), and ilObjForumGUI\restoreFromHistoryObject().
ilForumPostDraft::deleteDraft | ( | ) |
Definition at line 502 of file class.ilForumPostDraft.php.
References getDraftId().
Referenced by ilObjForumGUI\createThread(), and ilObjForumGUI\publishDraftObject().
ilForumPostDraft::deleteDraftsByDraftIds | ( | array | $draft_ids = array() | ) |
array | $draft_ids |
Definition at line 552 of file class.ilForumPostDraft.php.
References $draft_id.
ilForumPostDraft::deleteDraftsByPostIds | ( | array | $post_ids = array() | ) |
array | $post_ids |
Definition at line 530 of file class.ilForumPostDraft.php.
References $draft_id, $res, and $row.
|
static |
int | $user_id |
Definition at line 568 of file class.ilForumPostDraft.php.
References $DIC, $draft_id, $ilDB, $res, and $row.
|
static |
$draft_id |
Definition at line 514 of file class.ilForumPostDraft.php.
References $draft_id, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and ilObjMediaObject\_removeUsage().
ilForumPostDraft::getDraftId | ( | ) |
Definition at line 122 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by ilObjForumGUI\createThread(), ilObjForumGUI\createTopLevelPostObject(), deleteDraft(), readDraft(), and updateDraft().
|
static |
int | $user_id |
Definition at line 390 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjForumGUI\deleteThreadDraftsObject(), and ilForumPostingDraftsBlockGUI\fillDataSection().
|
static |
$ref_id |
Definition at line 642 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $ilUser, $res, $row, and ilObjForum\lookupForumIdByRefId().
Referenced by ilForumTopicTableGUI\fillRow(), and ilObjForumListGUI\getProperties().
ilForumPostDraft::getForumId | ( | ) |
Definition at line 154 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by saveDraft().
|
static |
$user_id | |
$thread_id |
Definition at line 404 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by ilObjForumGUI\getForumObjects(), ilObjForumGUI\renderDraftContent(), and ilObjForumGUI\renderSplitButton().
ilForumPostDraft::getNotify | ( | ) |
Definition at line 314 of file class.ilForumPostDraft.php.
References $notify.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
ilForumPostDraft::getPostAuthorId | ( | ) |
Definition at line 282 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by ilObjForumGUI\createThread(), readDraft(), and saveDraft().
ilForumPostDraft::getPostDate | ( | ) |
ilForumPostDraft::getPostDisplayUserId | ( | ) |
Definition at line 298 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
ilForumPostDraft::getPostId | ( | ) |
Definition at line 138 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by readDraft(), and saveDraft().
ilForumPostDraft::getPostMessage | ( | ) |
Definition at line 202 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostNotify | ( | ) |
Definition at line 106 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by ilObjForumGUI\createThread(), and saveDraft().
ilForumPostDraft::getPostSubject | ( | ) |
Definition at line 186 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostUpdate | ( | ) |
ilForumPostDraft::getPostUserAlias | ( | ) |
Definition at line 266 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by ilObjForumGUI\createThread(), saveDraft(), and updateDraft().
|
static |
$post_author_id | |
$forum_id |
Definition at line 717 of file class.ilForumPostDraft.php.
References $DIC, $forum_id, $ilDB, $post_author_id, $res, and $row.
Referenced by ilObjForumGUI\getContent().
ilForumPostDraft::getThreadId | ( | ) |
Definition at line 170 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by saveDraft().
ilForumPostDraft::getUpdateUserId | ( | ) |
|
static |
Definition at line 615 of file class.ilForumPostDraft.php.
References $DIC.
Referenced by ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\decorateWithAutosave(), ilObjForumGUI\doHistoryCheck(), ilObjForumGUI\editDraftObject(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilObjForumGUI\getCensorshipFormHTML(), ilObjForumGUI\publishDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
|
static |
Definition at line 603 of file class.ilForumPostDraft.php.
References $DIC.
Referenced by ilForumTopicTableGUI\__construct(), ilObjForumGUI\addThreadObject(), ilObjForumGUI\createTopLevelPostObject(), ilObjForumGUI\deleteSelectedDraft(), ilObjForumGUI\editDraftObject(), ilObjForumGUI\editThreadDraftObject(), ilObjForumGUI\getCensorshipFormHTML(), ilObjForumGUI\getContent(), ilObjForumGUI\getForumObjects(), ilObjForumListGUI\getProperties(), ilForumThreadFormGUI\initForm(), ilObjForumGUI\publishDraftObject(), ilObjForumGUI\publishThreadDraftObject(), ilObjForumGUI\saveThreadAsDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
|
static |
Definition at line 630 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\decorateWithAutosave(), and ilObjForumGUI\getCensorshipFormHTML().
|
static |
$source_thread_id | |
$target_thread_id |
Definition at line 676 of file class.ilForumPostDraft.php.
|
static |
array | $thread_ids | |
int | $source_ref_id | |
int | $target_ref_id |
Definition at line 693 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, and ilObjForum\lookupForumIdByRefId().
|
static |
$draft_id |
Definition at line 421 of file class.ilForumPostDraft.php.
References $DIC, $draft_id, $ilDB, $res, and $row.
Referenced by ilObjForumGUI\addThreadObject(), ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\cancelPostObject(), ilObjMediaObjectAccess\checkAccessMob(), ilObjForumGUI\checkDraftAccess(), ilObjForumGUI\deliverDraftZipFileObject(), ilFileDataForumDrafts\deliverZipFile(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilObjMediaObject\getParentObjectIdForUsage(), ilForumThreadFormGUI\initForm(), ilObjForumGUI\publishThreadDraftObject(), ilForumDraftsHistory\rollbackAutosave(), ilObjForumGUI\saveThreadAsDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
|
static |
$history_id |
ilException |
Definition at line 444 of file class.ilForumPostDraft.php.
References $DIC, $ilDB, $res, and $row.
|
staticprotected |
$draft | ilForumPostDraft |
$row | array |
Definition at line 85 of file class.ilForumPostDraft.php.
References setDraftId(), setForumId(), setNotify(), setPostAuthorId(), setPostDate(), setPostDisplayUserId(), setPostId(), setPostMessage(), setPostNotify(), setPostSubject(), setPostUpdate(), setPostUserAlias(), setThreadId(), and setUpdateUserId().
|
protected |
Definition at line 349 of file class.ilForumPostDraft.php.
References $res, $row, getDraftId(), getPostAuthorId(), and getPostId().
Referenced by __construct().
|
staticprotected |
ilForumPostDraft::saveDraft | ( | ) |
Definition at line 464 of file class.ilForumPostDraft.php.
References $draft_id, $post_date, getForumId(), getNotify(), getPostAuthorId(), getPostDisplayUserId(), getPostId(), getPostMessage(), getPostNotify(), getPostSubject(), getPostUserAlias(), getThreadId(), and setDraftId().
ilForumPostDraft::setDraftId | ( | $draft_id | ) |
int | $draft_id |
Definition at line 130 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by __construct(), populateWithDatabaseRecord(), and saveDraft().
ilForumPostDraft::setForumId | ( | $forum_id | ) |
int | $forum_id |
Definition at line 162 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setNotify | ( | $notify | ) |
int | $notify |
Definition at line 322 of file class.ilForumPostDraft.php.
References $notify.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostAuthorId | ( | $post_author_id | ) |
int | $post_author_id |
Definition at line 290 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by __construct(), and populateWithDatabaseRecord().
ilForumPostDraft::setPostDate | ( | $post_date | ) |
string | $post_date |
Definition at line 226 of file class.ilForumPostDraft.php.
References $post_date.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostDisplayUserId | ( | $post_display_user_id | ) |
int | $post_display_user_id |
Definition at line 306 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostId | ( | $post_id | ) |
int | $post_id |
Definition at line 146 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by __construct(), and populateWithDatabaseRecord().
ilForumPostDraft::setPostMessage | ( | $post_message | ) |
string | $post_message |
Definition at line 210 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostNotify | ( | $post_notify | ) |
int | $post_notify |
Definition at line 114 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostSubject | ( | $post_subject | ) |
string | $post_subject |
Definition at line 194 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostUpdate | ( | $post_update | ) |
string | $post_update |
Definition at line 242 of file class.ilForumPostDraft.php.
References $post_update.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostUserAlias | ( | $post_user_alias | ) |
string | $post_user_alias |
Definition at line 274 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setThreadId | ( | $thread_id | ) |
int | $thread_id |
Definition at line 178 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setUpdateUserId | ( | $update_user_id | ) |
int | $update_user_id |
Definition at line 258 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::updateDraft | ( | ) |
Definition at line 489 of file class.ilForumPostDraft.php.
References getDraftId(), getPostMessage(), getPostSubject(), and getPostUserAlias().
|
protected |
Definition at line 13 of file class.ilForumPostDraft.php.
Referenced by __construct(), createDraftBackup(), deleteDraftsByDraftIds(), deleteDraftsByPostIds(), deleteDraftsByUserId(), deleteMobsOfDraft(), getDraftId(), newInstanceByDraftId(), saveDraft(), and setDraftId().
|
staticprotected |
Definition at line 79 of file class.ilForumPostDraft.php.
|
protected |
Definition at line 21 of file class.ilForumPostDraft.php.
Referenced by getForumId(), getThreadDraftData(), and setForumId().
|
staticprotected |
Definition at line 74 of file class.ilForumPostDraft.php.
|
staticprivate |
Definition at line 68 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(), getThreadDraftData(), and setPostAuthorId().
|
protected |
Definition at line 37 of file class.ilForumPostDraft.php.
Referenced by getPostDate(), saveDraft(), 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 63 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 getInstancesByUserIdAndThreadId(), 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().