ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 () | |
deleteDraftsByDraftIds (array $draft_ids=array()) | |
Static Public Member Functions | |
static | getDraftInstancesByUserId ($user_id) |
static | getInstancesByUserIdAndThreadId ($user_id, $thread_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 8 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 333 of file class.ilForumPostDraft.php.
References $draft_id, $post_id, readDraft(), setDraftId(), setPostAuthorId(), and setPostId().
|
static |
$draft_id |
Definition at line 728 of file class.ilForumPostDraft.php.
References $draft_id, $ilDB, $res, $row, array, ilForumDraftsHistory\MEDIAOBJECT_TYPE, and ilForumUtil\moveMediaObjects().
Referenced by ilObjForumGUI\doHistoryCheck(), and ilObjForumGUI\restoreFromHistoryObject().
ilForumPostDraft::deleteDraft | ( | ) |
Definition at line 513 of file class.ilForumPostDraft.php.
References $ilDB, array, and getDraftId().
Referenced by ilObjForumGUI\publishDraftObject().
array | $draft_ids |
Definition at line 543 of file class.ilForumPostDraft.php.
References $draft_id, and $ilDB.
|
static |
int | $user_id |
Definition at line 562 of file class.ilForumPostDraft.php.
References $draft_id, $ilDB, $res, $row, and array.
|
static |
$draft_id |
Definition at line 524 of file class.ilForumPostDraft.php.
References $draft_id, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and ilObjMediaObject\_removeUsage().
ilForumPostDraft::getDraftId | ( | ) |
Definition at line 123 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by ilObjForumGUI\createTopLevelPostObject(), deleteDraft(), readDraft(), and updateDraft().
|
static |
int | $user_id |
Definition at line 388 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjForumGUI\deleteThreadDraftsObject(), and ilForumPostingDraftsBlockGUI\fillDataSection().
|
static |
$ref_id |
Definition at line 635 of file class.ilForumPostDraft.php.
References $ilDB, $ilUser, $ref_id, $res, $row, array, and ilObjForum\lookupForumIdByRefId().
Referenced by ilObjForumListGUI\init(), and ilForumTopicTableGUI\initMergeThreadsTable().
ilForumPostDraft::getForumId | ( | ) |
Definition at line 155 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by saveDraft().
|
static |
$user_id | |
$thread_id |
Definition at line 403 of file class.ilForumPostDraft.php.
References $draft_id, $ilDB, $res, $row, $thread_id, and array.
Referenced by ilObjForumGUI\autosaveThreadDraftAsyncObject(), ilObjForumGUI\getForumObjects(), and ilObjForumGUI\getSubTabs().
ilForumPostDraft::getNotify | ( | ) |
Definition at line 315 of file class.ilForumPostDraft.php.
References $notify.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostAuthorId | ( | ) |
Definition at line 283 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by ilObjForumGUI\checkDraftAccess(), ilObjForumGUI\deleteSelectedDraft(), readDraft(), and saveDraft().
ilForumPostDraft::getPostDate | ( | ) |
ilForumPostDraft::getPostDisplayUserId | ( | ) |
Definition at line 299 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostId | ( | ) |
Definition at line 139 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by readDraft(), and saveDraft().
ilForumPostDraft::getPostMessage | ( | ) |
Definition at line 203 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostNotify | ( | ) |
Definition at line 107 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostSubject | ( | ) |
Definition at line 187 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by saveDraft(), and updateDraft().
ilForumPostDraft::getPostUpdate | ( | ) |
ilForumPostDraft::getPostUserAlias | ( | ) |
Definition at line 267 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by saveDraft(), and updateDraft().
|
static |
$post_author_id | |
$forum_id |
Definition at line 703 of file class.ilForumPostDraft.php.
References $forum_id, $ilDB, $post_author_id, $res, $row, and array.
Referenced by ilObjForumGUI\getSubTabs().
ilForumPostDraft::getThreadId | ( | ) |
Definition at line 171 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by saveDraft().
ilForumPostDraft::getUpdateUserId | ( | ) |
Definition at line 251 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by updateDraft().
|
static |
Definition at line 605 of file class.ilForumPostDraft.php.
References $ilSetting.
Referenced by ilObjForumGUI\addAutosave(), ilObjForumGUI\autosaveDraftAsyncObject(), ilObjForumGUI\autosaveThreadDraftAsyncObject(), ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\doHistoryCheck(), ilObjForumGUI\editDraftObject(), ilObjForumGUI\publishDraftObject(), and ilObjForumGUI\restoreFromHistoryObject().
|
static |
Definition at line 592 of file class.ilForumPostDraft.php.
References $ilSetting.
Referenced by ilObjForumGUI\cancelDraftObject(), ilObjForumGUI\createThreadObject(), ilObjForumGUI\createTopLevelPostObject(), ilObjForumGUI\deleteSelectedDraft(), ilObjForumGUI\deleteThreadDraftsObject(), ilObjForumGUI\editDraftObject(), ilObjForumGUI\getForumObjects(), ilObjForumGUI\getSubTabs(), ilObjForumListGUI\init(), ilObjForumGUI\isWritingWithPseudonymAllowed(), ilObjForumGUI\publishDraftObject(), and ilObjForumGUI\restoreFromHistoryObject().
|
static |
Definition at line 622 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\addAutosave(), and ilObjForumGUI\cancelDraftObject().
|
static |
$source_thread_id | |
$target_thread_id |
Definition at line 666 of file class.ilForumPostDraft.php.
|
static |
array | $thread_ids | |
int | $source_ref_id | |
int | $target_ref_id |
Definition at line 681 of file class.ilForumPostDraft.php.
References $ilDB, array, and ilObjForum\lookupForumIdByRefId().
|
staticprotected |
$draft | ilForumPostDraft |
$row | array |
Definition at line 86 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 347 of file class.ilForumPostDraft.php.
References $ilDB, $res, $row, array, getDraftId(), getPostAuthorId(), and getPostId().
Referenced by __construct().
|
staticprotected |
ilForumPostDraft::saveDraft | ( | ) |
Definition at line 469 of file class.ilForumPostDraft.php.
References $draft_id, $ilDB, $post_date, array, date, getForumId(), getNotify(), getPostAuthorId(), getPostDisplayUserId(), getPostId(), getPostMessage(), getPostNotify(), getPostSubject(), getPostUserAlias(), getThreadId(), and setDraftId().
ilForumPostDraft::setDraftId | ( | $draft_id | ) |
int | $draft_id |
Definition at line 131 of file class.ilForumPostDraft.php.
References $draft_id.
Referenced by __construct(), populateWithDatabaseRecord(), and saveDraft().
ilForumPostDraft::setForumId | ( | $forum_id | ) |
int | $forum_id |
Definition at line 163 of file class.ilForumPostDraft.php.
References $forum_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setNotify | ( | $notify | ) |
int | $notify |
Definition at line 323 of file class.ilForumPostDraft.php.
References $notify.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostAuthorId | ( | $post_author_id | ) |
int | $post_author_id |
Definition at line 291 of file class.ilForumPostDraft.php.
References $post_author_id.
Referenced by __construct(), and populateWithDatabaseRecord().
ilForumPostDraft::setPostDate | ( | $post_date | ) |
string | $post_date |
Definition at line 227 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 307 of file class.ilForumPostDraft.php.
References $post_display_user_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostId | ( | $post_id | ) |
int | $post_id |
Definition at line 147 of file class.ilForumPostDraft.php.
References $post_id.
Referenced by __construct(), and populateWithDatabaseRecord().
ilForumPostDraft::setPostMessage | ( | $post_message | ) |
string | $post_message |
Definition at line 211 of file class.ilForumPostDraft.php.
References $post_message.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostNotify | ( | $post_notify | ) |
int | $post_notify |
Definition at line 115 of file class.ilForumPostDraft.php.
References $post_notify.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostSubject | ( | $post_subject | ) |
string | $post_subject |
Definition at line 195 of file class.ilForumPostDraft.php.
References $post_subject.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostUpdate | ( | $post_update | ) |
string | $post_update |
Definition at line 243 of file class.ilForumPostDraft.php.
References $post_update.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setPostUserAlias | ( | $post_user_alias | ) |
string | $post_user_alias |
Definition at line 275 of file class.ilForumPostDraft.php.
References $post_user_alias.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setThreadId | ( | $thread_id | ) |
int | $thread_id |
Definition at line 179 of file class.ilForumPostDraft.php.
References $thread_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::setUpdateUserId | ( | $update_user_id | ) |
int | $update_user |
Definition at line 259 of file class.ilForumPostDraft.php.
References $update_user_id.
Referenced by populateWithDatabaseRecord().
ilForumPostDraft::updateDraft | ( | ) |
Definition at line 496 of file class.ilForumPostDraft.php.
References $ilDB, array, date, getDraftId(), getNotify(), getPostDisplayUserId(), getPostMessage(), getPostNotify(), getPostSubject(), getPostUserAlias(), and getUpdateUserId().
|
protected |
Definition at line 14 of file class.ilForumPostDraft.php.
Referenced by __construct(), createDraftBackup(), deleteDraftsByDraftIds(), deleteDraftsByUserId(), deleteMobsOfDraft(), getDraftId(), getInstancesByUserIdAndThreadId(), saveDraft(), and setDraftId().
|
staticprotected |
Definition at line 80 of file class.ilForumPostDraft.php.
|
protected |
Definition at line 22 of file class.ilForumPostDraft.php.
Referenced by getForumId(), getThreadDraftData(), and setForumId().
|
staticprotected |
Definition at line 75 of file class.ilForumPostDraft.php.
|
staticprivate |
Definition at line 69 of file class.ilForumPostDraft.php.
|
protected |
Definition at line 63 of file class.ilForumPostDraft.php.
Referenced by getNotify(), and setNotify().
|
protected |
Definition at line 54 of file class.ilForumPostDraft.php.
Referenced by getPostAuthorId(), getThreadDraftData(), and setPostAuthorId().
|
protected |
Definition at line 38 of file class.ilForumPostDraft.php.
Referenced by getPostDate(), saveDraft(), and setPostDate().
|
protected |
Definition at line 58 of file class.ilForumPostDraft.php.
Referenced by getPostDisplayUserId(), and setPostDisplayUserId().
|
protected |
Definition at line 18 of file class.ilForumPostDraft.php.
Referenced by __construct(), getPostId(), and setPostId().
|
protected |
Definition at line 34 of file class.ilForumPostDraft.php.
Referenced by getPostMessage(), and setPostMessage().
|
protected |
Definition at line 64 of file class.ilForumPostDraft.php.
Referenced by getPostNotify(), and setPostNotify().
|
protected |
Definition at line 30 of file class.ilForumPostDraft.php.
Referenced by getPostSubject(), and setPostSubject().
|
protected |
Definition at line 42 of file class.ilForumPostDraft.php.
Referenced by getPostUpdate(), and setPostUpdate().
|
protected |
Definition at line 50 of file class.ilForumPostDraft.php.
Referenced by getPostUserAlias(), and setPostUserAlias().
|
protected |
Definition at line 26 of file class.ilForumPostDraft.php.
Referenced by getInstancesByUserIdAndThreadId(), getThreadId(), and setThreadId().
|
protected |
Definition at line 46 of file class.ilForumPostDraft.php.
Referenced by getUpdateUserId(), and setUpdateUserId().
const ilForumPostDraft::MEDIAOBJECT_TYPE = 'frm~d:html' |
Definition at line 10 of file class.ilForumPostDraft.php.
Referenced by ilObjForumGUI\autosaveDraftAsyncObject(), ilObjForumGUI\autosaveThreadDraftAsyncObject(), ilObjForumGUI\cancelDraftObject(), and ilForumDraftsHistory\rollbackAutosave().