ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilObjGlossarySubItemListGUI Class Reference

Show glossary terms. More...

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

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

Member Function Documentation

◆ getHTML()

ilObjGlossarySubItemListGUI::getHTML ( )

get html

Returns

Reimplemented from ilSubItemListGUI.

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

44 {
45 global $lng,$ilUser;
46
47 $lng->loadLanguageModule('content');
48 foreach($this->getSubItemIds(true) as $sub_item)
49 {
50 if(is_object($this->getHighlighter()) and strlen($this->getHighlighter()->getContent($this->getObjId(),$sub_item)))
51 {
52 $this->tpl->setCurrentBlock('sea_fragment');
53 $this->tpl->setVariable('TXT_FRAGMENT',$this->getHighlighter()->getContent($this->getObjId(),$sub_item));
54 $this->tpl->parseCurrentBlock();
55 }
56 $this->tpl->setCurrentBlock('subitem');
57 $this->tpl->setVariable('SUBITEM_TYPE',$lng->txt('cont_term'));
58 $this->tpl->setVariable('SEPERATOR',':');
59
60 #$this->getItemListGUI()->setChildId($sub_item);
61
62 include_once './Services/Search/classes/class.ilUserSearchCache.php';
63 $src_string = ilUserSearchCache::_getInstance($ilUser->getId())->getUrlEncodedQuery();
64
65 $this->tpl->setVariable('LINK',ilLink::_getLink(
66 $this->getRefId(),
67 'git',
68 array(
69 'target' => 'git_'.$sub_item.'_'.$this->getRefId(),
70 'srcstring' => 1
71 )
72 ));
73
74 $this->tpl->setVariable('TARGET',$this->getItemListGUI()->getCommandFrame(''));
75 $this->tpl->setVariable('TITLE',ilGlossaryTerm::_lookGlossaryTerm($sub_item));
76
77 // begin-patch mime_filter
78 if(count($this->getSubItemIds(true)) > 1)
79 {
80 $this->parseRelevance($sub_item);
81 }
82 // end-patch mime_filter
83
84 $this->tpl->parseCurrentBlock();
85 }
86
87 $this->showDetailsLink();
88
89 return $this->tpl->get();
90 }
static _lookGlossaryTerm($term_id)
get glossary term
getItemListGUI()
get item list gui
getSubItemIds($a_limited=false)
get sub item ids
showDetailsLink()
show details link
getHighlighter()
get highlighter
static _getInstance($a_usr_id)
Get singleton instance.
global $lng
Definition: privfeed.php:40
global $ilUser
Definition: imgupload.php:15

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

+ Here is the call graph for this function:

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