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';
64 $set =
$ilDB->query(
"SELECT survey_id FROM svy_svy" .
65 " WHERE obj_fi = " .
$ilDB->quote($a_obj_id));
67 return (
int)
$row[
"survey_id"];
78 $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");
86 if ($a_only_finished) {
87 $sql .=
" AND fin.state = " .
$ilDB->quote(1,
"integer");
90 $set =
$ilDB->query($sql);
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)
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)