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;
26 parent::__construct($a_parent_obj, $a_parent_cmd);
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");
53 include_once(
"./Services/Object/classes/class.ilObjectListGUIPreloader.php");
55 foreach($nodes as $node)
57 $preloader->addItem($node[
"obj_id"], $node[
"type"]);
59 $preloader->preload();
63 $this->shared_objects = $this->access_handler->getObjectsIShare();
72 $class = $objDefinition->getClassName($node[
"type"]);
73 $location = $objDefinition->getLocation($node[
"type"]);
74 $full_class =
"ilObj".$class.
"ListGUI";
76 include_once(
$location.
"/class.".$full_class.
".php");
77 $item_list_gui =
new $full_class();
80 $item_list_gui->enableDelete(
true);
81 $item_list_gui->enableCut(
true);
82 $item_list_gui->enableSubscribe(
false);
83 $item_list_gui->enablePayment(
false);
84 $item_list_gui->enableLink(
false);
85 $item_list_gui->enablePath(
false);
86 $item_list_gui->enableLinkedPath(
false);
87 $item_list_gui->enableSearchFragments(
true);
88 $item_list_gui->enableRelevance(
false);
89 $item_list_gui->enableIcon(
true);
90 $item_list_gui->enableTimings(
false);
94 $item_list_gui->enableNotes(
true);
95 $item_list_gui->enableCopy($objDefinition->allowCopy($node[
"type"]));
97 if($node[
"type"] ==
"file")
99 $item_list_gui->enableRepositoryTransfer(
true);
102 $item_list_gui->setContainerObject($this->parent_obj);
104 if(in_array($node[
"type"], array(
"file",
"blog")))
107 $ilCtrl->setParameterByClass(
"ilworkspaceaccessgui",
"wsp_id", $node[
"wsp_id"]);
108 $share_link = $ilCtrl->getLinkTargetByClass(array(
"ilObj".$class.
"GUI",
"ilworkspaceaccessgui"),
"share");
109 $item_list_gui->addCustomCommand($share_link,
"wsp_permissions");
112 if(in_array($node[
"obj_id"], $this->shared_objects))
114 $item_list_gui->addCustomProperty($this->lng->txt(
"status"), $this->lng->txt(
"wsp_status_shared"),
true,
true);
118 if($html = $item_list_gui->getListItemHTML($node[
"wsp_id"], $node[
"obj_id"],
121 $this->tpl->setVariable(
"ITEM_LIST_NODE", $html);
getChilds($a_node_id, $a_order="", $a_direction="ASC")
get child nodes of given node public
setEnableNumInfo($a_val)
Set enable num info.
Tree handler for personal workspace.
Preloader for object list GUIs.
__construct($a_parent_obj, $a_parent_cmd, $a_node_id, $a_access_handler)
setLimit($a_limit=0, $a_default_limit=0)
set max.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Class ilObjWorkspaceFolderTableGUI.