33 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
34 include_once
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
43 parent::__construct($a_obj_id);
53 $members = self::getMembers($status_info[
'crs_id'],
true);
69 if(!$status_info[
'registration'])
74 if($status_info[
'starting_time'] <
time())
80 return $status_info[
'registered_users'] ? $status_info[
'registered_users'] :
array();
86 return $status_info[
'participated_users'] ? $status_info[
'participated_users'] :
array();
93 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
94 include_once(
'./Modules/Session/classes/class.ilObjSession.php');
95 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
100 $course_ref_id = $tree->checkForParentType(
$ref_id,
'crs');
103 $status_info =
array();
104 $status_info[
'crs_id'] = $course_obj_id;
110 $status_info[
'starting_time'] = $time_info[
'start'];
111 $status_info[
'ending_time'] = $time_info[
'end'];
112 $status_info[
'fullday'] = $time_info[
'fullday'];
130 global $ilObjDataCache;
132 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
133 switch ($ilObjDataCache->lookupType($a_obj_id))
136 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
137 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
138 include_once(
'./Modules/Session/classes/class.ilObjSession.php');
145 if ($registration && $time_info[
'start'] >=
time())
150 $status = self::LP_STATUS_IN_PROGRESS_NUM;
155 $status = self::LP_STATUS_COMPLETED_NUM;
168 protected static function getMembers($a_obj_id, $a_is_crs_id =
false)
175 $course_ref_id = $tree->checkForParentType(
$ref_id,
'crs');
180 $course_obj_id = $a_obj_id;
183 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
185 return $member_obj->getMembers();
199 $a_user_ids = self::getMembers($a_obj_id);
205 return self::_lookupStatusForObject($a_obj_id, self::LP_STATUS_COMPLETED_NUM, $a_user_ids);
231 $a_user_ids = self::getMembers($a_obj_id);
237 return self::_lookupStatusForObject($a_obj_id, self::LP_STATUS_IN_PROGRESS_NUM, $a_user_ids);
static _getRegistered($a_event_id)
static _getParticipated($a_event_id)
static _getInProgress($a_obj_id)
Static function to read users who have the status 'in_progress'.
static getMembers($a_obj_id, $a_is_crs_id=false)
Get members for object.
static _getCompleted($a_obj_id)
Static function to read the users who have the status 'completed'.
static _getNotAttempted($a_obj_id)
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
static _lookupTitle($a_id)
lookup object title
static _lookupInProgressForObject($a_obj_id, $a_user_ids=null)
Get in progress users for object.
static _isRegistered($a_usr_id, $a_event_id)
static _getAllReferences($a_id)
get all reference ids of object
static _hasParticipated($a_usr_id, $a_event_id)
static _lookupRegistrationEnabled($a_obj_id)
lookup registration enabled
static _lookupDescription($a_id)
lookup object description
static _lookupObjId($a_id)
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static _lookupCompletedForObject($a_obj_id, $a_user_ids=null)
Get completed users for object.
static _getStatusInfo($a_obj_id)
static _getInProgress($a_obj_id)
Create styles array
The data for the language used.
static _getStatusInfo($a_obj_id)
Reads informations about the object e.g test results, tlt, number of visits.
static _getCompleted($a_obj_id)
static _lookupAppointment($a_obj_id)
lookup appointment
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static _lookupFailedForObject($a_obj_id, $a_user_ids=null)
Get failed users for object.