Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 227... Línea 227...
227
     *
227
     *
228
     * @param stdClass $attempt the table row being output.
228
     * @param stdClass $attempt the table row being output.
229
     * @return string HTML content to go inside the td.
229
     * @return string HTML content to go inside the td.
230
     */
230
     */
231
    public function col_timestart($attempt) {
231
    public function col_timestart($attempt) {
232
        if ($attempt->attempt) {
232
        if ($attempt->attempt && $attempt->timestart) {
233
            return userdate($attempt->timestart, $this->strtimeformat);
233
            return userdate($attempt->timestart, $this->strtimeformat);
234
        } else {
234
        } else {
235
            return  '-';
235
            return  '-';
236
        }
236
        }
237
    }
237
    }
Línea 450... Línea 450...
450
     *
450
     *
451
     * @param qubaid_condition|null $qubaids used to restrict which usages are included
451
     * @param qubaid_condition|null $qubaids used to restrict which usages are included
452
     *      in the query. See {@see qubaid_condition}.
452
     *      in the query. See {@see qubaid_condition}.
453
     * @return array of records. See the SQL in this function to see the fields available.
453
     * @return array of records. See the SQL in this function to see the fields available.
454
     */
454
     */
455
    protected function load_question_latest_steps(qubaid_condition $qubaids = null) {
455
    protected function load_question_latest_steps(?qubaid_condition $qubaids = null) {
456
        if ($qubaids === null) {
456
        if ($qubaids === null) {
457
            $qubaids = $this->get_qubaids_condition();
457
            $qubaids = $this->get_qubaids_condition();
458
        }
458
        }
459
        $dm = new question_engine_data_mapper();
459
        $dm = new question_engine_data_mapper();
460
        $latesstepdata = $dm->load_questions_usages_latest_steps(
460
        $latesstepdata = $dm->load_questions_usages_latest_steps(
Línea 795... Línea 795...
795
    protected function submit_buttons() {
795
    protected function submit_buttons() {
796
        global $PAGE;
796
        global $PAGE;
797
        if (has_capability('mod/quiz:deleteattempts', $this->context)) {
797
        if (has_capability('mod/quiz:deleteattempts', $this->context)) {
798
            $deletebuttonparams = [
798
            $deletebuttonparams = [
799
                'type'  => 'submit',
799
                'type'  => 'submit',
800
                'class' => 'btn btn-secondary mr-1',
800
                'class' => 'btn btn-secondary me-1',
801
                'id'    => 'deleteattemptsbutton',
801
                'id'    => 'deleteattemptsbutton',
802
                'name'  => 'delete',
802
                'name'  => 'delete',
803
                'value' => get_string('deleteselected', 'quiz_overview'),
803
                'value' => get_string('deleteselected', 'quiz_overview'),
804
                'data-action' => 'toggle',
804
                'data-action' => 'toggle',
805
                'data-togglegroup' => $this->togglegroup,
805
                'data-togglegroup' => $this->togglegroup,