48 $this->
ctrl = $DIC->ctrl();
49 $this->
lng = $DIC->language();
50 $ilCtrl = $DIC->ctrl();
51 $lng = $DIC->language();
53 $this->node_id = $a_node_id;
54 $this->handler = $a_handler;
58 $this->
setId(
"il_tbl_wsacl");
62 $this->
addColumn($this->
lng->txt(
"wsp_shared_with"),
"title");
70 $this->
setRowTemplate(
"tpl.access_row.html",
"Services/PersonalWorkspace");
83 foreach ($this->handler->getPermissions($this->node_id) as $obj_id) {
90 $caption = $this->
lng->txt(
"wsp_set_permission_registered");
95 $caption = $this->
lng->txt(
"wsp_set_permission_all_password");
100 $caption = $this->
lng->txt(
"wsp_set_permission_all");
106 $type_txt = $this->
lng->txt(
"obj_" .
$type);
110 } elseif (
$type !==
"usr") {
114 $title = strip_tags($caption);
120 $data[] = array(
"id" => $obj_id,
122 "caption" => $caption,
123 "type" => $type_txt);
134 protected function fillRow(array $a_set): void
139 $this->tpl->setVariable(
"TITLE", $a_set[
"caption"]);
140 $this->tpl->setVariable(
"TYPE", $a_set[
"type"]);
142 $ilCtrl->
setParameter($this->parent_obj,
"obj_id", $a_set[
"id"]);
143 $this->tpl->setVariable(
145 $ilCtrl->getLinkTarget($this->parent_obj,
"removePermission")
147 $this->tpl->setVariable(
"TXT_CMD", $this->
lng->txt(
"remove"));
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link="", bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
const PERMISSION_ALL_PASSWORD
const PERMISSION_REGISTERED
static _lookupTitle(int $obj_id)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_node_id, $a_handler)
Constructor.
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
static _lookupType(int $id, bool $reference=false)
importData()
Import data from DB.
fillRow(array $a_set)
Fill table row.