32 $this->objDefinition = $DIC[
'objDefinition'];
42 public function byType($a_type)
45 if (!array_key_exists($a_type, self::$list_by_type)) {
46 $class = $this->objDefinition->getClassName($a_type);
48 throw new ilException(sprintf(
"Could not find a class for object type: %s", $a_type));
51 $location = $this->objDefinition->getLocation($a_type);
53 throw new ilException(sprintf(
"Could not find a class location for object type: %s", $a_type));
56 $full_class =
'ilObj' . $class .
'ListGUI';
57 require_once
$location .
'/class.' . $full_class .
'.php';
58 $item_list_gui =
new $full_class();
60 $item_list_gui->setContainerObject($this->block);
61 $item_list_gui->enableNotes(
false);
62 $item_list_gui->enableComments(
false);
63 $item_list_gui->enableTags(
false);
65 $item_list_gui->enableIcon(
true);
66 $item_list_gui->enableDelete(
false);
67 $item_list_gui->enableCut(
false);
68 $item_list_gui->enableCopy(
false);
69 $item_list_gui->enableLink(
false);
70 $item_list_gui->enableInfoScreen(
true);
72 $item_list_gui->enableCommands(
true,
true);
74 self::$list_by_type[$a_type] = $item_list_gui;
77 return (clone self::$list_by_type[$a_type]);
Class ilPDSelectedItemsBlockViewGUI.
Class ilPDSelectedItemsBlockListGUIFactory.
ilPDSelectedItemsBlockGUI: ilColumnGUI ilPDSelectedItemsBlockGUI: ilCommonActionDispatcherGUI ...
__construct(ilPDSelectedItemsBlockGUI $block, ilPDSelectedItemsBlockViewGUI $blockView)
ilPDSelectedItemsBlockListGUIFactory constructor.