4 require_once
"./Services/Table/classes/class.ilTable2GUI.php";
18 public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id)
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)