14 include_once
"Services/Table/classes/class.ilTable2GUI.php";
18 function __construct($a_parent_obj, $a_parent_cmd, $a_node_id, $a_access_handler)
22 $this->node_id = $a_node_id;
23 $this->
setId(
"tbl_wfld");
24 $this->access_handler = $a_access_handler;
31 $this->
addColumn($this->lng->txt(
"content"));
35 $this->
setRowTemplate(
"tpl.list_row.html",
"Modules/WorkspaceFolder");
47 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
49 $nodes = $tree->
getChilds($this->node_id,
"title");
51 $this->shared_objects = $this->access_handler->getObjectsIShare();
60 $class = $objDefinition->getClassName($node[
"type"]);
61 $location = $objDefinition->getLocation($node[
"type"]);
62 $full_class =
"ilObj".$class.
"ListGUI";
64 include_once(
$location.
"/class.".$full_class.
".php");
65 $item_list_gui =
new $full_class();
68 $item_list_gui->enableDelete(
true);
69 $item_list_gui->enableCut(
true);
70 $item_list_gui->enableSubscribe(
false);
71 $item_list_gui->enablePayment(
false);
72 $item_list_gui->enableLink(
false);
73 $item_list_gui->enablePath(
false);
74 $item_list_gui->enableLinkedPath(
false);
75 $item_list_gui->enableSearchFragments(
true);
76 $item_list_gui->enableRelevance(
false);
77 $item_list_gui->enableIcon(
true);
78 $item_list_gui->enableTimings(
false);
82 $item_list_gui->enableNotes(
true);
83 $item_list_gui->enableCopy($objDefinition->allowCopy($node[
"type"]));
85 if($node[
"type"] ==
"file")
87 $item_list_gui->enableRepositoryTransfer(
true);
90 $item_list_gui->setContainerObject($this->parent_obj);
92 if(in_array($node[
"type"], array(
"file",
"blog")))
95 $ilCtrl->setParameterByClass(
"ilworkspaceaccessgui",
"wsp_id", $node[
"wsp_id"]);
96 $share_link = $ilCtrl->getLinkTargetByClass(array(
"ilObj".$class.
"GUI",
"ilworkspaceaccessgui"),
"share");
97 $item_list_gui->addCustomCommand($share_link,
"wsp_permissions");
100 if(in_array($node[
"obj_id"], $this->shared_objects))
102 $item_list_gui->addCustomProperty($this->lng->txt(
"status"), $this->lng->txt(
"wsp_status_shared"),
true,
true);
106 if($html = $item_list_gui->getListItemHTML($node[
"wsp_id"], $node[
"obj_id"],
109 $this->tpl->setVariable(
"ITEM_LIST_NODE", $html);