19declare(strict_types=1);
43 public static function type(): string
51 $this->data_factory =
new DataFactory();
52 $this->static_url =
$dic[
'static_url'];
61 foreach ($subitem_ids as $subitem_id) {
63 switch ($subitem_id->type()) {
65 $link = $this->static_url->builder()->build(
67 $this->data_factory->refId($parent_ref_id),
73 $this->
ctrl->setParameterByClass(ilMediaPoolPresentationGUI::class,
'ref_id', $parent_ref_id);
74 $this->
ctrl->setParameterByClass(ilMediaPoolPresentationGUI::class,
'force_filter', $subitem_id->id());
75 $link = $this->data_factory->uri(rtrim(ILIAS_HTTP_PATH,
'/') .
'/' .
76 $this->
ctrl->getLinkTargetByClass(ilMediaPoolPresentationGUI::class,
'allMedia'));
77 $this->
ctrl->clearParameterByClass(ilMediaPoolPresentationGUI::class,
'force_filter');
78 $this->
ctrl->clearParameterByClass(ilMediaPoolPresentationGUI::class,
'ref_id');
83 $parent_id = $pool->getParentId((
int) $subitem_id->id());
84 $link = $this->static_url->builder()->build(
86 $this->data_factory->refId($parent_ref_id),
87 $parent_id ===
null ? [] : [$parent_id]
99 $this->lng->txt(
'obj_' . $subitem_id->type())
Customizing of pimple-DIC for ILIAS.
language()
Get interface to the i18n service.
ctrl()
Get the interface to the control structure.
get(ID $id, string $title, ?URI $link_to_subitem, bool $open_link_in_new_viewport, string $presentable_subitem_type)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...