Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 23... Línea 23...
23
use core\output\dynamic_tabs\base;
23
use core\output\dynamic_tabs\base;
24
use core_reportbuilder\permission;
24
use core_reportbuilder\permission;
25
use core_reportbuilder\system_report_factory;
25
use core_reportbuilder\system_report_factory;
26
use core_reportbuilder\local\models\report;
26
use core_reportbuilder\local\models\report;
27
use core_reportbuilder\local\systemreports\report_schedules;
27
use core_reportbuilder\local\systemreports\report_schedules;
-
 
28
use core_reportbuilder\output\report_action;
Línea 28... Línea 29...
28
 
29
 
29
/**
30
/**
30
 * Schedules dynamic tab
31
 * Schedules dynamic tab
31
 *
32
 *
Línea 42... Línea 43...
42
     * @return array
43
     * @return array
43
     */
44
     */
44
    public function export_for_template(renderer_base $output): array {
45
    public function export_for_template(renderer_base $output): array {
45
        $report = system_report_factory::create(report_schedules::class, context_system::instance(), '', '', 0,
46
        $report = system_report_factory::create(report_schedules::class, context_system::instance(), '', '', 0,
46
            ['reportid' => $this->data['reportid']]);
47
            ['reportid' => $this->data['reportid']]);
-
 
48
        $report->set_report_action(new report_action(
-
 
49
            get_string('newschedule', 'core_reportbuilder'),
-
 
50
            ['class' => 'btn btn-primary ms-auto', 'data-action' => 'schedule-create'],
-
 
51
        ));
Línea 47... Línea 52...
47
 
52
 
48
        return [
53
        return [
49
            'reportid' => $this->data['reportid'],
54
            'reportid' => $this->data['reportid'],
50
            'report' => $report->output(),
55
            'report' => $report->output(),