|
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) | |
| $context = get_context_instance(CONTEXT_MODULE, $cm->id) | |
| if(!$survey=$DB->get_record("survey", array("id"=> $cm->instance))) | $trimmedintro = trim($survey->intro) |
| if(empty($trimmedintro)) | if (!$template=$DB->get_record("survey", array("id"=> $survey->template))) |
| $completion = new completion_info($course) | |
| $showscales = ($template->name != 'ciqname') | |
| $strsurvey = get_string("modulename", "survey") | |
| if(!$questions=$DB-> get_records_list("survey_questions","id", explode(',', $survey-> questions))) | $questionorder = explode( ",", $survey->questions) |
| global | $qnum = 0 |
| global | $checklist = array() |
| foreach($questionorder as $key=> $val) if(!is_enrolled($context)) | $checkarray = Array('questions'=>Array()) |
| foreach ($questionorder as $key=> $val) if (!is_enrolled($context)) $checkarray = Array('questions'=>Array()) |
| $completion = new completion_info($course) |
| $strsurvey = get_string("modulename", "survey") |
| if (!$survey=$DB->get_record("survey", array("id"=> $cm->instance))) $trimmedintro = trim($survey->intro) |