Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 43... Línea 43...
43
$qtypechoices = array();
43
$qtypechoices = array();
44
foreach ($qtypes as $qtype) {
44
foreach ($qtypes as $qtype) {
45
    $qtypechoices[$qtype->name()] = $qtype->local_name();
45
    $qtypechoices[$qtype->name()] = $qtype->local_name();
46
}
46
}
Línea -... Línea 47...
-
 
47
 
-
 
48
// Sort by label.
-
 
49
core_collator::asort($qtypechoices);
47
 
50
 
48
// Print the settings form.
51
// Print the settings form.
49
echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter centerpara');
52
echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter centerpara');
50
echo '<form method="get" action="." id="settingsform"><div>';
53
echo '<form method="get" action="." id="settingsform"><div>';
51
echo $OUTPUT->heading(get_string('reportsettings', 'report_questioninstances'));
54
echo $OUTPUT->heading(get_string('reportsettings', 'report_questioninstances'));
Línea 67... Línea 70...
67
        $title = get_string('reportformissingqtypes', 'report_questioninstances');
70
        $title = get_string('reportformissingqtypes', 'report_questioninstances');
Línea 68... Línea 71...
68
 
71
 
69
        $othertypes = array_keys($qtypes);
72
        $othertypes = array_keys($qtypes);
70
        $key = array_search('missingtype', $othertypes);
73
        $key = array_search('missingtype', $othertypes);
-
 
74
        unset($othertypes[$key]);
71
        unset($othertypes[$key]);
75
 
72
        list($sqlqtypetest, $params) = $DB->get_in_or_equal($othertypes, SQL_PARAMS_QM, '', false);
76
        [$sqlqtypetest, $sqlqtypetestparams] = $DB->get_in_or_equal($othertypes, SQL_PARAMS_QM, '', false);
-
 
77
        $sqlqtypetest = 'WHERE qtype ' . $sqlqtypetest;
Línea 73... Línea 78...
73
        $sqlqtypetest = 'WHERE qtype ' . $sqlqtypetest;
78
        $params = array_merge($params, $sqlqtypetestparams);
74
 
79
 
Línea 75... Línea 80...
75
    } else if ($requestedqtype == '_all_') {
80
    } else if ($requestedqtype == '_all_') {