Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/choice/view.php File Reference

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

Definition at line 8 of file view.php.

if ($groupmode) $allresponses = choice_get_response_data($choice, $cm, $groupmode)

Definition at line 90 of file view.php.

Definition at line 9 of file view.php.

if (isloggedin()&&($current=$DB->get_record('choice_answers', array('choiceid'=> $choice->id, 'userid'=> $USER->id)))&&empty($choice->allowupdate)) $choiceopen = true

Print the form.

Definition at line 111 of file view.php.

$completion = new completion_info($course)

Definition at line 54 of file view.php.

if ($choice->intro) $current = false

Definition at line 103 of file view.php.

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.

Definition at line 7 of file view.php.

if (!$choice=choice_get_choice($cm->instance)) $strchoice = get_string('modulename', 'choice')

Definition at line 31 of file view.php.

$strchoices = get_string('modulenameplural', 'choice')

Definition at line 32 of file view.php.

$timenow = time()

Definition at line 112 of file view.php.

$url = new moodle_url('/mod/choice/view.php', array('id'=>$id))

Definition at line 11 of file view.php.

if(has_capability('mod/choice:readresponses', $context))

Definition at line 93 of file view.php.

 All Data Structures Namespaces Files Functions Variables Enumerations