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(
'lastname'),
'lastname',
'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)
114 $hasEditPermissionAccess = $rbacsystem->checkAccess(
'edit_permission', $this->container->object->getRefId());
116 $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
117 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
119 $this->tpl->setVariable(
'VAL_LOGIN',$a_set[
'login']);
121 if($this->privacy->enabledCourseAccessTimes())
123 $this->tpl->setVariable(
'VAL_ACCESS',$a_set[
'access_time']);
125 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED',$a_set[
'notification'] ?
'checked="checked"' :
'');
126 $this->tpl->setVariable(
'VAL_PASSED_CHECKED',$a_set[
'passed'] ?
'checked="checked"' :
'');
127 $this->tpl->setVariable(
'VAL_BLOCKED_CHECKED',$a_set[
'blocked'] ?
'checked="checked"' :
'');
129 $this->tpl->setVariable(
'NUM_ROLES',count($this->participants->getRoles()));
131 $assigned = $this->participants->getAssignedRoles($a_set[
'usr_id']);
132 foreach($this->localCourseRoles as $localizedTitle => $roleData)
134 if ($hasEditPermissionAccess || substr($roleData[
'title'], 0, 12) !=
'il_crs_admin')
136 $this->tpl->setCurrentBlock(
'roles');
137 $this->tpl->setVariable(
'ROLE_ID',$roleData[
'role_id']);
138 $this->tpl->setVariable(
'ROLE_NAME',$localizedTitle);
140 if(in_array($roleData[
'role_id'],$assigned))
142 $this->tpl->setVariable(
'ROLE_CHECKED',
'selected="selected"');
144 $this->tpl->parseCurrentBlock();