4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
27 function __construct($a_parent_obj, $a_parent_cmd, $a_node_id, $a_handler)
31 $this->node_id = $a_node_id;
32 $this->handler = $a_handler;
36 $this->
setId(
"il_tbl_wsacl");
38 $this->
setTitle($lng->txt(
"wsp_shared_with"));
40 $this->
addColumn($this->lng->txt(
"type"),
"type");
41 $this->
addColumn($this->lng->txt(
"title"),
"title");
42 $this->
addColumn($this->lng->txt(
"actions"));
48 $this->
setRowTemplate(
"tpl.access_row.html",
"Services/PersonalWorkspace");
58 include_once(
"./Services/User/classes/class.ilUserUtil.php");
61 foreach($this->handler->getPermissions($this->node_id) as $obj_id)
72 $title =
$icon_alt = $this->lng->txt(
"wsp_set_permission_all_password");
73 $type =
"all_password";
79 $type =
"all_password";
86 $icon_alt = $this->lng->txt(
"obj_".$type);
99 $data[] = array(
"id" => $obj_id,
119 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
120 $this->tpl->setVariable(
"ICON", $a_set[
"icon"]);
121 $this->tpl->setVariable(
"ICON_ALT", $a_set[
"icon_alt"]);
123 $ilCtrl->setParameter($this->parent_obj,
"obj_id", $a_set[
"id"]);
124 $this->tpl->setVariable(
"HREF_CMD",
125 $ilCtrl->getLinkTarget($this->parent_obj,
"removePermission"));
126 $this->tpl->setVariable(
"TXT_CMD", $this->lng->txt(
"remove"));