Go to the source code of this file.
Variables |
| | $id = required_param('id', PARAM_INT) |
| | $action = optional_param('action', '', PARAM_ALPHA) |
| | $attemptids = optional_param_array('attemptid', array(), PARAM_INT) |
| | $url = new moodle_url('/mod/choice/view.php', array('id'=>$id)) |
if(!$choice=choice_get_choice($cm->
instance)) | $strchoice = get_string('modulename', 'choice') |
| | $strchoices = get_string('modulenameplural', 'choice') |
| | $completion = new completion_info($course) |
| | $groupmode = groups_get_activity_groupmode($cm) |
| | Submit any new data if there is any.
|
| if($groupmode) | $allresponses = choice_get_response_data($choice, $cm, $groupmode) |
| | if (has_capability('mod/choice:readresponses', $context)) |
| if($choice->intro) | $current = false |
if(isloggedin()&&($current=$DB->
get_record('choice_answers',
array('choiceid'=> $choice->id,
'userid'=> $USER->id)))&&empty($choice->
allowupdate)) | $choiceopen = true |
| | Print the form.
|
| | $timenow = time() |
Variable Documentation
Print the form.
Definition at line 111 of file view.php.
| if ($choice->intro) $current = false |
Submit any new data if there is any.
Check to see if groups are being used in this choice
Definition at line 84 of file view.php.