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");
80 $item_list_gui->enableDelete(
true);
81 $item_list_gui->enableCut(
true);
82 $item_list_gui->enableSubscribe(
false);
83 $item_list_gui->enableLink(
false);
84 $item_list_gui->enablePath(
false);
85 $item_list_gui->enableLinkedPath(
false);
86 $item_list_gui->enableSearchFragments(
true);
87 $item_list_gui->enableRelevance(
false);
88 $item_list_gui->enableIcon(
true);
89 $item_list_gui->enableTimings(
false);
93 $item_list_gui->enableNotes(
true);
94 $item_list_gui->enableCopy($objDefinition->allowCopy($node[
"type"]));
96 if($node[
"type"] ==
"file")
98 $item_list_gui->enableRepositoryTransfer(
true);
101 $item_list_gui->setContainerObject($this->parent_obj);
103 if(in_array($node[
"type"],
array(
"file",
"blog")))
106 $ilCtrl->setParameterByClass(
"ilworkspaceaccessgui",
"wsp_id", $node[
"wsp_id"]);
107 $share_link = $ilCtrl->getLinkTargetByClass(
array(
"ilObj".$class.
"GUI",
"ilworkspaceaccessgui"),
"share");
108 $item_list_gui->addCustomCommand($share_link,
"wsp_permissions");
111 if(in_array($node[
"obj_id"], $this->shared_objects))
113 $item_list_gui->addCustomProperty($this->lng->txt(
"status"), $this->lng->txt(
"wsp_status_shared"),
true,
true);
117 if(
$html = $item_list_gui->getListItemHTML($node[
"wsp_id"], $node[
"obj_id"],
118 $node[
"title"], $node[
"description"]))
120 $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)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
Class ilObjWorkspaceFolderTableGUI.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setLimit($a_limit=0, $a_default_limit=0)