|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Collaboration diagram for ilForumTopic:Public Member Functions | |
| __construct (private int $id=0, private readonly bool $is_moderator=false, bool $preventImplicitRead=false) | |
| Returns an object of a forum topic. More... | |
| assignData (array $data) | |
| insert () | |
| update () | |
| reload () | |
| getPostRootId () | |
| getFirstVisiblePostId () | |
| updateVisits () | |
| countPosts (bool $ignoreRoot=false) | |
| countActivePosts (bool $ignoreRoot=false) | |
| getPostRootNode (bool $isModerator=false, bool $preventImplicitRead=false) | |
| getFirstVisiblePostNode (bool $isModerator=false, bool $preventImplicitRead=false) | |
| getLastPost () | |
| getLastActivePost () | |
| getAllPostIds () | |
| getPostTree (ilForumPost $a_post_node) | |
| Fetches and returns an array of posts from the post tree, starting with the node object passed by the first paramter. More... | |
| movePosts (int $old_obj_id, int $old_pk, int $new_obj_id, int $new_pk) | |
| Moves all posts within the current thread to a new forum. More... | |
| getNestedSetPostChildren (?int $pos_id=null, ?int $num_levels=null) | |
| isNotificationEnabled (int $a_user_id) | |
| enableNotification (int $a_user_id) | |
| disableNotification (int $a_user_id) | |
| makeSticky () | |
| unmakeSticky () | |
| close () | |
| reopen () | |
| getAverageRating () | |
| setAverageRating (float $average_rating) | |
| setId (int $a_id) | |
| getId () | |
| setForumId (int $a_forum_id) | |
| getForumId () | |
| setDisplayUserId (int $a_user_id) | |
| getDisplayUserId () | |
| setUserAlias (?string $a_user_alias) | |
| getUserAlias () | |
| setSubject (string $a_subject) | |
| getSubject () | |
| setCreateDate (?string $a_createdate) | |
| getCreateDate () | |
| setChangeDate (?string $a_changedate) | |
| getChangeDate () | |
| setImportName (?string $a_import_name) | |
| getImportName () | |
| setLastPostString (?string $a_last_post) | |
| getLastPostString () | |
| setVisits (int $a_visits) | |
| getVisits () | |
| setSticky (bool $a_sticky) | |
| isSticky () | |
| setClosed (bool $a_closed) | |
| isClosed () | |
| setOrderField (string $a_order_field) | |
| getOrderField () | |
| getFrmObjId () | |
| setThrAuthorId (int $thr_author_id) | |
| getThrAuthorId () | |
| updateThreadTitle () | |
| setNumPosts (int $a_num_posts) | |
| getNumPosts () | |
| setNumUnreadPosts (int $num_unread_posts) | |
| getNumUnreadPosts () | |
| setUserNotificationEnabled (bool $status) | |
| isUserNotificationEnabled () | |
| setOrderDirection (string $direction) | |
| getOrderDirection () | |
| updateMergedThread () | |
| getLastPostForThreadOverview () | |
| setLastPostForThreadOverview (ilForumPost $post) | |
Static Public Member Functions | |
| static | lookupTitle (int $a_topic_id) |
| static | lookupForumIdByTopicId (int $a_topic_id) |
| static | lookupCreationDate (int $thread_id) |
Private Member Functions | |
| read () | |
Private Attributes | |
| int | $forum_id = 0 |
| int | $frm_obj_id = 0 |
| int | $display_user_id = 0 |
| string | $user_alias = null |
| string | $subject = '' |
| string | $createdate = null |
| string | $changedate = null |
| int | $num_posts = 0 |
| string | $last_post_string = null |
| int | $visits = 0 |
| string | $import_name = null |
| bool | $is_sticky = false |
| bool | $is_closed = false |
| string | $orderField = '' |
| ilForumPost | $last_post = null |
| readonly ilDBInterface | $db |
| int | $thr_author_id = 0 |
| float | $average_rating = 0.0 |
| string | $orderDirection = 'DESC' |
| readonly ilObjUser | $user |
| int | $num_unread_posts = 0 |
| bool | $user_notification_enabled = false |
Static Private Attributes | |
| static array | $possibleOrderDirections = ['ASC', 'DESC'] |
Definition at line 25 of file class.ilForumTopic.php.
| ilForumTopic::__construct | ( | private int | $id = 0, |
| private readonly bool | $is_moderator = false, |
||
| bool | $preventImplicitRead = false |
||
| ) |
Returns an object of a forum topic.
The constructor calls the private method read() to load the topic data from database into the object.
| int | $id | primary key of a forum topic (optional) |
| bool | $is_moderator | moderator-status of the current user (optional) |
| bool | $preventImplicitRead | Prevents the implicit database query if an id was passed |
Definition at line 59 of file class.ilForumTopic.php.
References $DIC, read(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilForumTopic::assignData | ( | array | $data | ) |
Definition at line 73 of file class.ilForumTopic.php.
References setAverageRating(), setChangeDate(), setClosed(), setCreateDate(), setDisplayUserId(), setForumId(), setId(), setImportName(), setLastPostString(), setNumPosts(), setNumUnreadPosts(), setSticky(), setSubject(), setThrAuthorId(), setUserAlias(), setUserNotificationEnabled(), and setVisits().
Here is the call graph for this function:| ilForumTopic::close | ( | ) |
Definition at line 820 of file class.ilForumTopic.php.
| ilForumTopic::countActivePosts | ( | bool | $ignoreRoot = false | ) |
Definition at line 277 of file class.ilForumTopic.php.
References $id, $res, and ILIAS\Repository\user().
Here is the call graph for this function:| ilForumTopic::countPosts | ( | bool | $ignoreRoot = false | ) |
| ilForumTopic::disableNotification | ( | int | $a_user_id | ) |
Definition at line 777 of file class.ilForumTopic.php.
| ilForumTopic::enableNotification | ( | int | $a_user_id | ) |
Definition at line 759 of file class.ilForumTopic.php.
References isNotificationEnabled().
Referenced by ilForum\generateThread().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumTopic::getAllPostIds | ( | ) |
Definition at line 392 of file class.ilForumTopic.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by movePosts().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumTopic::getAverageRating | ( | ) |
| ilForumTopic::getChangeDate | ( | ) |
| ilForumTopic::getCreateDate | ( | ) |
Definition at line 910 of file class.ilForumTopic.php.
References $createdate.
Referenced by ilForum\generateThread().
Here is the caller graph for this function:| ilForumTopic::getDisplayUserId | ( | ) |
Definition at line 880 of file class.ilForumTopic.php.
References $display_user_id.
Referenced by ilForum\generateThread(), and ilObjForumGUI\getThreadProperties().
Here is the caller graph for this function:| ilForumTopic::getFirstVisiblePostId | ( | ) |
Definition at line 227 of file class.ilForumTopic.php.
References $res.
| ilForumTopic::getFirstVisiblePostNode | ( | bool | $isModerator = false, |
| bool | $preventImplicitRead = false |
||
| ) |
Definition at line 323 of file class.ilForumTopic.php.
Referenced by updateThreadTitle().
Here is the caller graph for this function:| ilForumTopic::getForumId | ( | ) |
Definition at line 870 of file class.ilForumTopic.php.
References $forum_id.
Referenced by ilForumExportGUI\ensureThreadBelongsToForum(), ilObjForumGUI\ensureThreadBelongsToForum(), and ilForum\generateThread().
Here is the caller graph for this function:| ilForumTopic::getFrmObjId | ( | ) |
Definition at line 985 of file class.ilForumTopic.php.
References $frm_obj_id.
Referenced by getNestedSetPostChildren().
Here is the caller graph for this function:| ilForumTopic::getId | ( | ) |
Definition at line 860 of file class.ilForumTopic.php.
References $id.
Referenced by ilForum\generateThread(), ilObjForumGUI\getActionsForThreadOverview(), ilObjForumGUI\getEditTitleModal(), ilObjForumGUI\getOpenCloseActionForThread(), ilObjForumGUI\getStickyActionForThread(), ilObjForumGUI\getThreadProperties(), updateMergedThread(), and updateThreadTitle().
Here is the caller graph for this function:| ilForumTopic::getImportName | ( | ) |
Definition at line 930 of file class.ilForumTopic.php.
References $import_name.
Referenced by ilObjForumGUI\getThreadProperties().
Here is the caller graph for this function:| ilForumTopic::getLastActivePost | ( | ) |
Definition at line 366 of file class.ilForumTopic.php.
References $res, and ILIAS\Repository\user().
Here is the call graph for this function:| ilForumTopic::getLastPost | ( | ) |
Definition at line 348 of file class.ilForumTopic.php.
References $res.
Referenced by ilObjForumGUI\getThreadProperties().
Here is the caller graph for this function:| ilForumTopic::getLastPostForThreadOverview | ( | ) |
Definition at line 1132 of file class.ilForumTopic.php.
References $last_post.
| ilForumTopic::getLastPostString | ( | ) |
Definition at line 940 of file class.ilForumTopic.php.
References $last_post_string.
Referenced by updateMergedThread().
Here is the caller graph for this function:| ilForumTopic::getNestedSetPostChildren | ( | ?int | $pos_id = null, |
| ?int | $num_levels = null |
||
| ) |
Definition at line 585 of file class.ilForumTopic.php.
References $data, $res, ANONYMOUS_USER_ID, getFrmObjId(), ilForumProperties\getInstance(), ILIAS\Repository\int(), ilForumAuthorInformationCache\preloadUserObjects(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilForumTopic::getNumPosts | ( | ) |
Definition at line 1040 of file class.ilForumTopic.php.
References $num_posts.
Referenced by ilObjForumGUI\getThreadProperties(), and updateMergedThread().
Here is the caller graph for this function:| ilForumTopic::getNumUnreadPosts | ( | ) |
Definition at line 1051 of file class.ilForumTopic.php.
References $num_unread_posts.
Referenced by ilObjForumGUI\getThreadProperties().
Here is the caller graph for this function:| ilForumTopic::getOrderDirection | ( | ) |
Definition at line 1077 of file class.ilForumTopic.php.
References $orderDirection.
Referenced by getPostTree().
Here is the caller graph for this function:| ilForumTopic::getOrderField | ( | ) |
| ilForumTopic::getPostRootId | ( | ) |
Definition at line 212 of file class.ilForumTopic.php.
References $res.
| ilForumTopic::getPostRootNode | ( | bool | $isModerator = false, |
| bool | $preventImplicitRead = false |
||
| ) |
Definition at line 299 of file class.ilForumTopic.php.
Referenced by ilObjForumGUI\toggleExplorerNodeStateObject().
Here is the caller graph for this function:| ilForumTopic::getPostTree | ( | ilForumPost | $a_post_node | ) |
Fetches and returns an array of posts from the post tree, starting with the node object passed by the first paramter.
| ilForumPost | $a_post_node | node-object of a post |
Definition at line 413 of file class.ilForumTopic.php.
References $data, $post, $res, ANONYMOUS_USER_ID, ilForumPost\getLft(), getOrderDirection(), ilForumPost\getRgt(), ilForumPost\getThreadId(), ILIAS\Repository\int(), ilForumAuthorInformationCache\preloadUserObjects(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilForumTopic::getSubject | ( | ) |
Definition at line 900 of file class.ilForumTopic.php.
References $subject.
Referenced by ilForum\generateThread(), ilObjForumGUI\getEditTitleModal(), updateMergedThread(), and updateThreadTitle().
Here is the caller graph for this function:| ilForumTopic::getThrAuthorId | ( | ) |
Definition at line 995 of file class.ilForumTopic.php.
References $thr_author_id.
Referenced by ilForum\generateThread(), and ilObjForumGUI\getThreadProperties().
Here is the caller graph for this function:| ilForumTopic::getUserAlias | ( | ) |
Definition at line 890 of file class.ilForumTopic.php.
References $user_alias.
Referenced by ilForum\generateThread(), and ilObjForumGUI\getThreadProperties().
Here is the caller graph for this function:| ilForumTopic::getVisits | ( | ) |
Definition at line 950 of file class.ilForumTopic.php.
References $visits.
Referenced by ilObjForumGUI\getThreadProperties(), and updateMergedThread().
Here is the caller graph for this function:| ilForumTopic::insert | ( | ) |
Definition at line 102 of file class.ilForumTopic.php.
Referenced by ilForum\generateThread().
Here is the caller graph for this function:| ilForumTopic::isClosed | ( | ) |
Definition at line 970 of file class.ilForumTopic.php.
References $is_closed.
Referenced by ilObjForumGUI\getOpenCloseActionForThread().
Here is the caller graph for this function:| ilForumTopic::isNotificationEnabled | ( | int | $a_user_id | ) |
Definition at line 740 of file class.ilForumTopic.php.
Referenced by enableNotification().
Here is the caller graph for this function:| ilForumTopic::isSticky | ( | ) |
Definition at line 960 of file class.ilForumTopic.php.
References $is_sticky.
Referenced by ilObjForumGUI\getStickyActionForThread(), ilObjForumGUI\getThreadProperties(), and ilObjForumGUI\markTopThreadInOverview().
Here is the caller graph for this function:| ilForumTopic::isUserNotificationEnabled | ( | ) |
Definition at line 1062 of file class.ilForumTopic.php.
References $user_notification_enabled.
|
static |
Definition at line 1112 of file class.ilForumTopic.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\confirmMergeThreadsObject().
Here is the caller graph for this function:
|
static |
Definition at line 1082 of file class.ilForumTopic.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\confirmMergeThreadsObject().
Here is the caller graph for this function:
|
static |
Definition at line 1000 of file class.ilForumTopic.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjForumGUI\confirmMergeThreadsObject().
Here is the caller graph for this function:| ilForumTopic::makeSticky | ( | ) |
Definition at line 788 of file class.ilForumTopic.php.
| ilForumTopic::movePosts | ( | int | $old_obj_id, |
| int | $old_pk, | ||
| int | $new_obj_id, | ||
| int | $new_pk | ||
| ) |
Moves all posts within the current thread to a new forum.
| int | $old_obj_id | object id of the current forum |
| int | $old_pk | primary key of old forum |
| int | $new_obj_id | object id of the new forum |
| int | $new_pk | primary key of new forum |
| ilFileUtilsException |
Definition at line 502 of file class.ilForumTopic.php.
References $id, $ilDB, $post, $res, ilForum\_lookupObjIdForForumId(), getAllPostIds(), ilNewsItem\getFirstNewsIdForContext(), and ilDBInterface\manipulateF().
Here is the call graph for this function:
|
private |
Definition at line 166 of file class.ilForumTopic.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by __construct(), and reload().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForumTopic::reload | ( | ) |
Definition at line 207 of file class.ilForumTopic.php.
References read().
Here is the call graph for this function:| ilForumTopic::reopen | ( | ) |
Definition at line 832 of file class.ilForumTopic.php.
| ilForumTopic::setAverageRating | ( | float | $average_rating | ) |
Definition at line 850 of file class.ilForumTopic.php.
References $average_rating.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setChangeDate | ( | ?string | $a_changedate | ) |
Definition at line 915 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setClosed | ( | bool | $a_closed | ) |
Definition at line 965 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setCreateDate | ( | ?string | $a_createdate | ) |
Definition at line 905 of file class.ilForumTopic.php.
Referenced by assignData(), and ilForum\generateThread().
Here is the caller graph for this function:| ilForumTopic::setDisplayUserId | ( | int | $a_user_id | ) |
Definition at line 875 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setForumId | ( | int | $a_forum_id | ) |
Definition at line 865 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setId | ( | int | $a_id | ) |
Definition at line 855 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setImportName | ( | ?string | $a_import_name | ) |
Definition at line 925 of file class.ilForumTopic.php.
Referenced by assignData(), and ilForum\generateThread().
Here is the caller graph for this function:| ilForumTopic::setLastPostForThreadOverview | ( | ilForumPost | $post | ) |
Definition at line 1137 of file class.ilForumTopic.php.
References $post.
| ilForumTopic::setLastPostString | ( | ?string | $a_last_post | ) |
Definition at line 935 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setNumPosts | ( | int | $a_num_posts | ) |
Definition at line 1034 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setNumUnreadPosts | ( | int | $num_unread_posts | ) |
Definition at line 1045 of file class.ilForumTopic.php.
References $num_unread_posts.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setOrderDirection | ( | string | $direction | ) |
Definition at line 1067 of file class.ilForumTopic.php.
| ilForumTopic::setOrderField | ( | string | $a_order_field | ) |
Definition at line 975 of file class.ilForumTopic.php.
| ilForumTopic::setSticky | ( | bool | $a_sticky | ) |
Definition at line 955 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setSubject | ( | string | $a_subject | ) |
Definition at line 895 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setThrAuthorId | ( | int | $thr_author_id | ) |
Definition at line 990 of file class.ilForumTopic.php.
References $thr_author_id.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setUserAlias | ( | ?string | $a_user_alias | ) |
Definition at line 885 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setUserNotificationEnabled | ( | bool | $status | ) |
Definition at line 1056 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::setVisits | ( | int | $a_visits | ) |
Definition at line 945 of file class.ilForumTopic.php.
Referenced by assignData().
Here is the caller graph for this function:| ilForumTopic::unmakeSticky | ( | ) |
Definition at line 804 of file class.ilForumTopic.php.
| ilForumTopic::update | ( | ) |
Definition at line 135 of file class.ilForumTopic.php.
| ilForumTopic::updateMergedThread | ( | ) |
Definition at line 1098 of file class.ilForumTopic.php.
References getId(), getLastPostString(), getNumPosts(), getSubject(), and getVisits().
Here is the call graph for this function:| ilForumTopic::updateThreadTitle | ( | ) |
Definition at line 1018 of file class.ilForumTopic.php.
References getFirstVisiblePostNode(), getId(), and getSubject().
Here is the call graph for this function:| ilForumTopic::updateVisits | ( | ) |
Definition at line 242 of file class.ilForumTopic.php.
References ilSession\get(), and ilSession\set().
Here is the call graph for this function:
|
private |
Definition at line 46 of file class.ilForumTopic.php.
Referenced by getAverageRating(), and setAverageRating().
|
private |
Definition at line 35 of file class.ilForumTopic.php.
Referenced by getChangeDate().
|
private |
Definition at line 34 of file class.ilForumTopic.php.
Referenced by getCreateDate().
|
private |
Definition at line 44 of file class.ilForumTopic.php.
|
private |
Definition at line 31 of file class.ilForumTopic.php.
Referenced by getDisplayUserId().
|
private |
Definition at line 29 of file class.ilForumTopic.php.
Referenced by getForumId().
|
private |
Definition at line 30 of file class.ilForumTopic.php.
Referenced by getFrmObjId().
|
private |
Definition at line 39 of file class.ilForumTopic.php.
Referenced by getImportName().
|
private |
Definition at line 41 of file class.ilForumTopic.php.
Referenced by isClosed().
|
private |
Definition at line 40 of file class.ilForumTopic.php.
Referenced by isSticky().
|
private |
Definition at line 43 of file class.ilForumTopic.php.
Referenced by getLastPostForThreadOverview().
|
private |
Definition at line 37 of file class.ilForumTopic.php.
Referenced by getLastPostString().
|
private |
Definition at line 36 of file class.ilForumTopic.php.
Referenced by getNumPosts().
|
private |
Definition at line 49 of file class.ilForumTopic.php.
Referenced by getNumUnreadPosts(), and setNumUnreadPosts().
|
private |
Definition at line 47 of file class.ilForumTopic.php.
Referenced by getOrderDirection().
|
private |
Definition at line 42 of file class.ilForumTopic.php.
Referenced by getOrderField().
|
staticprivate |
Definition at line 27 of file class.ilForumTopic.php.
|
private |
Definition at line 33 of file class.ilForumTopic.php.
Referenced by getSubject().
|
private |
Definition at line 45 of file class.ilForumTopic.php.
Referenced by getThrAuthorId(), and setThrAuthorId().
|
private |
Definition at line 48 of file class.ilForumTopic.php.
|
private |
Definition at line 32 of file class.ilForumTopic.php.
Referenced by getUserAlias().
|
private |
Definition at line 50 of file class.ilForumTopic.php.
Referenced by isUserNotificationEnabled().
|
private |
Definition at line 38 of file class.ilForumTopic.php.
Referenced by getVisits().