19 declare(strict_types=1);
35 $this->objDefinition = $DIC[
'objDefinition'];
46 if (!array_key_exists($a_type, self::$list_by_type)) {
47 $class = $this->objDefinition->getClassName($a_type);
49 throw new ilException(sprintf(
"Could not find a class for object type: %s", $a_type));
52 $location = $this->objDefinition->getLocation($a_type);
54 throw new ilException(sprintf(
"Could not find a class location for object type: %s", $a_type));
57 $full_class =
'ilObj' . $class .
'ListGUI';
58 require_once
$location .
'/class.' . $full_class .
'.php';
59 $item_list_gui =
new $full_class();
61 $item_list_gui->setContainerObject($this->block);
62 $item_list_gui->enableNotes(
false);
63 $item_list_gui->enableComments(
false);
64 $item_list_gui->enableTags(
false);
66 $item_list_gui->enableIcon(
true);
67 $item_list_gui->enableDelete(
false);
68 $item_list_gui->enableCut(
false);
69 $item_list_gui->enableCopy(
false);
70 $item_list_gui->enableLink(
false);
71 $item_list_gui->enableInfoScreen(
true);
73 $item_list_gui->enableCommands(
true,
true);
75 self::$list_by_type[$a_type] = $item_list_gui;
78 return (clone self::$list_by_type[$a_type]);
ilPDSelectedItemsBlockViewGUI $blockView
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilPDSelectedItemsBlockGUI $block
parses the objects.xml it handles the xml-description of all ilias objects
static array $list_by_type
ilPDSelectedItemsBlockGUI: ilColumnGUI ilPDSelectedItemsBlockGUI: ilCommonActionDispatcherGUI ...
__construct(ilPDSelectedItemsBlockGUI $block, ilPDSelectedItemsBlockViewGUI $blockView)
ilObjectDefinition $objDefinition