ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilObjLinkResourceSubItemListGUI Class Reference

Show glossary terms. More...

+ Inheritance diagram for ilObjLinkResourceSubItemListGUI:
+ Collaboration diagram for ilObjLinkResourceSubItemListGUI:

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 glossary terms.

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

Definition at line 39 of file class.ilObjLinkResourceSubItemListGUI.php.

Member Function Documentation

◆ getHTML()

ilObjLinkResourceSubItemListGUI::getHTML ( )

get html

Returns

Definition at line 45 of file class.ilObjLinkResourceSubItemListGUI.php.

References $lng, ilParameterAppender\_append(), ilLink\_getStaticLink(), ilSubItemListGUI\getHighlighter(), ilSubItemListGUI\getObjId(), ilSubItemListGUI\getSubItemIds(), ilLinkResourceItems\lookupItem(), ilSubItemListGUI\parseRelevance(), and ilSubItemListGUI\showDetailsLink().

46  {
47  global $lng;
48 
49  $lng->loadLanguageModule('webr');
50  foreach($this->getSubItemIds(true) as $sub_item)
51  {
52  if(is_object($this->getHighlighter()) and strlen($this->getHighlighter()->getContent($this->getObjId(),$sub_item)))
53  {
54  $this->tpl->setCurrentBlock('sea_fragment');
55  $this->tpl->setVariable('TXT_FRAGMENT',$this->getHighlighter()->getContent($this->getObjId(),$sub_item));
56  $this->tpl->parseCurrentBlock();
57  }
58  $this->tpl->setCurrentBlock('subitem');
59  $this->tpl->setVariable('SUBITEM_TYPE',$lng->txt('webr'));
60  $this->tpl->setVariable('SEPERATOR',':');
61 
62  $link_data = ilLinkResourceItems::lookupItem($this->getObjId(),$sub_item);
63  $link_data = ilParameterAppender::_append($link_data);
64 
65  // handle internal links (#10620)
66  if(stristr($link_data["target"], "|"))
67  {
68  $parts = explode("|", $link_data["target"]);
69  if ($parts[0] == "page")
70  {
71  $parts[0] = "pg";
72  }
73  if ($parts[0] == "term")
74  {
75  $parts[0] = "git";
76  }
77  $link_data["target"] = ilLink::_getStaticLink($parts[1], $parts[0]);
78  }
79 
80  #$this->getItemListGUI()->setChildId($sub_item);
81  $this->tpl->setVariable('LINK',$link_data['target']);
82  $this->tpl->setVariable('TARGET','_blank');
83  $this->tpl->setVariable('TITLE',$link_data['title']);
84 
85  // begin-patch mime_filter
86  if(count($this->getSubItemIds(true)) > 1)
87  {
88  $this->parseRelevance($sub_item);
89  }
90  // end-patch mime_filter
91 
92  $this->tpl->parseCurrentBlock();
93  }
94 
95  $this->showDetailsLink();
96 
97  return $this->tpl->get();
98  }
getHighlighter()
get highlighter
showDetailsLink()
show details link
static _append($a_link_data)
static lookupItem($a_webr_id, $a_link_id)
global $lng
Definition: privfeed.php:17
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: