4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
27 function __construct($a_parent_obj, $a_parent_cmd, $a_handler, $a_user_id, $a_parent_node_id)
31 $this->handler = $a_handler;
32 $this->parent_node_id = $a_parent_node_id;
36 $this->
setId(
"il_tbl_wspsh");
38 $this->
setTitle($lng->txt(
"wsp_shared_resources"));
40 $this->
addColumn($this->lng->txt(
"content"));
46 $this->
setRowTemplate(
"tpl.list_row.html",
"Modules/WorkspaceFolder");
66 $objects = $this->handler->getSharedObjects($a_user_id);
69 foreach($objects as $wsp_id => $obj_id)
73 $is_password = (!in_array($ilUser->getId(), $perms) &&
83 "password" => $is_password
100 $class = $objDefinition->getClassName($node[
"type"]);
101 $location = $objDefinition->getLocation($node[
"type"]);
102 $full_class =
"ilObj".$class.
"ListGUI";
104 include_once(
$location.
"/class.".$full_class.
".php");
105 $item_list_gui =
new $full_class();
108 $item_list_gui->enableDelete(
false);
109 $item_list_gui->enableCut(
false);
110 $item_list_gui->enableSubscribe(
false);
111 $item_list_gui->enablePayment(
false);
112 $item_list_gui->enableLink(
false);
113 $item_list_gui->enablePath(
false);
114 $item_list_gui->enableLinkedPath(
false);
115 $item_list_gui->enableSearchFragments(
false);
116 $item_list_gui->enableRelevance(
false);
117 $item_list_gui->enableIcon(
true);
118 $item_list_gui->restrictToGoto(
true);
119 $item_list_gui->enableInfoScreen(
true);
122 if($node[
"type"] ==
"file")
124 $ilCtrl->setParameter($this->parent_obj,
"wsp_id",
125 $this->parent_node_id);
126 $ilCtrl->setParameter($this->parent_obj,
"item_ref_id",
128 $copy = $ilCtrl->getLinkTarget($this->parent_obj,
"copyshared");
129 $item_list_gui->addCustomCommand($copy,
"copy");
132 $item_list_gui->setContainerObject($this->parent_obj);
134 if($node[
"password"])
136 $item_list_gui->addCustomProperty($this->lng->txt(
"status"),
137 $this->lng->txt(
"wsp_password_protected_resource"),
true,
true);
140 if($html = $item_list_gui->getListItemHTML($node[
"wsp_id"], $node[
"obj_id"],
143 $this->tpl->setVariable(
"ITEM_LIST_NODE", $html);