19 declare(strict_types=1);
34 protected \ILIAS\DI\UIServices
$ui;
38 protected int $type = self::TYPE_STD;
43 bool $new_viewport =
false 50 $this->
ui = $DIC->ui();
51 $this->
toolbar = $DIC->toolbar();
56 $this->type = self::TYPE_EMPH;
62 $this->type = self::TYPE_PRIM;
68 $link = $this->
ui->factory()->link()->standard(
72 if ($this->new_viewport) {
73 $link = $link->withOpenInNewViewport(
true);
86 if (is_null($toolbar)) {
92 $toolbar->addComponent($link);
98 return $this->
ui->renderer()->render($this->
getLink());
Interface Observer Contains several chained tasks and infos about them.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(string $caption, string $href, bool $new_viewport=false)
toToolbar(bool $sticky=false, ?\ilToolbarGUI $toolbar=null)