ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
4 include_once './Services/Object/classes/class.ilSubItemListGUI.php';
5 
16 {
21  public function getHTML()
22  {
23  global $lng;
24 
25  foreach($this->getSubItemIds(true) as $sub_item)
26  {
27  if(is_object($this->getHighlighter()) and strlen($this->getHighlighter()->getContent($this->getObjId(),$sub_item)))
28  {
29  $this->tpl->setCurrentBlock('sea_fragment');
30  $this->tpl->setVariable('TXT_FRAGMENT',$this->getHighlighter()->getContent($this->getObjId(),$sub_item));
31  $this->tpl->parseCurrentBlock();
32  }
33  $this->tpl->setCurrentBlock('subitem');
34  $this->tpl->setVariable('SUBITEM_TYPE',$lng->txt('thread'));
35  $this->tpl->setVariable('SEPERATOR',':');
36 
37  $this->getItemListGUI()->setChildId($sub_item);
38  $this->tpl->setVariable('LINK',$this->getItemListGUI()->getCommandLink('thread'));
39  $this->tpl->setVariable('TARGET',$this->getItemListGUI()->getCommandFrame(''));
40  include_once './Modules/Forum/classes/class.ilObjForum.php';
41  $this->tpl->setVariable('TITLE',ilObjForum::_lookupThreadSubject($sub_item));
42  $this->tpl->parseCurrentBlock();
43  }
44 
45  $this->showDetailsLink();
46 
47  return $this->tpl->get();
48  }
49 }
50 ?>