14 include_once
"Services/Table/classes/class.ilTable2GUI.php";
28 public function __construct($a_parent_obj, $a_parent_cmd, $a_node_id, $a_access_handler)
32 $this->ctrl = $DIC->ctrl();
33 $this->
user = $DIC->user();
34 $this->obj_definition = $DIC[
"objDefinition"];
37 $this->node_id = $a_node_id;
38 $this->
setId(
"tbl_wfld");
39 $this->access_handler = $a_access_handler;
41 parent::__construct($a_parent_obj, $a_parent_cmd);
46 $this->
addColumn($this->lng->txt(
"content"));
50 $this->
setRowTemplate(
"tpl.list_row.html",
"Modules/WorkspaceFolder");
62 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
64 $nodes = $tree->
getChilds($this->node_id,
"title");
67 include_once(
"./Services/Object/classes/class.ilObjectListGUIPreloader.php");
69 foreach ($nodes as $node) {
70 $preloader->addItem($node[
"obj_id"], $node[
"type"]);
72 $preloader->preload();
76 $this->shared_objects = $this->access_handler->getObjectsIShare();
86 $class = $objDefinition->getClassName($node[
"type"]);
87 $location = $objDefinition->getLocation($node[
"type"]);
88 $full_class =
"ilObj" . $class .
"ListGUI";
90 include_once(
$location .
"/class." . $full_class .
".php");
94 $item_list_gui->enableDelete(
true);
95 $item_list_gui->enableCut(
true);
96 $item_list_gui->enableSubscribe(
false);
97 $item_list_gui->enableLink(
false);
98 $item_list_gui->enablePath(
false);
99 $item_list_gui->enableLinkedPath(
false);
100 $item_list_gui->enableSearchFragments(
true);
101 $item_list_gui->enableRelevance(
false);
102 $item_list_gui->enableIcon(
true);
103 $item_list_gui->enableTimings(
false);
107 $item_list_gui->enableNotes(
true);
108 $item_list_gui->enableCopy($objDefinition->allowCopy($node[
"type"]));
110 if ($node[
"type"] ==
"file") {
111 $item_list_gui->enableRepositoryTransfer(
true);
114 $item_list_gui->setContainerObject($this->parent_obj);
116 if (in_array($node[
"type"],
array(
"file",
"blog"))) {
118 $ilCtrl->setParameterByClass(
"ilworkspaceaccessgui",
"wsp_id", $node[
"wsp_id"]);
119 $share_link =
$ilCtrl->getLinkTargetByClass(
array(
"ilObj" . $class .
"GUI",
"ilworkspaceaccessgui"),
"share");
120 $item_list_gui->addCustomCommand($share_link,
"wsp_permissions");
123 if (in_array($node[
"obj_id"], $this->shared_objects)) {
124 $item_list_gui->addCustomProperty($this->lng->txt(
"status"), $this->lng->txt(
"wsp_status_shared"),
true,
true);
128 if (
$html = $item_list_gui->getListItemHTML(
134 $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.
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.
Class ilObjWorkspaceFolderTableGUI.
setLimit($a_limit=0, $a_default_limit=0)