| Línea 41... |
Línea 41... |
| 41 |
* @return stdClass
|
41 |
* @return stdClass
|
| 42 |
*/
|
42 |
*/
|
| 43 |
public function export_for_template(renderer_base $output): stdClass {
|
43 |
public function export_for_template(renderer_base $output): stdClass {
|
| 44 |
$context = new stdClass();
|
44 |
$context = new stdClass();
|
| 45 |
$exportlink = new \moodle_url('/admin/tool/admin_presets/index.php', ['action' => 'export']);
|
45 |
$exportlink = new \moodle_url('/admin/tool/admin_presets/index.php', ['action' => 'export']);
|
| 46 |
$exportbutton = new \single_button($exportlink, get_string('actionexport', 'tool_admin_presets'), 'get');
|
46 |
$exportbutton = new \single_button($exportlink, get_string('actionexport', 'tool_admin_presets'), 'get',
|
| - |
|
47 |
\single_button::BUTTON_PRIMARY);
|
| 47 |
$context->export = $exportbutton->export_for_template($output);
|
48 |
$context->export = $exportbutton->export_for_template($output);
|
| Línea 48... |
Línea 49... |
| 48 |
|
49 |
|
| 49 |
$importlink = new \moodle_url('/admin/tool/admin_presets/index.php', ['action' => 'import']);
|
50 |
$importlink = new \moodle_url('/admin/tool/admin_presets/index.php', ['action' => 'import']);
|
| - |
|
51 |
$importbutton = new \single_button($importlink, get_string('actionimport', 'tool_admin_presets'), 'get',
|
| 50 |
$importbutton = new \single_button($importlink, get_string('actionimport', 'tool_admin_presets'), 'get');
|
52 |
\single_button::BUTTON_PRIMARY);
|
| 51 |
$context->import = $importbutton->export_for_template($output);
|
53 |
$context->import = $importbutton->export_for_template($output);
|
| 52 |
return $context;
|
54 |
return $context;
|
| 53 |
}
|
55 |
}
|