ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjForumSubItemListGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
27 {
28  public function getHTML(): string
29  {
30  global $DIC;
31 
32  foreach ($this->getSubItemIds(true) as $sub_item) {
33  if (is_object($this->getHighlighter()) && $this->getHighlighter()->getContent(
34  $this->getObjId(),
35  $sub_item
36  ) !== '') {
37  $this->tpl->setCurrentBlock('sea_fragment');
38  $this->tpl->setVariable(
39  'TXT_FRAGMENT',
40  $this->getHighlighter()->getContent($this->getObjId(), $sub_item)
41  );
42  $this->tpl->parseCurrentBlock();
43  }
44  $this->tpl->setCurrentBlock('subitem');
45  $this->tpl->setVariable('SUBITEM_TYPE', $DIC->language()->txt('thread'));
46  $this->tpl->setVariable('SEPERATOR', ':');
47 
48  $this->getItemListGUI()->setChildId($sub_item);
49  $this->tpl->setVariable('LINK', $this->getItemListGUI()->getCommandLink('thread'));
50  $this->tpl->setVariable('TARGET', $this->getItemListGUI()->getCommandFrame(''));
51  $this->tpl->setVariable('TITLE', ilObjForum::_lookupThreadSubject($sub_item));
52 
53  // begin-patch mime_filter
54  if (count($this->getSubItemIds(true)) > 1) {
55  $this->parseRelevance($sub_item);
56  }
57  // end-patch mime_filter
58 
59  $this->tpl->parseCurrentBlock();
60  }
61 
62  $this->showDetailsLink();
63 
64  return $this->tpl->get();
65  }
66 }
static _lookupThreadSubject(int $a_thread_id)
getSubItemIds(bool $limited=false)
parseRelevance(int $sub_item)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28