|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class Forum core functions for forum. More...
Collaboration diagram for ilForum:Public Member Functions | |
| __construct () | |
| setForumId (int $a_obj_id) | |
| setForumRefId (int $a_ref_id) | |
| getForumId () | |
| getForumRefId () | |
| setDbTable (string $dbTable) | |
| getDbTable () | |
| setMDB2WhereCondition (string $query_string, array $data_type, array $data_value) | |
| getMDB2Query () | |
| getMDB2DataValue () | |
| getMDB2DataType () | |
| setPageHits (int $pageHits) | |
| getPageHits () | |
| getOneTopic () | |
| getOneThread () | |
| generateThread (ilForumTopic $thread, string $message, bool $notify, bool $notify_posts, bool $status=true, bool $withFirstVisibleEntry=true) | |
| moveThreads (array $thread_ids, ilObjForum $src_forum, int $target_obj_id) | |
| postCensorship (ilObjForum $forum, string $message, int $pos_pk, int $cens=0) | |
| deletePost ($postIdOrRecord, bool $raiseEvents=true) | |
| getAllThreads (int $a_topic_id, array $params=[], int $limit=0, int $offset=0) | |
| getNumberOfPublishedUserPostings (int $usr_id, bool $post_activation_required) | |
| getUserStatistics (bool $post_activation_required) | |
| getRootPostIdByThread (int $a_thread_id) | |
| getModerators () | |
| countUserArticles (int $a_user_id) | |
| countActiveUserArticles (int $a_user_id) | |
| convertDate (string $date) | |
| addPostTree (int $a_tree_id, int $a_node_id=-1, string $a_date='') | |
| insertPostNode (int $a_node_id, int $a_parent_id, int $tree_id, string $a_date='') | |
| insert node under parent node More... | |
| getPostDepth (int $a_node_id, int $tree_id) | |
| getFirstPostNode (int $tree_id) | |
| getPostNode (int $post_id) | |
| fetchPostNodeData (stdClass $a_row) | |
| getSubPathIdsForNode (ilForumPost $post) | |
| deletePostTree (array $a_node) | |
| updateVisits (int $ID) | |
| prepareText (string $text, int $edit=0, string $quote_user='', string $type='') | |
| getImportName () | |
| setImportName (string $a_import_name) | |
| enableForumNotification (int $user_id) | |
| disableForumNotification (int $user_id) | |
| isForumNotificationEnabled (int $user_id) | |
| isThreadNotificationEnabled (int $user_id, int $thread_id) | |
| mergeThreads (int $source_id, int $target_id) | |
Static Public Member Functions | |
| static | _getModerators (int $a_ref_id) |
| static | _isModerator (int $a_ref_id, int $a_usr_id) |
| static | getSortedThreadSubjects (int $a_obj_id, int $a_sort_mode=self::SORT_DATE) |
| static | _lookupObjIdForForumId (int $a_for_id) |
Data Fields | |
| ilLanguage | $lng |
| ilErrorHandling | $error |
| ilDBInterface | $db |
| ilObjUser | $user |
| ilSetting | $settings |
Static Protected Attributes | |
| static array | $moderators_by_ref_id_map = [] |
Private Member Functions | |
| deletePostFiles (array $a_ids) | |
Private Attributes | |
| const int | SORT_TITLE = 1 |
| const int | SORT_DATE = 2 |
| const int | DEFAULT_PAGE_HITS = 30 |
| readonly ilAppEventHandler | $event |
| string | $dbTable |
| string | $className = 'ilForum' |
| string | $mdb2Query = '' |
| array | $mdb2DataValue = [] |
| array | $mdb2DataType = [] |
| string | $txtQuote1 = "[quote]" |
| string | $txtQuote2 = "[/quote]" |
| string | $replQuote1 = '<blockquote class="ilForumQuote">' |
| string | $replQuote2 = '</blockquote>' |
| int | $pageHits = self::DEFAULT_PAGE_HITS |
| int | $id |
| int | $ref_id |
| string | $import_name = '' |
| ILIAS UI Factory | $ui_factory |
| ILIAS UI Renderer | $ui_renderer |
Class Forum core functions for forum.
Definition at line 29 of file class.ilForum.php.
| ilForum::__construct | ( | ) |
Definition at line 60 of file class.ilForum.php.
References $DIC, error(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Definition at line 1073 of file class.ilForum.php.
References $DIC, and ilObject\_lookupTitle().
Referenced by ilObjForum\getAllForumParticipants(), ILIAS\Forum\Notification\ForumNotificationTable\getFilteredUserIds(), ilForumNotificationDataProvider\getPostActivationRecipients(), and ILIAS\Forum\Notification\ForumNotificationTable\getUserNotificationTableData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1089 of file class.ilForum.php.
Referenced by ilForumExportGUI\renderPostHtml().
Here is the caller graph for this function:
|
static |
Definition at line 1650 of file class.ilForum.php.
Referenced by ilForumDraftsDerivedTaskProvider\getTasks(), ilObjForumGUI\mergeThreadsObject(), and ilForumTopic\movePosts().
Here is the caller graph for this function:| ilForum::addPostTree | ( | int | $a_tree_id, |
| int | $a_node_id = -1, |
||
| string | $a_date = '' |
||
| ) |
Definition at line 1134 of file class.ilForum.php.
| ilForum::convertDate | ( | string | $date | ) |
Definition at line 1129 of file class.ilForum.php.
References ilDatePresentation\formatDate(), and IL_CAL_DATETIME.
Here is the call graph for this function:| ilForum::countActiveUserArticles | ( | int | $a_user_id | ) |
Definition at line 1113 of file class.ilForum.php.
References $res, and ILIAS\Repository\user().
Here is the call graph for this function:| ilForum::countUserArticles | ( | int | $a_user_id | ) |
Definition at line 1098 of file class.ilForum.php.
References $res.
| ilForum::deletePost | ( | $postIdOrRecord, | |
| bool | $raiseEvents = true |
||
| ) |
| int|array<string,mixed> | $postIdOrRecord |
Definition at line 535 of file class.ilForum.php.
References $post, $res, ilObjForum\_deleteReadEntries(), ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilNewsItem\getFirstNewsIdForContext(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
private |
| int[] | $a_ids |
Definition at line 1507 of file class.ilForum.php.
| ilForum::deletePostTree | ( | array | $a_node | ) |
Definition at line 1353 of file class.ilForum.php.
References $res, and ILIAS\Repository\int().
Here is the call graph for this function:| ilForum::disableForumNotification | ( | int | $user_id | ) |
Definition at line 1583 of file class.ilForum.php.
References $user_id.
| ilForum::enableForumNotification | ( | int | $user_id | ) |
Definition at line 1528 of file class.ilForum.php.
| ilForum::fetchPostNodeData | ( | stdClass | $a_row | ) |
Definition at line 1284 of file class.ilForum.php.
References ilObject\_exists(), ILIAS\Repository\int(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilForum::generateThread | ( | ilForumTopic | $thread, |
| string | $message, | ||
| bool | $notify, | ||
| bool | $notify_posts, | ||
| bool | $status = true, |
||
| bool | $withFirstVisibleEntry = true |
||
| ) |
Definition at line 291 of file class.ilForum.php.
References ilForumTopic\setCreateDate().
Here is the call graph for this function:| ilForum::getAllThreads | ( | int | $a_topic_id, |
| array | $params = [], |
||
| int | $limit = 0, |
||
| int | $offset = 0 |
||
| ) |
Definition at line 742 of file class.ilForum.php.
References $data, $params, $res, $user_id, ilForumProperties\getInstance(), ILIAS\Repository\int(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilForum::getDbTable | ( | ) |
| ilForum::getFirstPostNode | ( | int | $tree_id | ) |
Definition at line 1251 of file class.ilForum.php.
References $res.
| ilForum::getForumId | ( | ) |
Definition at line 84 of file class.ilForum.php.
References $id.
| ilForum::getForumRefId | ( | ) |
| ilForum::getImportName | ( | ) |
Definition at line 1518 of file class.ilForum.php.
| ilForum::getMDB2DataType | ( | ) |
Definition at line 127 of file class.ilForum.php.
Referenced by getOneThread(), and getOneTopic().
Here is the caller graph for this function:| ilForum::getMDB2DataValue | ( | ) |
Definition at line 122 of file class.ilForum.php.
Referenced by getOneThread(), and getOneTopic().
Here is the caller graph for this function:| ilForum::getMDB2Query | ( | ) |
Definition at line 117 of file class.ilForum.php.
Referenced by getOneThread(), and getOneTopic().
Here is the caller graph for this function:| ilForum::getModerators | ( | ) |
Definition at line 1065 of file class.ilForum.php.
| ilForum::getNumberOfPublishedUserPostings | ( | int | $usr_id, |
| bool | $post_activation_required | ||
| ) |
Definition at line 951 of file class.ilForum.php.
References $res.
| ilForum::getOneThread | ( | ) |
Definition at line 171 of file class.ilForum.php.
References getMDB2DataType(), getMDB2DataValue(), and getMDB2Query().
Here is the call graph for this function:| ilForum::getOneTopic | ( | ) |
Definition at line 147 of file class.ilForum.php.
References $res, ForumDto\getEmptyInstance(), ForumDto\getInstanceFromArray(), getMDB2DataType(), getMDB2DataValue(), and getMDB2Query().
Here is the call graph for this function:| ilForum::getPageHits | ( | ) |
| ilForum::getPostDepth | ( | int | $a_node_id, |
| int | $tree_id | ||
| ) |
Definition at line 1233 of file class.ilForum.php.
References $res.
| ilForum::getPostNode | ( | int | $post_id | ) |
Definition at line 1266 of file class.ilForum.php.
References $res.
| ilForum::getRootPostIdByThread | ( | int | $a_thread_id | ) |
Definition at line 1046 of file class.ilForum.php.
References $res.
|
static |
Definition at line 1627 of file class.ilForum.php.
References $DIC, $res, and ILIAS\Repository\int().
Referenced by ilObjForumSearchResultTableGUI\parse().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::getSubPathIdsForNode | ( | ilForumPost | $post | ) |
Definition at line 1334 of file class.ilForum.php.
References $post, $res, ILIAS\Repository\int(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ilForum::getUserStatistics | ( | bool | $post_activation_required | ) |
Definition at line 983 of file class.ilForum.php.
References $data, $res, ILIAS\Repository\int(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilForum::insertPostNode | ( | int | $a_node_id, |
| int | $a_parent_id, | ||
| int | $tree_id, | ||
| string | $a_date = '' |
||
| ) |
insert node under parent node
Definition at line 1167 of file class.ilForum.php.
References $res, and ILIAS\Repository\int().
Here is the call graph for this function:| ilForum::isForumNotificationEnabled | ( | int | $user_id | ) |
Definition at line 1594 of file class.ilForum.php.
| ilForum::isThreadNotificationEnabled | ( | int | $user_id, |
| int | $thread_id | ||
| ) |
Definition at line 1609 of file class.ilForum.php.
| ilForum::mergeThreads | ( | int | $source_id, |
| int | $target_id | ||
| ) |
Definition at line 1662 of file class.ilForum.php.
References $ilDB, ilObjForum\mergeForumUserRead(), ilForumPost\mergePosts(), ilForumNotification\mergeThreadNotifications(), and ilForumPostsTree\updateTargetRootRgt().
Here is the call graph for this function:| ilForum::moveThreads | ( | array | $thread_ids, |
| ilObjForum | $src_forum, | ||
| int | $target_obj_id | ||
| ) |
| int[] | $thread_ids |
Definition at line 355 of file class.ilForum.php.
References $id, $res, ilObject\getId(), ILIAS\Survey\Mode\getId(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilForum::postCensorship | ( | ilObjForum | $forum, |
| string | $message, | ||
| int | $pos_pk, | ||
| int | $cens = 0 |
||
| ) |
Definition at line 473 of file class.ilForum.php.
References $res, ilNewsItem\getFirstNewsIdForContext(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilForum::prepareText | ( | string | $text, |
| int | $edit = 0, |
||
| string | $quote_user = '', |
||
| string | $type = '' |
||
| ) |
Definition at line 1427 of file class.ilForum.php.
References $text, ILIAS\Repository\lng(), and ilRTE\replaceLatexSpan().
Referenced by ilObjForumGUI\renderPostingForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::setDbTable | ( | string | $dbTable | ) |
Definition at line 94 of file class.ilForum.php.
References $dbTable.
| ilForum::setForumId | ( | int | $a_obj_id | ) |
Definition at line 74 of file class.ilForum.php.
| ilForum::setForumRefId | ( | int | $a_ref_id | ) |
Definition at line 79 of file class.ilForum.php.
| ilForum::setImportName | ( | string | $a_import_name | ) |
Definition at line 1523 of file class.ilForum.php.
| ilForum::setMDB2WhereCondition | ( | string | $query_string, |
| array | $data_type, | ||
| array | $data_value | ||
| ) |
Definition at line 108 of file class.ilForum.php.
| ilForum::setPageHits | ( | int | $pageHits | ) |
| ilForum::updateVisits | ( | int | $ID | ) |
Definition at line 1406 of file class.ilForum.php.
References ilSession\get(), and ilSession\set().
Here is the call graph for this function:
|
private |
Definition at line 40 of file class.ilForum.php.
| ilDBInterface ilForum::$db |
Definition at line 54 of file class.ilForum.php.
|
private |
Definition at line 39 of file class.ilForum.php.
Referenced by getDbTable(), and setDbTable().
| ilErrorHandling ilForum::$error |
Definition at line 53 of file class.ilForum.php.
|
private |
Definition at line 38 of file class.ilForum.php.
|
private |
Definition at line 49 of file class.ilForum.php.
Referenced by getForumId().
|
private |
Definition at line 51 of file class.ilForum.php.
| ilLanguage ilForum::$lng |
Definition at line 52 of file class.ilForum.php.
|
private |
Definition at line 43 of file class.ilForum.php.
|
private |
Definition at line 42 of file class.ilForum.php.
|
private |
Definition at line 41 of file class.ilForum.php.
|
staticprotected |
Definition at line 36 of file class.ilForum.php.
|
private |
Definition at line 48 of file class.ilForum.php.
Referenced by getPageHits(), and setPageHits().
|
private |
Definition at line 50 of file class.ilForum.php.
Referenced by getForumRefId().
|
private |
Definition at line 46 of file class.ilForum.php.
|
private |
Definition at line 47 of file class.ilForum.php.
| ilSetting ilForum::$settings |
Definition at line 56 of file class.ilForum.php.
|
private |
Definition at line 44 of file class.ilForum.php.
|
private |
Definition at line 45 of file class.ilForum.php.
|
private |
Definition at line 57 of file class.ilForum.php.
|
private |
Definition at line 58 of file class.ilForum.php.
| ilObjUser ilForum::$user |
Definition at line 55 of file class.ilForum.php.
|
private |
Definition at line 33 of file class.ilForum.php.
|
private |
Definition at line 32 of file class.ilForum.php.
|
private |
Definition at line 31 of file class.ilForum.php.