Línea 106... |
Línea 106... |
106 |
|
106 |
|
107 |
/**
|
107 |
/**
|
108 |
* Renders the New report button
|
108 |
* Renders the New report button
|
109 |
*
|
109 |
*
|
- |
|
110 |
* @return string
|
- |
|
111 |
*
|
110 |
* @return string
|
112 |
* @deprecated since Moodle 5.0 - please use {@see \core_reportbuilder\system_report::set_report_action} instead
|
- |
|
113 |
*/
|
111 |
*/
|
114 |
#[\core\attribute\deprecated('\core_reportbuilder\system_report::set_report_action', mdl: 'MDL-82936', since: '5.0')]
|
- |
|
115 |
public function render_new_report_button(): string {
|
- |
|
116 |
\core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
|
112 |
public function render_new_report_button(): string {
|
117 |
|
113 |
return html_writer::tag('button', get_string('newreport', 'core_reportbuilder'), [
|
118 |
return html_writer::tag('button', get_string('newreport', 'core_reportbuilder'), [
|
114 |
'class' => 'btn btn-primary my-auto',
|
119 |
'class' => 'btn btn-primary my-auto',
|
115 |
'data-action' => 'report-create',
|
120 |
'data-action' => 'report-create',
|
116 |
]);
|
121 |
]);
|
Línea 123... |
Línea 128... |
123 |
* @return string
|
128 |
* @return string
|
124 |
*/
|
129 |
*/
|
125 |
public function render_fullpage_editor_header(report $report): string {
|
130 |
public function render_fullpage_editor_header(report $report): string {
|
126 |
$reportname = $report->get_formatted_name();
|
131 |
$reportname = $report->get_formatted_name();
|
127 |
$editdetailsbutton = html_writer::tag('button', get_string('editdetails', 'core_reportbuilder'), [
|
132 |
$editdetailsbutton = html_writer::tag('button', get_string('editdetails', 'core_reportbuilder'), [
|
128 |
'class' => 'btn btn-outline-secondary mr-2',
|
133 |
'class' => 'btn btn-outline-secondary me-2',
|
129 |
'data-action' => 'report-edit',
|
134 |
'data-action' => 'report-edit',
|
130 |
'data-report-id' => $report->get('id')
|
135 |
'data-report-id' => $report->get('id')
|
131 |
]);
|
136 |
]);
|
132 |
$closebutton = html_writer::link(new moodle_url('/reportbuilder/index.php'), get_string('close', 'core_reportbuilder'), [
|
137 |
$closebutton = html_writer::link(new moodle_url('/reportbuilder/index.php'), get_string('close', 'core_reportbuilder'), [
|
133 |
'class' => 'btn btn-secondary',
|
138 |
'class' => 'btn btn-secondary',
|