ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
 $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 $lng, ilSubItemListGUI\getHighlighter(), ilSubItemListGUI\getItemListGUI(), ilSubItemListGUI\getObjId(), ilSubItemListGUI\getSubItemIds(), ilSubItemListGUI\parseRelevance(), and ilSubItemListGUI\showDetailsLink().

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 
43  // begin-patch mime_filter
44  if(count($this->getSubItemIds(true)) > 1)
45  {
46  $this->parseRelevance($sub_item);
47  }
48  // end-patch mime_filter
49 
50  $this->tpl->parseCurrentBlock();
51  }
52 
53  $this->showDetailsLink();
54 
55  return $this->tpl->get();
56  }
getHighlighter()
get highlighter
showDetailsLink()
show details link
global $lng
Definition: privfeed.php:17
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: