ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilObjForumSubItemListGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
14 {
19  public function getHTML()
20  {
21  global $DIC;
22 
23  foreach ($this->getSubItemIds(true) as $sub_item) {
24  if (is_object($this->getHighlighter()) and strlen($this->getHighlighter()->getContent($this->getObjId(), $sub_item))) {
25  $this->tpl->setCurrentBlock('sea_fragment');
26  $this->tpl->setVariable('TXT_FRAGMENT', $this->getHighlighter()->getContent($this->getObjId(), $sub_item));
27  $this->tpl->parseCurrentBlock();
28  }
29  $this->tpl->setCurrentBlock('subitem');
30  $this->tpl->setVariable('SUBITEM_TYPE', $DIC->language()->txt('thread'));
31  $this->tpl->setVariable('SEPERATOR', ':');
32 
33  $this->getItemListGUI()->setChildId($sub_item);
34  $this->tpl->setVariable('LINK', $this->getItemListGUI()->getCommandLink('thread'));
35  $this->tpl->setVariable('TARGET', $this->getItemListGUI()->getCommandFrame(''));
36  $this->tpl->setVariable('TITLE', ilObjForum::_lookupThreadSubject($sub_item));
37 
38  // begin-patch mime_filter
39  if (count($this->getSubItemIds(true)) > 1) {
40  $this->parseRelevance($sub_item);
41  }
42  // end-patch mime_filter
43 
44  $this->tpl->parseCurrentBlock();
45  }
46 
47  $this->showDetailsLink();
48 
49  return $this->tpl->get();
50  }
51 }
global $DIC
Definition: saml.php:7
getHighlighter()
get highlighter
Base class for all sub item list gui&#39;s.
showDetailsLink()
show details link
static _lookupThreadSubject($a_thread_id)
getItemListGUI()
get item list gui
getSubItemIds($a_limited=false)
get sub item ids