33 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
34 include_once
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
44 parent::__construct($a_obj_id);
54 $members = self::getMembers($status_info[
'crs_id'],
true);
69 if (!$status_info[
'registration']) {
73 if ($status_info[
'starting_time'] < time()) {
78 return $status_info[
'registered_users'] ? $status_info[
'registered_users'] : array();
84 return $status_info[
'participated_users'] ? $status_info[
'participated_users'] : array();
92 $ref_id = end($references);
94 $member_ref_id = null;
95 if (
$id =
$tree->checkForParentType($ref_id,
'grp')) {
97 } elseif (
$id =
$tree->checkForParentType($ref_id,
'crs')) {
101 $status_info = array();
108 $status_info[
'starting_time'] = $time_info[
'start'];
109 $status_info[
'ending_time'] = $time_info[
'end'];
110 $status_info[
'fullday'] = $time_info[
'fullday'];
130 $ilObjDataCache = $DIC[
'ilObjDataCache'];
132 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
133 switch ($ilObjDataCache->lookupType($a_obj_id)) {
135 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
136 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
137 include_once(
'./Modules/Session/classes/class.ilObjSession.php');
144 if ($registration && $time_info[
'start'] >= time()) {
147 $status = self::LP_STATUS_IN_PROGRESS_NUM;
151 $status = self::LP_STATUS_COMPLETED_NUM;
164 protected static function getMembers($a_obj_id, $a_is_crs_id =
false)
169 $ref_id = end($references);
171 $member_ref_id = null;
172 if (
$id =
$tree->checkForParentType($ref_id,
'grp')) {
173 $member_ref_id =
$id;
174 } elseif (
$id =
$tree->checkForParentType($ref_id,
'crs')) {
175 $member_ref_id =
$id;
181 $member_obj_id = $a_obj_id;
185 return $member_obj->getMembers();
198 $a_user_ids = self::getMembers($a_obj_id);
203 return self::_lookupStatusForObject($a_obj_id, self::LP_STATUS_COMPLETED_NUM, $a_user_ids);
228 $a_user_ids = self::getMembers($a_obj_id);
233 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)
if(!array_key_exists('StateId', $_REQUEST)) $id
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)
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 ...
static _lookupFailedForObject($a_obj_id, $a_user_ids=null)
Get failed users for object.
static getInstanceByObjId($a_obj_id)
Get instance by obj type.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.