ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilObjGlossarySubItemListGUI Class Reference

Show glossary terms. More...

+ Inheritance diagram for ilObjGlossarySubItemListGUI:
+ Collaboration diagram for ilObjGlossarySubItemListGUI:

Public Member Functions

 __construct ($a_cmd_class)
 Constructor. More...
 
 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 ()
 

Protected Attributes

 $user
 
- Protected Attributes inherited from ilSubItemListGUI
 $ctrl
 
 $lng
 
 $cmdClass = null
 
 $tpl
 

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)
 
- 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 37 of file class.ilObjGlossarySubItemListGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjGlossarySubItemListGUI::__construct (   $a_cmd_class)

Constructor.

Definition at line 48 of file class.ilObjGlossarySubItemListGUI.php.

References $DIC, and user().

49  {
50  global $DIC;
51 
52  parent::__construct($a_cmd_class);
53  $this->user = $DIC->user();
54  }
global $DIC
Definition: saml.php:7
user()
Definition: user.php:4
+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

ilObjGlossarySubItemListGUI::getHTML ( )

get html

Returns

Definition at line 60 of file class.ilObjGlossarySubItemListGUI.php.

References $ilUser, ilSubItemListGUI\$lng, $user, ilUserSearchCache\_getInstance(), ilLink\_getLink(), ilGlossaryTerm\_lookGlossaryTerm(), array, ilSubItemListGUI\getHighlighter(), ilSubItemListGUI\getItemListGUI(), ilSubItemListGUI\getObjId(), ilSubItemListGUI\getRefId(), ilSubItemListGUI\getSubItemIds(), ilSubItemListGUI\parseRelevance(), and ilSubItemListGUI\showDetailsLink().

61  {
62  $lng = $this->lng;
64 
65  $lng->loadLanguageModule('content');
66  foreach ($this->getSubItemIds(true) as $sub_item) {
67  if (is_object($this->getHighlighter()) and strlen($this->getHighlighter()->getContent($this->getObjId(), $sub_item))) {
68  $this->tpl->setCurrentBlock('sea_fragment');
69  $this->tpl->setVariable('TXT_FRAGMENT', $this->getHighlighter()->getContent($this->getObjId(), $sub_item));
70  $this->tpl->parseCurrentBlock();
71  }
72  $this->tpl->setCurrentBlock('subitem');
73  $this->tpl->setVariable('SUBITEM_TYPE', $lng->txt('cont_term'));
74  $this->tpl->setVariable('SEPERATOR', ':');
75 
76  #$this->getItemListGUI()->setChildId($sub_item);
77 
78  include_once './Services/Search/classes/class.ilUserSearchCache.php';
79  $src_string = ilUserSearchCache::_getInstance($ilUser->getId())->getUrlEncodedQuery();
80 
81  $this->tpl->setVariable('LINK', ilLink::_getLink(
82  $this->getRefId(),
83  'git',
84  array(
85  'target' => 'git_' . $sub_item . '_' . $this->getRefId(),
86  'srcstring' => 1
87  )
88  ));
89 
90  $this->tpl->setVariable('TARGET', $this->getItemListGUI()->getCommandFrame(''));
91  $this->tpl->setVariable('TITLE', ilGlossaryTerm::_lookGlossaryTerm($sub_item));
92 
93  // begin-patch mime_filter
94  if (count($this->getSubItemIds(true)) > 1) {
95  $this->parseRelevance($sub_item);
96  }
97  // end-patch mime_filter
98 
99  $this->tpl->parseCurrentBlock();
100  }
101 
102  $this->showDetailsLink();
103 
104  return $this->tpl->get();
105  }
getHighlighter()
get highlighter
showDetailsLink()
show details link
static _getInstance($a_usr_id)
Get singleton instance.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
static _lookGlossaryTerm($term_id)
get glossary term
getItemListGUI()
get item list gui
getSubItemIds($a_limited=false)
get sub item ids
+ Here is the call graph for this function:

Field Documentation

◆ $user

ilObjGlossarySubItemListGUI::$user
protected

Definition at line 42 of file class.ilObjGlossarySubItemListGUI.php.

Referenced by getHTML().


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