ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 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 UIServices  $ui 
)

ilBiblEntryPresentationGUI constructor.

Definition at line 33 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 74 of file class.ilBiblEntryDetailPresentationGUI.php.

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

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

◆ getLibrariesDeck()

ilBiblEntryDetailPresentationGUI::getLibrariesDeck ( )
private

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

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

Referenced by getHTML().

89  : ?Sub
90  {
91  $settings = $this->facade->libraryFactory()->getAll();
92  if ($settings === []) {
93  return null;
94  }
95 
96  $data = [];
97 
98  foreach ($settings as $set) {
99  $presentation = new ilBiblLibraryPresentationGUI($set, $this->facade, $this->ctrl, $this->lng, $this->ui);
100  $data[$set->getName()] = $presentation->getButton($this->facade, $this->entry);
101  }
102 
103  return $this->ui->factory()->panel()->sub(
104  $this->lng->txt('bibl_settings_libraries'),
105  $this->ui->factory()->listing()->characteristicValue()->text($data)
106  );
107  }
This describes a Sub Panel.
Definition: Sub.php:29
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ilBiblLibraryPresentationGUI.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOverviewPanel()

ilBiblEntryDetailPresentationGUI::getOverviewPanel ( )
private

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

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

Referenced by getHTML().

109  : Sub
110  {
111  $attributes = $this->facade->attributeFactory()->getAttributesForEntry($this->entry);
112  $sorted = $this->facade->attributeFactory()->sortAttributes($attributes);
113  $data = [];
114  foreach ($sorted as $attribute) {
115  $translated = $this->facade->translationFactory()->translateAttribute($attribute);
116  $data[$translated] = $attribute->getValue();
117  }
118 
119  $content = $this->ui->factory()->listing()->characteristicValue()->text($data);
120 
121  return $this->ui->factory()->panel()->sub('', $content);
122  }
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 49 of file class.ilBiblEntryDetailPresentationGUI.php.

References ILIAS\Repository\help().

Referenced by __construct().

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

◆ initPermanentLink()

ilBiblEntryDetailPresentationGUI::initPermanentLink ( )
private

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

Referenced by __construct().

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

◆ initTabs()

ilBiblEntryDetailPresentationGUI::initTabs ( )
private

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

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

Referenced by __construct().

55  : void
56  {
57  $this->tabs->clearTargets();
58  $this->tabs->setBackTarget(
59  $this->lng->txt("back"),
60  $this->ctrl->getLinkTargetByClass(ilObjBibliographicGUI::class, ilObjBibliographicGUI::CMD_SHOW_CONTENT)
61  );
62  }
+ 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: