ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 13 of file class.ilObjForumSubItemListGUI.php.

Member Function Documentation

◆ getHTML()

ilObjForumSubItemListGUI::getHTML ( )

get html

Returns

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

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

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  }
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: