5 include_once
'./Services/Membership/classes/class.ilMembershipGUI.php';
30 global $rbacsystem,
$ilErr;
35 $ilErr->raiseError($this->lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
38 if(!count($a_usr_ids))
45 foreach($a_usr_ids as $user_id)
89 $this->ctrl->redirect($this,
'participants');
102 $visible_members = (
array)
$_POST[
'visible_member_ids'];
108 foreach($visible_members as $member_id)
110 $this->
getMembersObject()->updatePassed($member_id,in_array($member_id,$passed),
true);
117 $this->
getMembersObject()->updateNotification($member_id, in_array($member_id, $notification));
118 $this->
getMembersObject()->updateContact($member_id, in_array($member_id, $contact));
123 if($this->
getMembersObject()->isBlocked($member_id) && !in_array($member_id,$blocked))
128 if(!$this->
getMembersObject()->isBlocked($member_id) && in_array($member_id, $blocked))
136 $this->
getMembersObject()->updateBlocked($member_id, in_array($member_id, $blocked));
142 $this->ctrl->redirect($this,
'participants');
151 include_once
'./Services/Tracking/classes/class.ilObjUserTracking.php';
157 include_once(
'./Services/Object/classes/class.ilObjectLP.php');
159 $show_tracking = $olp->isActive();
162 include_once(
'./Services/Object/classes/class.ilObjectActivation.php');
168 include_once
'./Modules/Course/classes/class.ilCourseParticipantsTableGUI.php';
185 include_once
'./Modules/Course/classes/class.ilCourseEditParticipantsTableGUI.php';
187 $table->setTitle($this->lng->txt($this->getParentObject()->getType().
'_header_edit_members'));
198 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.crs_edit_members.html',
'Modules/Course');
214 return $this->
getParentGUI()->updateLPFromStatus($a_member_id, $a_passed);
223 include_once
'./Modules/Course/classes/class.ilCourseWaitingList.php';
233 return $this->
getParentGUI()->object->getDefaultMemberRole();
242 return $this->
getParentGUI()->deliverCertificateObject($user_id);
251 global $ilAccess,
$lng;
253 $lng->loadLanguageModule(
'trac');
256 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
259 if($privacy->enabledCourseAccessTimes())
261 include_once(
'./Services/Tracking/classes/class.ilLearningProgress.php');
265 include_once
'./Services/Tracking/classes/class.ilObjUserTracking.php';
270 include_once(
'./Services/Object/classes/class.ilObjectLP.php');
272 $show_tracking = $olp->isActive();
277 include_once
'Services/Tracking/classes/class.ilLPStatusWrapper.php';
286 include_once(
'Modules/Course/classes/Export/class.ilCourseUserData.php');
289 foreach($a_members as $member_id)
295 include_once
'./Services/User/classes/class.ilUserDefinedData.php';
297 foreach($udf_data->getAll() as $field => $value)
299 list($f,$field_id) = explode(
'_', $field);
300 $print_member[$member_id][
'udf_'.$field_id] = (
string) $value;
303 foreach((
array) $cdfs[$member_id] as $cdf_field => $cdf_value)
305 $print_member[$member_id][
'cdf_'.$cdf_field] = (
string) $cdf_value;
308 foreach((
array) $profile_data[$member_id] as $field => $value)
310 $print_member[$member_id][$field] = $value;
313 $print_member[$member_id][
'login'] = $tmp_obj->getLogin();
314 $print_member[$member_id][
'name'] = $tmp_obj->getLastname().
', '.$tmp_obj->getFirstname();
318 $print_member[$member_id][
'role'] = $this->lng->txt(
"il_crs_admin");
322 $print_member[$member_id][
'role'] = $this->lng->txt(
"il_crs_tutor");
326 $print_member[$member_id][
'role'] = $this->lng->txt(
"il_crs_member");
332 $print_member[$member_id][
'status'] = $this->lng->txt(
"crs_notify");
336 $print_member[$member_id][
'status'] = $this->lng->txt(
"crs_no_notify");
343 $print_member[$member_id][
'status'] = $this->lng->txt(
"crs_blocked");
347 $print_member[$member_id][
'status'] = $this->lng->txt(
"crs_unblocked");
353 $print_member[$member_id][
'passed'] = $this->
getMembersObject()->hasPassed($member_id) ?
354 $this->lng->txt(
'crs_member_passed') :
355 $this->lng->txt(
'crs_member_not_passed');
358 if($privacy->enabledCourseAccessTimes())
360 if(isset($progress[$member_id][
'ts'])
and $progress[$member_id][
'ts'])
368 $print_member[$member_id][
'access'] = $this->lng->txt(
'no_date');
373 if(in_array($member_id,$completed))
377 elseif(in_array($member_id,$in_progress))
381 elseif(in_array($member_id,
$failed))
401 return $this->member_data[$a_user_id];
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
readMemberData(array $usr_ids, array $columns)
Required for member table guis.
getLocalTypeRole($a_translation=false)
Base class for member tab content.
getMembersObject()
Get member object.
static hasTimings($a_ref_id)
Check if there is any active timing (in subtree)
static _getValuesByObjId($a_obj_id)
Get values by obj_id (for all users)
const LP_STATUS_NOT_ATTEMPTED
updateParticipantsStatus()
=> save button in member table
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static _lookupFailedForObject($a_obj_id, $a_user_ids=null)
Get failed users for object.
static setUseRelativeDates($a_status)
set use relative dates
Add rich text string
The name of the decorator.
const STATUS_DETERMINATION_LP
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static _readUsersProfileData($a_user_ids)
STATIC METHOD get user data of selected users.
const LP_STATUS_IN_PROGRESS
initParticipantTableGUI()
deliverCertificate()
Deliver certificate for an user on the member list.
static _enabledUserRelatedData()
check wether user related tracking is enabled or not
static _enabledLearningProgress()
check wether learing progress is enabled or not
updateLPFromStatus($a_member_id, $a_passed)
Update lp from status.
static _lookupProgressByObjId($a_obj_id)
lookup progress for a specific object
initParticipantTemplate()
Init participant view template.
static formatDate(ilDateTime $date)
Format a date public.
const IL_CRS_ADMIN
Base class for course and group participants.
assignMembers(array $a_usr_ids, $a_type)
callback from repository search gui ilRbacSystem $rbacsystem
getParentGUI()
Get parent gui.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Create styles array
The data for the language used.
initEditParticipantTableGUI(array $participants)
init edit participants table gui
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static _lookupInProgressForObject($a_obj_id, $a_user_ids=null)
Get in progress users for object.
getPrintMemberData($a_members)
Get print member data.
getAttendanceListUserData($a_user_id)
Callback from attendance list.
static getLogger($a_component_id)
Get component logger.
static _getInstance()
Get instance of ilPrivacySettings.
getParentObject()
Get parent object.
static _lookupCompletedForObject($a_obj_id, $a_user_ids=null)
Get completed users for object.
const LP_STATUS_COMPLETED
static getInstance($a_obj_id)
initWaitingList()
init waiting list