19declare(strict_types=1);
44 public static function type(): string
52 $this->data_factory =
new DataFactory();
61 $obj_id =
ilObject::_lookupObjId($parent_ref_id);
62 foreach ($subitem_ids as $subitem_id) {
63 switch ($subitem_id->type()) {
86 $link = rtrim(ILIAS_HTTP_PATH,
'/') .
'/' .
87 ilObjWikiGUI::getGotoLink($parent_ref_id, $title) .
'&srcstring=1';
91 $this->data_factory->uri($link),
93 $this->lng->txt(
'obj_pg')
102 $this->
ctrl->setParameterByClass(
ilWikiPageGUI::class,
'file_id',
'il__file_' . $subitem_id->
id());
103 $this->
ctrl->setParameterByClass(ilWikiPageGUI::class,
'ref_id', $parent_ref_id);
104 $link = rtrim(ILIAS_HTTP_PATH,
'/') .
'/' .
105 $this->
ctrl->getLinkTargetByClass([ilWikiHandlerGUI::class, ilObjWikiGUI::class, ilWikiPageGUI::class],
'downloadFile');
106 $this->
ctrl->clearParameterByClass(ilWikiPageGUI::class,
'file_id');
107 $this->
ctrl->clearParameterByClass(ilWikiPageGUI::class,
'ref_id');
108 return $factory->
get(
111 $this->data_factory->uri($link),
113 $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.
getSubitemProperties(PropertiesFactory $factory, int $parent_ref_id, ID ... $subitem_ids)
Order of the output should respect the order of the subitem_ids.
getPropertiesForFile(PropertiesFactory $factory, int $parent_ref_id, ID $subitem_id)
getPropertiesForWikiPage(PropertiesFactory $factory, int $parent_ref_id, ID $subitem_id, string $title)
static type()
Type of the parent object.
DataFactory $data_factory
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilWikiPage GUI class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static lookupTitle(int $a_page_id, string $lang="-")
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...