19 declare(strict_types=1);
    38         bool $is_moderator = 
false    42         $this->
lng = $DIC->language();
    44         $this->
user = $DIC->user();
    47         $this->parent_cmd = $a_parent_cmd;
    52         $id = 
'frm_tt_' . substr(md5($this->parent_cmd), 0, 3) . 
'_' . $this->
getRefId();
    61         $this->
mainTemplate->addCss(
'./assets/css/forum_table.css');
    65     public function fetchDataAnReturnObject(): array
    68         if ($this->parent_cmd === 
'mergeThreads' &&
    75             'excluded_ids' => $excluded_ids,
    81             $this->topicData->getTopPk(),
    89                 $this->topicData->getTopPk(),
    97         $temp_data = (
array_map(
static function (ilForumTopic $thread): array {
    98             return [
'thread' => $thread];
   103         foreach (
$data[
'items'] as $thread) {
   105             $thread_ids[] = $thread->getId();
   106             if ($thread->getDisplayUserId() > 0) {
   107                 $user_ids[$thread->getDisplayUserId()] = $thread->getDisplayUserId();
   111         $user_ids = array_merge(
 setTopicData(ForumDto $topicData)
 
readonly bool $is_post_draft_allowed
 
Class Forum core functions for forum. 
 
ilForumTopic $merge_thread_obj
 
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
 
static getUserIdsOfLastPostsByRefIdAndThreadIds(int $ref_id, array $thread_ids)
 
readonly ilSetting $settings
 
setMapper(ilForum $mapper)
 
setIsModerator(bool $is_moderator)
 
resetOffset(bool $a_in_determination=false)
 
setExternalSorting(bool $a_val)
 
setDefaultOrderField(string $a_defaultorderfield)
 
readonly ilGlobalTemplateInterface $mainTemplate
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
static isSavePostDraftAllowed()
 
__construct(Container $dic, ilPlugin $plugin)
 
__construct(ilObjForumGUI $a_parent_obj, string $a_parent_cmd, int $ref_id, ForumDto $topicData, bool $is_moderator=false)
 
setMaxCount(int $a_max_count)
set max. 
 
setExternalSegmentation(bool $a_val)