7 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
21 return self::getParticipants($a_obj_id);
26 return self::getParticipants($a_obj_id,
true);
39 $survey_id = self::getSurveyId($a_obj_id);
46 include_once
'./Modules/Survey/classes/class.ilObjSurveyAccess.php';
62 $set = $ilDB->query(
"SELECT survey_id FROM svy_svy" .
63 " WHERE obj_fi = " . $ilDB->quote($a_obj_id));
64 $row = $ilDB->fetchAssoc($set);
65 return (
int)
$row[
"survey_id"];
74 $survey_id = self::getSurveyId($a_obj_id);
79 $sql =
"SELECT user_fi FROM svy_finished fin" .
80 " WHERE fin.survey_fi = " . $ilDB->quote($survey_id,
"integer");
82 if ($a_only_finished) {
83 $sql .=
" AND fin.state = " . $ilDB->quote(1,
"integer");
86 $set = $ilDB->query($sql);
87 while (
$row = $ilDB->fetchAssoc($set)) {
const LP_STATUS_COMPLETED_NUM
static _isSurveyParticipant($user_id, $survey_id)
const LP_STATUS_IN_PROGRESS_NUM
static getParticipants($a_obj_id, $a_only_finished=false)
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static getSurveyId($a_obj_id)
foreach($_POST as $key=> $value) $res
static _getInProgress($a_obj_id)
Create styles array
The data for the language used.
static _lookupFinished($a_obj_id, $a_user_id="")
get finished status
const LP_STATUS_NOT_ATTEMPTED_NUM
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
static _getCompleted($a_obj_id)