ILIAS  trunk Revision v11.0_alpha-1851-ga8564da6fed
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjLinkResourceSubItemListGUI Class Reference

Show glossary terms. More...

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

Public Member Functions

 __construct (string $cmd_class)
 
 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 ()
 

Protected Attributes

ilWebLinkRepository $web_link_repo = null
 
ilSetting $settings
 
- 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 = ''
 

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 ()
 
- Static Protected Attributes inherited from ilSubItemListGUI
static int $MAX_SUBITEMS = 5
 
static array $details = []
 

Detailed Description

Show glossary terms.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilObjLinkResourceSubItemListGUI::__construct ( string  $cmd_class)

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

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

31  {
32  global $DIC;
34  $this->settings = $DIC->settings();
35  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

ilObjLinkResourceSubItemListGUI::getHTML ( )

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

References Vendor\Package\$e, ILIAS\UI\Implementation\Component\Input\ViewControl\getContent(), ilSubItemListGUI\getHighlighter(), ilSubItemListGUI\getObjId(), ilSubItemListGUI\getSubItemIds(), ILIAS\Repository\lng(), and ilSubItemListGUI\showDetailsLink().

37  : string
38  {
39  $this->lng->loadLanguageModule('webr');
40  $this->web_link_repo = new ilWebLinkDatabaseRepository($this->getObjId());
41  foreach ($this->getSubItemIds(true) as $sub_item) {
42  try {
43  $item = $this->web_link_repo->getItemByLinkId($sub_item);
45  // ignore indexed but not existent weblink
46  continue;
47  }
48  if (is_object($this->getHighlighter()) && strlen(
49  $this->getHighlighter()->getContent(
50  $this->getObjId(),
51  $sub_item
52  )
53  )) {
54  $this->tpl->setCurrentBlock('sea_fragment');
55  $this->tpl->setVariable(
56  'TXT_FRAGMENT',
57  $this->getHighlighter()->getContent(
58  $this->getObjId(),
59  $sub_item
60  )
61  );
62  $this->tpl->parseCurrentBlock();
63  }
64  $this->tpl->setCurrentBlock('subitem');
65  $this->tpl->setVariable('SUBITEM_TYPE', $this->lng->txt('webr'));
66  $this->tpl->setVariable('SEPERATOR', ':');
67  $this->tpl->setVariable(
68  'LINK',
69  $item->getResolvedLink((bool) $this->settings->get('links_dynamic'))
70  );
71  $this->tpl->setVariable('TARGET', '_blank');
72  $this->tpl->setVariable('TITLE', $item->getTitle());
73  $this->tpl->parseCurrentBlock();
74  }
75 
76  $this->showDetailsLink();
77  return $this->tpl->get();
78  }
getSubItemIds(bool $limited=false)
+ Here is the call graph for this function:

Field Documentation

◆ $settings

ilSetting ilObjLinkResourceSubItemListGUI::$settings
protected

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

◆ $web_link_repo

ilWebLinkRepository ilObjLinkResourceSubItemListGUI::$web_link_repo = null
protected

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


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