ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4include_once './Services/Object/classes/class.ilSubItemListGUI.php';
5
16{
21 public function getHTML()
22 {
23 global $DIC;
24
25 foreach ($this->getSubItemIds(true) as $sub_item) {
26 if (is_object($this->getHighlighter()) and strlen($this->getHighlighter()->getContent($this->getObjId(), $sub_item))) {
27 $this->tpl->setCurrentBlock('sea_fragment');
28 $this->tpl->setVariable('TXT_FRAGMENT', $this->getHighlighter()->getContent($this->getObjId(), $sub_item));
29 $this->tpl->parseCurrentBlock();
30 }
31 $this->tpl->setCurrentBlock('subitem');
32 $this->tpl->setVariable('SUBITEM_TYPE', $DIC->language()->txt('thread'));
33 $this->tpl->setVariable('SEPERATOR', ':');
34
35 $this->getItemListGUI()->setChildId($sub_item);
36 $this->tpl->setVariable('LINK', $this->getItemListGUI()->getCommandLink('thread'));
37 $this->tpl->setVariable('TARGET', $this->getItemListGUI()->getCommandFrame(''));
38 include_once './Modules/Forum/classes/class.ilObjForum.php';
39 $this->tpl->setVariable('TITLE', ilObjForum::_lookupThreadSubject($sub_item));
40
41 // begin-patch mime_filter
42 if (count($this->getSubItemIds(true)) > 1) {
43 $this->parseRelevance($sub_item);
44 }
45 // end-patch mime_filter
46
47 $this->tpl->parseCurrentBlock();
48 }
49
50 $this->showDetailsLink();
51
52 return $this->tpl->get();
53 }
54}
An exception for terminatinating execution or to throw for unit testing.
static _lookupThreadSubject($a_thread_id)
Base class for all sub item list gui's.
getItemListGUI()
get item list gui
getSubItemIds($a_limited=false)
get sub item ids
showDetailsLink()
show details link
getHighlighter()
get highlighter
global $DIC
Definition: saml.php:7