Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 58... Línea 58...
58
    }
58
    }
Línea 59... Línea 59...
59
 
59
 
60
    /**
60
    /**
61
     * Ensure current user is able to use this form
61
     * Ensure current user is able to use this form
62
     *
62
     *
63
     * A {@see \core_reportbuilder\report_access_exception} will be thrown if they can't
63
     * A {@see \core_reportbuilder\exception\report_access_exception} will be thrown if they can't
64
     */
64
     */
65
    protected function check_access_for_dynamic_submission(): void {
65
    protected function check_access_for_dynamic_submission(): void {
66
        $reportpersistent = $this->get_report()->get_report_persistent();
66
        $reportpersistent = $this->get_report()->get_report_persistent();
67
        if ($reportpersistent->get('type') === base::TYPE_CUSTOM_REPORT) {
67
        if ($reportpersistent->get('type') === base::TYPE_CUSTOM_REPORT) {
Línea 147... Línea 147...
147
        $mform->registerNoSubmitButton('resetfilters');
147
        $mform->registerNoSubmitButton('resetfilters');
Línea 148... Línea 148...
148
 
148
 
149
        $buttons = [];
149
        $buttons = [];
150
        $buttons[] = $mform->createElement('submit', 'submitbutton', get_string('apply', 'core_reportbuilder'));
150
        $buttons[] = $mform->createElement('submit', 'submitbutton', get_string('apply', 'core_reportbuilder'));
151
        $buttons[] = $mform->createElement('submit', 'resetfilters',  get_string('resetall', 'core_reportbuilder'),
151
        $buttons[] = $mform->createElement('submit', 'resetfilters',  get_string('resetall', 'core_reportbuilder'),
Línea 152... Línea 152...
152
            null, null, ['customclassoverride' => 'btn-link ml-1']);
152
            null, null, ['customclassoverride' => 'btn-link ms-1']);
153
 
153
 
154
        $mform->addGroup($buttons, 'buttonar', get_string('formactions', 'core_form'), '', false)
154
        $mform->addGroup($buttons, 'buttonar', get_string('formactions', 'core_form'), '', false)