4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
32 public function __construct($a_parent_obj, $a_parent_cmd, $a_node_id, $a_handler)
36 $this->ctrl = $DIC->ctrl();
37 $this->lng = $DIC->language();
39 $lng = $DIC->language();
41 $this->node_id = $a_node_id;
42 $this->handler = $a_handler;
44 parent::__construct($a_parent_obj, $a_parent_cmd);
46 $this->
setId(
"il_tbl_wsacl");
50 $this->
addColumn($this->lng->txt(
"wsp_shared_with"),
"title");
51 $this->
addColumn($this->lng->txt(
"details"),
"type");
52 $this->
addColumn($this->lng->txt(
"actions"));
58 $this->
setRowTemplate(
"tpl.access_row.html",
"Services/PersonalWorkspace");
68 include_once(
"./Services/User/classes/class.ilUserUtil.php");
71 foreach ($this->handler->getPermissions($this->node_id) as $obj_id) {
78 $caption = $this->lng->txt(
"wsp_set_permission_registered");
83 $caption = $this->lng->txt(
"wsp_set_permission_all_password");
88 $caption = $this->lng->txt(
"wsp_set_permission_all");
94 $type_txt = $this->lng->txt(
"obj_" .
$type);
98 } elseif (
$type !=
"usr") {
102 $title = strip_tags($caption);
108 $data[] = array(
"id" => $obj_id,
110 "caption" => $caption,
111 "type" => $type_txt);
128 $this->tpl->setVariable(
"TITLE", $a_set[
"caption"]);
129 $this->tpl->setVariable(
"TYPE", $a_set[
"type"]);
131 $ilCtrl->setParameter($this->parent_obj,
"obj_id", $a_set[
"id"]);
132 $this->tpl->setVariable(
134 $ilCtrl->getLinkTarget($this->parent_obj,
"removePermission")
136 $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, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
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.
Workspace access handler table GUI class.
fillRow($a_set)
Fill table row.
importData()
Import data from DB.