ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilObjForumSubItemListGUI Class Reference

Show forum threads. More...

+ Inheritance diagram for ilObjForumSubItemListGUI:
+ Collaboration diagram for ilObjForumSubItemListGUI:

Public Member Functions

 getHTML ()
 get html More...
 
- Public Member Functions inherited from ilSubItemListGUI
 __construct ($a_cmd_class)
 Constructor. More...
 
 getCmdClass ()
 get cmd class More...
 
 setHighlighter ($a_highlighter)
 set highlighter More...
 
 getHighlighter ()
 get highlighter More...
 
 getRefId ()
 get ref id More...
 
 getObjId ()
 get obj id More...
 
 getType ()
 get type More...
 
 getSubItemIds ($a_limited=false)
 get sub item ids More...
 
 getItemListGUI ()
 get item list gui More...
 
 init ($item_list_gui, $a_ref_id, $a_subitem_ids)
 init More...
 
 getHTML ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilSubItemListGUI
static setShowDetails ($a_obj_id)
 set show details. More...
 
static resetDetails ()
 reset details As long as static::resetDetails is not possible this method is final More...
 
static enabledDetails ($a_obj_id)
 enabled show details As long as static::enableDetails is not possible this method is final More...
 
- Protected Member Functions inherited from ilSubItemListGUI
 showDetailsLink ()
 show details link More...
 
 parseRelevance ($sub_item)
 
- Protected Attributes inherited from ilSubItemListGUI
 $ctrl
 
 $lng
 
 $cmdClass = null
 
 $tpl
 
- Static Protected Attributes inherited from ilSubItemListGUI
static $MAX_SUBITEMS = 5
 

Detailed Description

Show forum threads.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 15 of file class.ilObjForumSubItemListGUI.php.

Member Function Documentation

◆ getHTML()

ilObjForumSubItemListGUI::getHTML ( )

get html

Returns

Definition at line 21 of file class.ilObjForumSubItemListGUI.php.

References $DIC, ilObjForum\_lookupThreadSubject(), ilSubItemListGUI\getHighlighter(), ilSubItemListGUI\getItemListGUI(), ilSubItemListGUI\getObjId(), ilSubItemListGUI\getSubItemIds(), ilSubItemListGUI\parseRelevance(), and ilSubItemListGUI\showDetailsLink().

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  }
global $DIC
Definition: saml.php:7
getHighlighter()
get highlighter
showDetailsLink()
show details link
static _lookupThreadSubject($a_thread_id)
getItemListGUI()
get item list gui
getSubItemIds($a_limited=false)
get sub item ids
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: