ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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  $this->tpl->parseCurrentBlock();
53  }
54 
55  $this->showDetailsLink();
56 
57  return $this->tpl->get();
58  }
59 }
static _lookupThreadSubject(int $a_thread_id)
getSubItemIds(bool $limited=false)
Base class for all sub item list gui&#39;s.
global $DIC
Definition: shib_login.php:22