ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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

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

Constructor & Destructor Documentation

◆ __construct()

ilObjGlossarySubItemListGUI::__construct (   $a_cmd_class)

Constructor.

Reimplemented from ilSubItemListGUI.

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

22 {
23 global $DIC;
24
25 parent::__construct($a_cmd_class);
26 $this->user = $DIC->user();
27 }
user()
Definition: user.php:4
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$DIC
Definition: xapitoken.php:46

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and user().

+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

ilObjGlossarySubItemListGUI::getHTML ( )

get html

Returns

Reimplemented from ilSubItemListGUI.

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

34 {
37
38 $lng->loadLanguageModule('content');
39 foreach ($this->getSubItemIds(true) as $sub_item) {
40 if (is_object($this->getHighlighter()) and strlen($this->getHighlighter()->getContent($this->getObjId(), $sub_item))) {
41 $this->tpl->setCurrentBlock('sea_fragment');
42 $this->tpl->setVariable('TXT_FRAGMENT', $this->getHighlighter()->getContent($this->getObjId(), $sub_item));
43 $this->tpl->parseCurrentBlock();
44 }
45 $this->tpl->setCurrentBlock('subitem');
46 $this->tpl->setVariable('SUBITEM_TYPE', $lng->txt('cont_term'));
47 $this->tpl->setVariable('SEPERATOR', ':');
48
49 #$this->getItemListGUI()->setChildId($sub_item);
50
51 $src_string = ilUserSearchCache::_getInstance($ilUser->getId())->getUrlEncodedQuery();
52
53 $this->tpl->setVariable('LINK', ilLink::_getLink(
54 $this->getRefId(),
55 'git',
56 array(
57 'target' => 'git_' . $sub_item . '_' . $this->getRefId(),
58 'srcstring' => 1
59 )
60 ));
61
62 $this->tpl->setVariable('TARGET', $this->getItemListGUI()->getCommandFrame(''));
63 $this->tpl->setVariable('TITLE', ilGlossaryTerm::_lookGlossaryTerm($sub_item));
64
65 // begin-patch mime_filter
66 if (count($this->getSubItemIds(true)) > 1) {
67 $this->parseRelevance($sub_item);
68 }
69 // end-patch mime_filter
70
71 $this->tpl->parseCurrentBlock();
72 }
73
74 $this->showDetailsLink();
75
76 return $this->tpl->get();
77 }
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.
$ilUser
Definition: imgupload.php:18

References $ilUser, ilSubItemListGUI\$lng, $user, 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:

Field Documentation

◆ $user

ilObjGlossarySubItemListGUI::$user
protected

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

Referenced by getHTML().


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