|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | mod |
Local Library of functions for module scorm. | |
Variables | |
| $id = required_param('id', PARAM_INT) | |
| $type = optional_param('type', 'xls', PARAM_ALPHA) | |
| $group = optional_param('group', 0, PARAM_INT) | |
| if(!$cm=get_coursemodule_from_id('survey', $id)) if(!$course=$DB-> get_record("course", array("id"=> $cm->course))) | $context = get_context_instance(CONTEXT_MODULE, $cm->id) |
| $groupmode = groups_get_activity_groupmode($cm) | |
| Check to see if groups are being used in this survey. | |
| $questions = $DB->get_records_list("survey_questions", "id", $order) | |
| $orderedquestions = array() | |
| $virtualscales = false | |
| foreach($order as $qid) | $nestedorder = array() |
| $preparray = array() | |
| foreach($orderedquestions as $qid=> $question) | $reversednestedorder = array() |
| foreach($nestedorder as $qid=> $subqidarray) | $allquestions = array_merge($questions, $DB->get_records_list("survey_questions", "id", array_keys($reversednestedorder))) |
| if(!$surveyanswers=$DB-> get_records("survey_answers", array("survey"=> $survey->id),"time ASC")) | $results = array() |
| foreach($surveyanswers as $surveyanswer) | $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id) |
| $courseshortname = format_string($course->shortname, true, array('context' => $coursecontext)) | |
| $downloadfilename = clean_filename(strip_tags($courseshortname.' '.format_string($survey->name,true))) | |
| foreach ($nestedorder as $key=> $nestedquestions) | |
| foreach($results as $user=> $rest) | exit |
| foreach ($nestedorder as $qid=> $subqidarray) $allquestions = array_merge($questions, $DB->get_records_list("survey_questions", "id", array_keys($reversednestedorder))) |
Definition at line 117 of file download.php.
| if (!$cm=get_coursemodule_from_id('survey', $id)) if (!$course=$DB->get_record("course", array("id"=> $cm->course))) $context = get_context_instance(CONTEXT_MODULE, $cm->id) |
Definition at line 43 of file download.php.
| foreach ($surveyanswers as $surveyanswer) $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id) |
Definition at line 149 of file download.php.
| $courseshortname = format_string($course->shortname, true, array('context' => $coursecontext)) |
Definition at line 150 of file download.php.
| $downloadfilename = clean_filename(strip_tags($courseshortname.' '.format_string($survey->name,true))) |
Definition at line 309 of file download.php.
| $group = optional_param('group', 0, PARAM_INT) |
Definition at line 33 of file download.php.
Check to see if groups are being used in this survey.
Definition at line 58 of file download.php.
| $id = required_param('id', PARAM_INT) |
Definition at line 31 of file download.php.
Definition at line 84 of file download.php.
| $orderedquestions = array() |
Definition at line 74 of file download.php.
| $preparray = array() |
Definition at line 85 of file download.php.
| $questions = $DB->get_records_list("survey_questions", "id", $order) |
Definition at line 71 of file download.php.
| if (!$surveyanswers=$DB->get_records("survey_answers", array("survey"=> $survey->id),"time ASC")) $results = array() |
Definition at line 134 of file download.php.
Definition at line 109 of file download.php.
| $type = optional_param('type', 'xls', PARAM_ALPHA) |
Definition at line 32 of file download.php.
| $virtualscales = false |
Definition at line 76 of file download.php.
Definition at line 330 of file download.php.
| foreach($nestedorder as $key=> $nestedquestions) |
Definition at line 316 of file download.php.