4 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
17 public function __construct($a_parent_obj, $a_parent_cmd, $a_object)
24 $this->
setId(
'objrolepd');
26 parent::__construct($a_parent_obj, $a_parent_cmd);
28 $this->
setTitle($this->lng->txt(
'role_assigned_desk_items') .
' (' . $a_object->getTitle() .
')');
31 $this->
addColumn($this->lng->txt(
'title'),
'title');
32 $this->
addColumn($this->lng->txt(
'desc'));
33 $this->
addColumn($this->lng->txt(
'path'));
35 $this->
setRowTemplate(
"tpl.role_desktop_item_list.html",
"Services/AccessControl");
39 $this->
addMultiCommand(
'askDeleteDesktopItem', $this->lng->txt(
'delete'));
53 include_once
'Services/AccessControl/classes/class.ilRoleDesktopItem.php';
55 foreach ($role_desk_item_obj->getAll() as $role_item_id => $item) {
56 $ref_id = $item[
'item_id'];
60 "id" => $role_item_id,
61 "type" => $tmp_obj->getType(),
62 "title" => $tmp_obj->getTitle(),
63 "desc" => $tmp_obj->getDescription(),
75 foreach ($a_path_arr as
$data) {
80 $path .= $data[
'title'];
83 if (strlen(
$path) > 50) {
84 return '...' . substr(
$path, -50);
92 $this->tpl->setVariable(
"VAL_ID", $a_set[
"id"]);
93 $this->tpl->setVariable(
"VAL_ICON_SRC", ilObject::_getIcon(
"",
"big", $a_set[
"type"]));
94 $this->tpl->setVariable(
"VAL_ICON_ALT", $this->lng->txt(
"obj_" . $a_set[
"type"]));
95 $this->tpl->setVariable(
"VAL_TITLE", $a_set[
"title"]);
96 $this->tpl->setVariable(
"VAL_DESC", $a_set[
"desc"]);
97 $this->tpl->setVariable(
"VAL_PATH", $a_set[
"path"]);
Table for role desktop items.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
__construct($a_parent_obj, $a_parent_cmd, $a_object)
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id