19 declare(strict_types=1);
63 $tpl = new \ilTemplate(
"tpl.slot.html",
true,
true,
"components/ILIAS/BookingManager/BookingProcess");
65 $modal = $ui->factory()->modal()->roundtrip(
"", $ui->factory()->legacy()->content(
""));
66 $url = $this->
link .
'&replaceSignal=' . $modal->getReplaceSignal()->getId();
67 $modal = $modal->withAsyncRenderUrl(
$url);
68 $button = $ui->factory()->button()->shy($this->title,
"#")
69 ->withOnClick($modal->getShowSignal());
71 $tpl->setVariable(
"OBJECT_LINK", $ui->renderer()->render([$button, $modal]));
72 $tpl->setVariable(
"TIME", $this->
from .
"-" . $this->
to);
73 $tpl->setVariable(
"COLOR_NR", $this->color_nr);
74 $tpl->setVariable(
"AVAILABILITY",
"(" . $this->available .
") ");
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(string $link, string $from, string $to, int $from_ts, int $to_ts, string $title, int $available, int $color_nr)
link(string $caption, string $href, bool $new_viewport=false)
to(\GdImage $image, ?int $quality=null)
Currently this is the only way to make a FileStream from a GD image resource.