4 require_once
"./Services/Table/classes/class.ilTable2GUI.php";
18 public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id)
24 parent::__construct($a_parent_obj, $a_parent_cmd);
27 #$this->addColumn("", "", "1", true); 28 $this->
addColumn($this->lng->txt(
"org_unit_title"),
"org_unit_title",
"30%");
29 $this->
addColumn($this->lng->txt(
"org_unit_subtitle"),
"org_unit_subtitle",
"50%");
30 $this->
addColumn($this->lng->txt(
"org_unit_reporting_access"),
"org_unit_reporting_access",
"20%");
35 $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj, $this->parent_cmd));
36 $this->
setRowTemplate(
"tpl.org_unit_assignment_row.html",
"Services/OrgUnit");
40 #$this->setFilterCommand("applyFilter"); 44 #$this->setSelectAllCheckbox("id[]"); 66 $this->tpl->setVariable(
"VAL_TITLE", $a_set[
"title"]);
67 $this->tpl->setVariable(
"VAL_SUBTITLE", $a_set[
"subtitle"]);
68 $reporting_access = $a_set[
"reporting_access"] ? $lng->txt(
'yes') : $lng->txt(
'no');
69 $this->tpl->setVariable(
"VAL_REPORTING_ACCESS", $reporting_access);
70 #$ilCtrl->setParameterByClass("ilobjusergui", "obj_id", $a_set["usr_id"]); 71 #$this->tpl->setVariable("HREF_LOGIN", 72 # $ilCtrl->getLinkTargetByClass("ilobjusergui", "view")); 73 #$ilCtrl->setParameterByClass("ilobjusergui", "obj_id", ""); 80 require_once(
'Services/OrgUnit/classes/class.ilOrgUnit.php');
84 foreach($units as $unit)
87 'title' => $unit->getTitle(),
88 'subtitle' => $unit->getSubTitle(),
89 'reporting_access' => $unit->hasUserReportingAccess($a_user_id)
setExternalSorting($a_val)
Set external sorting.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setExternalSegmentation($a_val)
Set external segmentation.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static getInstancesByAssignedUser($a_user_id)
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
__construct($a_parent_obj, $a_parent_cmd, $a_user_id)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action)
Set Form action parameter.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
Organisation Unit Assignment Table.