Inheritance diagram for ilLPStatusEvent:
Collaboration diagram for ilLPStatusEvent:Public Member Functions | |
| ilLPStatusEvent ($a_obj_id) | |
| _getNotAttempted ($a_obj_id) | |
| _getInProgress ($a_obj_id) | |
| _getCompleted ($a_obj_id) | |
| _getStatusInfo ($a_obj_id) | |
Definition at line 36 of file class.ilLPStatusEvent.php.
| ilLPStatusEvent::_getCompleted | ( | $ | a_obj_id | ) |
Reimplemented from ilLPStatus.
Definition at line 82 of file class.ilLPStatusEvent.php.
References ilLPStatusWrapper::_getStatusInfoByType().
{
$status_info = ilLPStatusWrapper::_getStatusInfoByType($a_obj_id,'event');
return $status_info['participated_users'] ? $status_info['participated_users'] : array();
}
Here is the call graph for this function:| ilLPStatusEvent::_getInProgress | ( | $ | a_obj_id | ) |
Reimplemented from ilLPStatus.
Definition at line 63 of file class.ilLPStatusEvent.php.
References ilLPStatusWrapper::_getStatusInfoByType().
{
$status_info = ilLPStatusWrapper::_getStatusInfoByType($a_obj_id,'event');
// If registration is disabled in_progress is not available
if(!$status_info['registration'])
{
return array();
}
// If event has occured in_progress is impossible
if($status_info['starting_time'] < time())
{
return array();
}
// Otherwise all users who registered will get the status in progress
return $status_info['registered_users'] ? $status_info['registered_users'] : array();
}
Here is the call graph for this function:| ilLPStatusEvent::_getNotAttempted | ( | $ | a_obj_id | ) |
Reimplemented from ilLPStatus.
Definition at line 47 of file class.ilLPStatusEvent.php.
References ilLPStatusWrapper::_getCompletedByType(), ilLPStatusWrapper::_getInProgressByType(), ilCourseParticipants::_getInstanceByObjId(), and ilLPStatusWrapper::_getStatusInfoByType().
{
global $ilObjDataCache;
$status_info = ilLPStatusWrapper::_getStatusInfoByType($a_obj_id,'event');
include_once 'Modules/Course/classes/class.ilCourseParticipants.php';
$member_obj = ilCourseParticipants::_getInstanceByObjId($status_info['crs_id']);
$members = $member_obj->getParticipants();
// diff in progress and completed (use stored result in LPStatusWrapper)
$users = array_diff((array) $members,$inp = ilLPStatusWrapper::_getInProgressByType($a_obj_id,'event'));
$users = array_diff((array) $users,$com = ilLPStatusWrapper::_getCompletedByType($a_obj_id,'event'));
return $users;
}
Here is the call graph for this function:| ilLPStatusEvent::_getStatusInfo | ( | $ | a_obj_id | ) |
Reimplemented from ilLPStatus.
Definition at line 89 of file class.ilLPStatusEvent.php.
References ilEventParticipants::_getParticipated(), and ilEventParticipants::_getRegistered().
{
include_once 'Modules/Course/classes/Event/class.ilEvent.php';
include_once 'Modules/Course/classes/Event/class.ilEventParticipants.php';
$event = new ilEvent($a_obj_id);
$status_info['crs_id'] = $event->getObjId();
$status_info['registration'] = $event->enabledRegistration();
$status_info['title'] = $event->getTitle();
$status_info['description'] = $event->getDescription();
$appointment =& $event->getFirstAppointment();
$status_info['starting_time'] = $appointment->getStartingTime();
$status_info['ending_time'] = $appointment->getEndingTime();
$status_info['registered_users'] = ilEventParticipants::_getRegistered($a_obj_id);
$status_info['participated_users'] = ilEventParticipants::_getParticipated($a_obj_id);
return $status_info;
}
Here is the call graph for this function:| ilLPStatusEvent::ilLPStatusEvent | ( | $ | a_obj_id | ) |
Definition at line 39 of file class.ilLPStatusEvent.php.
References ilLPStatus::ilLPStatus().
{
global $ilDB;
parent::ilLPStatus($a_obj_id);
$this->db =& $ilDB;
}
Here is the call graph for this function:
1.7.1