ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 ()
 
- 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 ( )

Reimplemented from ilSubItemListGUI.

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

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 $this->tpl->parseCurrentBlock();
53 }
54
55 $this->showDetailsLink();
56
57 return $this->tpl->get();
58 }
static _lookupThreadSubject(int $a_thread_id)
getSubItemIds(bool $limited=false)
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

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