4include_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);
 
  106                                $data[] = array(
"id" => $obj_id,
 
  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"));
 
static _lookupTitle($a_id)
lookup object title
static _lookupType($a_id, $a_reference=false)
lookup object type
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
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)
Default behaviour is:
const PERMISSION_REGISTERED
const PERMISSION_ALL_PASSWORD
Workspace access handler table GUI class.
importData()
Import data from DB.
fillRow($a_set)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd, $a_node_id, $a_handler)
Constructor.