ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjForumSubItemListGUI Class Reference

Show forum threads. More...

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

Public Member Functions

 getHTML ()
 
- Public Member Functions inherited from ilSubItemListGUI
 __construct (string $cmd_class)
 
 getCmdClass ()
 
 setHighlighter (?ilLuceneHighlighterResultParser $highlighter)
 
 getHighlighter ()
 
 getRefId ()
 
 getObjId ()
 
 getType ()
 
 getSubItemIds (bool $limited=false)
 
 getItemListGUI ()
 
 init (ilObjectListGUI $item_list_gui, int $ref_id, array $subitem_ids)
 
 getHTML ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilSubItemListGUI
static setShowDetails (int $obj_id)
 set show details. More...
 
static resetDetails ()
 As long as static::resetDetails is not possible this method is final. More...
 
static enabledDetails (int $obj_id)
 As long as static::enableDetails is not possible this method is final. More...
 
- Protected Member Functions inherited from ilSubItemListGUI
 showDetailsLink ()
 
 parseRelevance (int $sub_item)
 
- Protected Attributes inherited from ilSubItemListGUI
ilCtrlInterface $ctrl
 
ilLanguage $lng
 
string $cmd_class = ''
 
ilTemplate $tpl = null
 
ilLuceneHighlighterResultParser $highlighter = null
 
array $subitem_ids = []
 
ilObjectListGUI $item_list_gui = null
 
int $ref_id = 0
 
int $obj_id = 0
 
string $type = ''
 
- Static Protected Attributes inherited from ilSubItemListGUI
static int $MAX_SUBITEMS = 5
 
static array $details = []
 

Detailed Description

Show forum threads.

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

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

Member Function Documentation

◆ getHTML()

ilObjForumSubItemListGUI::getHTML ( )

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

References $DIC, ilObjForum\_lookupThreadSubject(), ILIAS\UI\Implementation\Component\Input\ViewControl\getContent(), ilSubItemListGUI\getHighlighter(), ilSubItemListGUI\getItemListGUI(), ilSubItemListGUI\getObjId(), ilSubItemListGUI\getSubItemIds(), ilSubItemListGUI\parseRelevance(), and ilSubItemListGUI\showDetailsLink().

28  : string
29  {
30  global $DIC;
31 
32  foreach ($this->getSubItemIds(true) as $sub_item) {
33  if (is_object($this->getHighlighter()) && $this->getHighlighter()->getContent(
34  $this->getObjId(),
35  $sub_item
36  ) !== '') {
37  $this->tpl->setCurrentBlock('sea_fragment');
38  $this->tpl->setVariable(
39  'TXT_FRAGMENT',
40  $this->getHighlighter()->getContent($this->getObjId(), $sub_item)
41  );
42  $this->tpl->parseCurrentBlock();
43  }
44  $this->tpl->setCurrentBlock('subitem');
45  $this->tpl->setVariable('SUBITEM_TYPE', $DIC->language()->txt('thread'));
46  $this->tpl->setVariable('SEPERATOR', ':');
47 
48  $this->getItemListGUI()->setChildId($sub_item);
49  $this->tpl->setVariable('LINK', $this->getItemListGUI()->getCommandLink('thread'));
50  $this->tpl->setVariable('TARGET', $this->getItemListGUI()->getCommandFrame(''));
51  $this->tpl->setVariable('TITLE', ilObjForum::_lookupThreadSubject($sub_item));
52 
53  // begin-patch mime_filter
54  if (count($this->getSubItemIds(true)) > 1) {
55  $this->parseRelevance($sub_item);
56  }
57  // end-patch mime_filter
58 
59  $this->tpl->parseCurrentBlock();
60  }
61 
62  $this->showDetailsLink();
63 
64  return $this->tpl->get();
65  }
static _lookupThreadSubject(int $a_thread_id)
getSubItemIds(bool $limited=false)
parseRelevance(int $sub_item)
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

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