mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-51603 quiz statistics: Using dataformats selector
This commit is contained in:
parent
9df4ae4189
commit
bc3b5a6a2f
@ -47,7 +47,7 @@ $string['detailedanalysis'] = 'More detailed analysis of the responses to this q
|
||||
$string['detailedanalysisforvariant'] = 'More detailed analysis of the responses to variant {$a} of this question';
|
||||
$string['discrimination_index'] = 'Discrimination index';
|
||||
$string['discriminative_efficiency'] = 'Discriminative efficiency';
|
||||
$string['downloadeverything'] = 'Download full report as {$a->formatsmenu} {$a->downloadbutton}';
|
||||
$string['downloadeverything'] = 'Download full report as';
|
||||
$string['duration'] = 'Open for';
|
||||
$string['effective_weight'] = 'Effective weight';
|
||||
$string['errordeleting'] = 'Error deleting old {$a} records.';
|
||||
|
@ -667,21 +667,10 @@ class quiz_statistics_report extends quiz_default_report {
|
||||
* @return string HTML.
|
||||
*/
|
||||
protected function everything_download_options() {
|
||||
$downloadoptions = $this->table->get_download_menu();
|
||||
global $OUTPUT;
|
||||
|
||||
$downloadelements = new stdClass();
|
||||
$downloadelements->formatsmenu = html_writer::select($downloadoptions, 'download',
|
||||
$this->table->defaultdownloadformat, false);
|
||||
$downloadelements->downloadbutton = '<input type="submit" value="' .
|
||||
get_string('download') . '"/>';
|
||||
|
||||
$output = '<form action="'. $this->table->baseurl .'" method="post">';
|
||||
$output .= '<div class="mdl-align">';
|
||||
$output .= '<input type="hidden" name="everything" value="1"/>';
|
||||
$output .= html_writer::tag('label', get_string('downloadeverything', 'quiz_statistics', $downloadelements));
|
||||
$output .= '</div></form>';
|
||||
|
||||
return $output;
|
||||
return $OUTPUT->download_dataformat_selector(get_string('downloadeverything', 'quiz_statistics'),
|
||||
$this->table->baseurl->out_omit_querystring(), 'download', $this->table->baseurl->params() + array('everything' => 1));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user