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;
34 parent::__construct($a_parent_obj, $a_parent_cmd);
36 $this->
setId(
"il_tbl_wsacl");
38 $this->
setTitle($lng->txt(
"wsp_shared_table_title"));
40 $this->
addColumn($this->lng->txt(
"wsp_shared_with"),
"title");
41 $this->
addColumn($this->lng->txt(
"details"),
"type");
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)
70 $caption = $this->lng->txt(
"wsp_set_permission_registered");
75 $caption = $this->lng->txt(
"wsp_set_permission_all_password");
80 $caption = $this->lng->txt(
"wsp_set_permission_all");
86 $type_txt = $this->lng->txt(
"obj_".$type);
92 else if($type !=
"usr")
99 $title = strip_tags($caption);
108 "caption" => $caption,
109 "type" => $type_txt);
126 $this->tpl->setVariable(
"TITLE", $a_set[
"caption"]);
127 $this->tpl->setVariable(
"TYPE", $a_set[
"type"]);
129 $ilCtrl->setParameter($this->parent_obj,
"obj_id", $a_set[
"id"]);
130 $this->tpl->setVariable(
"HREF_CMD",
131 $ilCtrl->getLinkTarget($this->parent_obj,
"removePermission"));
132 $this->tpl->setVariable(
"TXT_CMD", $this->lng->txt(
"remove"));
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
const PERMISSION_ALL_PASSWORD
static _lookupTitle($a_id)
lookup object title
const PERMISSION_REGISTERED
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getNamePresentation($a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false)
Default behaviour is:
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct($a_parent_obj, $a_parent_cmd, $a_node_id, $a_handler)
Constructor.
Workspace access handler table GUI class.
fillRow($a_set)
Fill table row.
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.
importData()
Import data from DB.