19declare(strict_types=1);
44 $this->ldoc =
$dic[
'legalDocuments'];
55 fn(array $args) => $this->
item(...$args),
56 $this->ldoc->modifyFooter($this->collect([]))()
60 private function collect(array $items): Closure
62 return function (...$args) use ($items) {
66 return $this->
collect(array_merge($items, [$args]));
72 $false = fn() =>
false;
73 $id = $this->id_factory->identifier(
$id);
75 $item = match (
true) {
76 $obj ===
null => $this->item_factory->link(
$id, $title)
77 ->withAction(
new URI(ILIAS_HTTP_PATH))
78 ->withAvailableCallable($false)
79 ->withVisibilityCallable($false),
80 $obj instanceof
Modal => $this->item_factory->modal(
$id, $title, $obj),
81 default => $this->item_factory->link(
$id, $title)->withAction($obj),
84 return $item->withParent($this->parent_id);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Customizing of pimple-DIC for ILIAS.
Builds a Color from either hex- or rgb values.
The scope of this class is split ilias-conform URI's into components.
Interface IdentificationInterface.
This describes commonalities between the different modals.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc