24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
60 $this->lng->loadLanguageModule(
'crs');
63 $this->container = $a_parent_obj;
65 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
72 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
74 $this->
addColumn($this->lng->txt(
'name'),
'name',
'20%');
75 $this->
addColumn($this->lng->txt(
'login'),
'login',
'25%');
77 if($this->privacy->enabledCourseAccessTimes())
79 $this->
addColumn($this->lng->txt(
'last_access'),
'access_time');
81 $this->
addColumn($this->lng->txt(
'crs_passed'),
'passed');
82 $this->
addColumn($this->lng->txt(
'crs_blocked'),
'blocked');
83 $this->
addColumn($this->lng->txt(
'crs_notification'),
'notification');
84 $this->
addColumn($this->lng->txt(
'objs_role'),
'roles');
89 $this->
setRowTemplate(
"tpl.edit_participants_row.html",
"Modules/Course");
98 $this->localCourseRoles = array();
99 foreach($this->container->object->getLocalCourseRoles(
false) as
$title => $role_id)
113 global $rbacsystem, $ilAccess,
$ilUser;
114 $hasEditPermissionAccess =
116 $ilAccess->checkAccess(
'edit_permission',
'',$this->container->object->getRefId()) or
117 $this->participants->isAdmin($ilUser->getId())
120 $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
121 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
123 $this->tpl->setVariable(
'VAL_LOGIN',$a_set[
'login']);
125 if($this->privacy->enabledCourseAccessTimes())
127 $this->tpl->setVariable(
'VAL_ACCESS',$a_set[
'access_time']);
129 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED',$a_set[
'notification'] ?
'checked="checked"' :
'');
130 $this->tpl->setVariable(
'VAL_PASSED_CHECKED',$a_set[
'passed'] ?
'checked="checked"' :
'');
131 $this->tpl->setVariable(
'VAL_BLOCKED_CHECKED',$a_set[
'blocked'] ?
'checked="checked"' :
'');
133 $this->tpl->setVariable(
'NUM_ROLES',count($this->participants->getRoles()));
135 $assigned = $this->participants->getAssignedRoles($a_set[
'usr_id']);
136 foreach($this->localCourseRoles as $localizedTitle => $roleData)
138 if ($hasEditPermissionAccess || substr($roleData[
'title'], 0, 12) !=
'il_crs_admin')
140 $this->tpl->setCurrentBlock(
'roles');
141 $this->tpl->setVariable(
'ROLE_ID',$roleData[
'role_id']);
142 $this->tpl->setVariable(
'ROLE_NAME',$localizedTitle);
144 if(in_array($roleData[
'role_id'],$assigned))
146 $this->tpl->setVariable(
'ROLE_CHECKED',
'selected="selected"');
148 $this->tpl->parseCurrentBlock();