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

Go to the source code of this file.

Variables

 $id = required_param('id', PARAM_INT)
 $format = optional_param('format', CHOICE_PUBLISH_NAMES, PARAM_INT)
 $download = optional_param('download', '', PARAM_ALPHA)
 $action = optional_param('action', '', PARAM_ALPHA)
 $attemptids = optional_param_array('attemptid', array(), PARAM_INT)
 $url = new moodle_url('/mod/choice/report.php', array('id'=>$id))
 $context = get_context_instance(CONTEXT_MODULE, $cm->id)
if(!$choice=choice_get_choice($cm->
instance)) 
$strchoice = get_string("modulename", "choice")
 $strchoices = get_string("modulenameplural", "choice")
 $strresponses = get_string("responses", "choice")
if($download=="ods"&&has_capability('mod/choice:downloadresponses',
$context)) if($download=="xls"&&has_capability('mod/choice:downloadresponses',
$context)) if($download=="txt"&&has_capability('mod/choice:downloadresponses',
$context)) if(!empty($choice->
showunanswered)) 
$results = prepare_choice_show_results($choice, $course, $cm, $users)
 $renderer = $PAGE->get_renderer('mod_choice')
 if (!empty($users)&&has_capability('mod/choice:downloadresponses', $context))

Variable Documentation

Definition at line 9 of file report.php.

Definition at line 10 of file report.php.

Definition at line 34 of file report.php.

$download = optional_param('download', '', PARAM_ALPHA)

Definition at line 8 of file report.php.

Definition at line 7 of file report.php.

Definition at line 6 of file report.php.

$renderer = $PAGE->get_renderer('mod_choice')

Definition at line 225 of file report.php.

if ($download=="ods"&&has_capability('mod/choice:downloadresponses', $context)) if ($download=="xls"&&has_capability('mod/choice:downloadresponses', $context)) if ($download=="txt"&&has_capability('mod/choice:downloadresponses', $context)) if (!empty($choice->showunanswered)) $results = prepare_choice_show_results($choice, $course, $cm, $users)

Check to see if groups are being used in this choice

Calculate file name

Creating a workbook

Send HTTP headers

Creating the first worksheet

Print names of all the fields

generate the data for the body of the spreadsheet

Close the workbook

Calculate file name

Creating a workbook

Send HTTP headers

Creating the first worksheet

Print names of all the fields

generate the data for the body of the spreadsheet

Close the workbook

Print names of all the fields

generate the data for the body of the spreadsheet

Definition at line 224 of file report.php.

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

Definition at line 42 of file report.php.

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

Definition at line 43 of file report.php.

$strresponses = get_string("responses", "choice")

Definition at line 44 of file report.php.

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

Definition at line 12 of file report.php.

if(!empty($users)&&has_capability('mod/choice:downloadresponses', $context))

Definition at line 229 of file report.php.

 All Data Structures Namespaces Files Functions Variables Enumerations