19declare(strict_types=1);
42 public static function type(): string
50 $this->data_factory =
new DataFactory();
59 $obj_id =
ilObject::_lookupObjId($parent_ref_id);
60 foreach ($subitem_ids as $subitem_id) {
61 switch ($subitem_id->type()) {
67 $this->
lng->txt(
'obj_pg')
76 $this->
lng->txt(
'obj_st')
93 string $presentable_type
96 $this->
ctrl->setParameterByClass(ilLMPresentationGUI::class,
'obj_id', $subitem_id->
id());
97 $link = rtrim(ILIAS_HTTP_PATH,
'/') .
'/' .
98 $this->
ctrl->getLinkTargetByClass(ilLMPresentationGUI::class,
'');
99 $this->
ctrl->clearParameterByClass(ilLMPresentationGUI::class,
'obj_id');
100 $this->
ctrl->clearParameterByClass(ilLMPresentationGUI::class,
'ref_id');
101 return $factory->
get(
104 $this->data_factory->uri($link),
116 $this->
ctrl->setParameterByClass(ilLMPresentationGUI::class,
'file_id',
'il__file_' . $subitem_id->
id());
117 $link = rtrim(ILIAS_HTTP_PATH,
'/') .
'/' .
118 $this->
ctrl->getLinkTargetByClass(ilLMPresentationGUI::class,
'downloadFile');
119 $this->
ctrl->clearParameterByClass(ilLMPresentationGUI::class,
'file_id');
120 $this->
ctrl->clearParameterByClass(ilLMPresentationGUI::class,
'ref_id');
121 return $factory->
get(
124 $this->data_factory->uri($link),
126 $this->lng->txt(
'obj_file')
Customizing of pimple-DIC for ILIAS.
language()
Get interface to the i18n service.
ctrl()
Get the interface to the control structure.
static type()
Type of the parent object.
getPropertiesForLMObject(PropertiesFactory $factory, int $parent_ref_id, ID $subitem_id, string $presentable_type)
DataFactory $data_factory
getPropertiesForFile(PropertiesFactory $factory, int $parent_ref_id, ID $subitem_id)
getSubitemProperties(PropertiesFactory $factory, int $parent_ref_id, ID ... $subitem_ids)
Order of the output should respect the order of the subitem_ids.
static _lookupTitle(int $a_obj_id)
Class ilLMPresentationGUI GUI class for learning module presentation.
Class ilObject Basic functions for all objects.
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
static _lookupTitle(int $obj_id)
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...