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);
47 include_once
'./Modules/Survey/classes/class.ilObjSurveyAccess.php';
65 $set = $ilDB->query(
"SELECT survey_id FROM svy_svy".
66 " WHERE obj_fi = ".$ilDB->quote($a_obj_id));
67 $row = $ilDB->fetchAssoc($set);
68 return (
int)
$row[
"survey_id"];
77 $survey_id = self::getSurveyId($a_obj_id);
83 $sql =
"SELECT user_fi FROM svy_finished fin".
84 " WHERE fin.survey_fi = ".$ilDB->quote($survey_id,
"integer");
88 $sql .=
" AND fin.state = ".$ilDB->quote(1,
"integer");
91 $set = $ilDB->query($sql);
92 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)
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)