32 $this->objDefinition = $DIC[
'objDefinition'];
44 if (!array_key_exists(
$a_type, self::$list_by_type)) {
45 $class = $this->objDefinition->getClassName(
$a_type);
52 throw new ilException(sprintf(
"Could not find a class location for object type: %s",
$a_type));
55 $full_class =
'ilObj' . $class .
'ListGUI';
56 require_once
$location .
'/class.' . $full_class .
'.php';
57 $item_list_gui =
new $full_class();
59 $item_list_gui->setContainerObject($this->block);
60 $item_list_gui->enableNotes(
false);
61 $item_list_gui->enableComments(
false);
62 $item_list_gui->enableTags(
false);
64 $item_list_gui->enableIcon(
true);
65 $item_list_gui->enableDelete(
false);
66 $item_list_gui->enableCut(
false);
67 $item_list_gui->enableCopy(
false);
68 $item_list_gui->enableLink(
false);
69 $item_list_gui->enableInfoScreen(
true);
70 $item_list_gui->enableSubscribe($this->block->getViewSettings()->enabledSelectedItems());
72 if ($this->block->getCurrentDetailLevel() < 3 || $this->block->isManagedView()) {
73 $item_list_gui->enableDescription(
false);
74 $item_list_gui->enableProperties(
false);
75 $item_list_gui->enablePreconditions(
false);
76 $item_list_gui->enableNoticeProperties(
false);
79 if ($this->block->getCurrentDetailLevel() < 2 || $this->block->isManagedView()) {
80 $item_list_gui->enableCommands(
true,
true);
83 self::$list_by_type[
$a_type] = $item_list_gui;
86 return (clone self::$list_by_type[
$a_type]);
Class ilPDSelectedItemsBlockListGUIFactory.
__construct(ilPDSelectedItemsBlockGUI $block)
ilPDSelectedItemsBlockListGUIFactory constructor.
Create styles array
The data for the language used.
BlockGUI class for Selected Items on Personal Desktop.