ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilBiblEntryDetailPresentationGUI Class Reference

Class ilBiblEntryDetailPresentationGUI. More...

+ Collaboration diagram for ilBiblEntryDetailPresentationGUI:

Public Member Functions

 __construct (public \ilBiblEntry $entry, protected ilBiblFactoryFacade $facade, protected ilCtrlInterface $ctrl, protected ilHelpGUI $help, protected ilLanguage $lng, protected ilGlobalTemplateInterface $main_tpl, protected ilTabsGUI $tabs, protected \ILIAS\DI\UIServices $ui)
 ilBiblEntryPresentationGUI constructor. More...
 
 getHTML ()
 

Private Member Functions

 initHelp ()
 
 initTabs ()
 
 initPermanentLink ()
 
 getLibrariesDeck ()
 
 getOverviewPanel ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilBiblEntryDetailPresentationGUI::__construct ( public \ilBiblEntry  $entry,
protected ilBiblFactoryFacade  $facade,
protected ilCtrlInterface  $ctrl,
protected ilHelpGUI  $help,
protected ilLanguage  $lng,
protected ilGlobalTemplateInterface  $main_tpl,
protected ilTabsGUI  $tabs,
protected \ILIAS\DI\UIServices  $ui 
)

ilBiblEntryPresentationGUI constructor.

Definition at line 34 of file class.ilBiblEntryDetailPresentationGUI.php.

References initHelp(), initPermanentLink(), and initTabs().

+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

ilBiblEntryDetailPresentationGUI::getHTML ( )

Definition at line 75 of file class.ilBiblEntryDetailPresentationGUI.php.

References getLibrariesDeck(), getOverviewPanel(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().

75  : string
76  {
77  $sub_panels = [
78  $this->getOverviewPanel()
79  ];
80 
81  if (($libraries = $this->getLibrariesDeck()) !== null) {
82  $sub_panels[] = $libraries;
83  }
84 
85  return $this->ui->renderer()->render(
86  $this->ui->factory()->panel()->report($this->lng->txt('detail_view'), $sub_panels)
87  );
88  }
+ Here is the call graph for this function:

◆ getLibrariesDeck()

ilBiblEntryDetailPresentationGUI::getLibrariesDeck ( )
private

Definition at line 90 of file class.ilBiblEntryDetailPresentationGUI.php.

References $data, ILIAS\LTI\ToolProvider\$settings, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().

Referenced by getHTML().

90  : ?Sub
91  {
92  $settings = $this->facade->libraryFactory()->getAll();
93  if (count($settings) === 0) {
94  return null;
95  }
96 
97  $data = [];
98 
99  foreach ($settings as $set) {
100  $presentation = new ilBiblLibraryPresentationGUI($set, $this->facade, $this->ctrl, $this->lng, $this->ui);
101  $data[$set->getName()] = $presentation->getButton($this->facade, $this->entry);
102  }
103 
104  return $this->ui->factory()->panel()->sub(
105  $this->lng->txt('bibl_settings_libraries'),
106  $this->ui->factory()->listing()->characteristicValue()->text($data)
107  );
108  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
This describes a Sub Panel.
Definition: Sub.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOverviewPanel()

ilBiblEntryDetailPresentationGUI::getOverviewPanel ( )
private

Definition at line 110 of file class.ilBiblEntryDetailPresentationGUI.php.

References $data, and ILIAS\Repository\ui().

Referenced by getHTML().

110  : Sub
111  {
112  $attributes = $this->facade->attributeFactory()->getAttributesForEntry($this->entry);
113  $sorted = $this->facade->attributeFactory()->sortAttributes($attributes);
114  $data = [];
115  foreach ($sorted as $attribute) {
116  $translated = $this->facade->translationFactory()->translateAttribute($attribute);
117  $data[$translated] = $attribute->getValue();
118  }
119 
120  $content = $this->ui->factory()->listing()->characteristicValue()->text($data);
121 
122  return $this->ui->factory()->panel()->sub('', $content);
123  }
This describes a Sub Panel.
Definition: Sub.php:29
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initHelp()

ilBiblEntryDetailPresentationGUI::initHelp ( )
private

Definition at line 50 of file class.ilBiblEntryDetailPresentationGUI.php.

References ILIAS\Repository\help().

Referenced by __construct().

50  : void
51  {
52  $this->help->setScreenIdComponent('bibl');
53  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initPermanentLink()

ilBiblEntryDetailPresentationGUI::initPermanentLink ( )
private

Definition at line 65 of file class.ilBiblEntryDetailPresentationGUI.php.

Referenced by __construct().

65  : void
66  {
67  $this->main_tpl->setPermanentLink(
68  "bibl",
69  $this->facade->iliasRefId(),
70  "_" . $this->entry->getId()
71  );
72  }
+ Here is the caller graph for this function:

◆ initTabs()

ilBiblEntryDetailPresentationGUI::initTabs ( )
private

Definition at line 56 of file class.ilBiblEntryDetailPresentationGUI.php.

References ilObjBibliographicGUI\CMD_SHOW_CONTENT, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().

Referenced by __construct().

56  : void
57  {
58  $this->tabs->clearTargets();
59  $this->tabs->setBackTarget(
60  $this->lng->txt("back"),
61  $this->ctrl->getLinkTargetByClass(ilObjBibliographicGUI::class, ilObjBibliographicGUI::CMD_SHOW_CONTENT)
62  );
63  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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