49 public static function new():
self 51 if (is_null(static::$instance) ===
true) {
53 static::$instance =
new self(
60 $DIC[
'ilNavigationHistory']
64 return static::$instance;
69 $this->tpl->addOnLoadCode($a_code);
74 $this->
ui->mainTemplate()->addJavaScript($filePath);
79 $this->
ui->mainTemplate()->setOnScreenMessage(
'failure', $message,
true);
84 $this->
ui->mainTemplate()->setOnScreenMessage(
'success', $message,
true);
89 $this->error->raiseError($message);
94 $this->
ui->mainTemplate()->setOnScreenMessage(
'info', $message,
true);
97 public function addLocatorItem(
string $title,
string $link,
int $itemId): void
99 $this->locatorGui->addItem($title, $link,
"", $itemId);
104 $this->
tabs->clearTargets();
105 $this->
tabs->clearSubTabs();
108 public function setBackTab(
string $label,
string $link): void
110 $this->
tabs->setBackTarget($label, $link);
115 $this->navigationHistory->addItem($refId, $link,
"dcl");
120 $this->tpl->addCss($filePath);
125 $this->tpl->setPermanentLink(
"dcl", $refId,
"_" . $tableviewId);
130 $this->tpl->setContent($content);
displayErrorMessage(string $message)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider .
addLocatorItem(string $title, string $link, int $itemId)
addCssFile(string $filePath)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
displayInfoMessage(string $message)
setScreenIdComponent(string $a_comp)
addDataCollectionEndpointToNavigationHistory(int $refId, string $link)
setContent(string $content)
displaySuccessMessage(string $message)
displayFailureMessage(string $message)
Navigation History of Repository Items.
addJavaScriptFile(string $filePath)
setBackTab(string $label, string $link)
addPermaLinkTableView(int $refId, int $tableviewId)
Error Handling & global info handling uses PEAR error class.
__construct(ilGlobalTemplateInterface $tpl, ILIAS\DI\UIServices $ui, ilTabsGUI $tabs, ilErrorHandling $error, ilLocatorGUI $locatorGui, ilHelpGUI $help, ilNavigationHistory $navigationHistory)
addOnLoadJavaScriptCode(string $a_code)
ilNavigationHistory $navigationHistory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilGlobalTemplateInterface $tpl