|
5 | 5 | use moodle_page; |
6 | 6 |
|
7 | 7 | /** |
8 | | -* Basic renderer for pluginname format. |
9 | | -* |
10 | | -* @copyright 2022 Someone < [email protected]> |
11 | | - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
12 | | - */ |
13 | | - class renderer extends section_renderer { |
| 8 | + * Basic renderer for pluginname format. |
| 9 | + * |
| 10 | + * @copyright 2022 Someone < [email protected]> |
| 11 | + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| 12 | + */ |
| 13 | +class renderer extends section_renderer { |
14 | 14 | // Override any necessary renderer method here. |
15 | 15 |
|
16 | 16 | /** |
17 | | - * Generate the section title, wraps it in a link to the section page if page is to be displayed on a separate page. |
18 | | - * |
19 | | - * This method is required to enable the inplace section title editor. |
20 | | - * |
21 | | - * @param section_info|stdClass $section The course_section entry from DB |
22 | | - * @param stdClass $course The course entry from DB |
23 | | - * @return string HTML to output. |
24 | | - */ |
| 17 | + * Generate the section title, wraps it in a link to the section page if page is to be displayed on a separate page. |
| 18 | + * |
| 19 | + * This method is required to enable the inplace section title editor. |
| 20 | + * |
| 21 | + * @param section_info|stdClass $section The course_section entry from DB |
| 22 | + * @param stdClass $course The course entry from DB |
| 23 | + * @return string HTML to output. |
| 24 | + */ |
25 | 25 | public function section_title($section, $course) { |
26 | | - return $this->render(format_base::instance($course)->inplace_editable_render_section_name($section)); |
| 26 | + return $this->render(format_base::instance($course)->inplace_editable_render_section_name($section)); |
27 | 27 | } |
28 | 28 |
|
29 | 29 | /** |
30 | | - * Generate the section title to be displayed on the section page, without a link. |
31 | | - * |
32 | | - * This method is required to enable the inplace section title editor. |
33 | | - * |
34 | | - * @param section_info|stdClass $section The course_section entry from DB |
35 | | - * @param int|stdClass $course The course entry from DB |
36 | | - * @return string HTML to output. |
37 | | - */ |
| 30 | + * Generate the section title to be displayed on the section page, without a link. |
| 31 | + * |
| 32 | + * This method is required to enable the inplace section title editor. |
| 33 | + * |
| 34 | + * @param section_info|stdClass $section The course_section entry from DB |
| 35 | + * @param int|stdClass $course The course entry from DB |
| 36 | + * @return string HTML to output. |
| 37 | + */ |
38 | 38 | public function section_title_without_link($section, $course) { |
39 | | - return $this->render(format_base::instance($course)->inplace_editable_render_section_name($section, false)); |
40 | | - } |
| 39 | + return $this->render(format_base::instance($course)->inplace_editable_render_section_name($section, false)); |
41 | 40 | } |
| 41 | +} |
0 commit comments