diff --git a/classes/output/courseformat/content/cm.php b/classes/output/courseformat/content/cm.php index 5d2f5ab..07e2ee3 100644 --- a/classes/output/courseformat/content/cm.php +++ b/classes/output/courseformat/content/cm.php @@ -37,6 +37,12 @@ */ class cm extends \core_courseformat\output\local\content\cm { + /** + * Get the name of the template to use for this templatable. + * + * @param \renderer_base $renderer The renderer requesting the template name + * @return string + */ public function get_template_name(\renderer_base $renderer): string { return 'format_vsf/local/content/section/cm'; } diff --git a/classes/output/courseformat/content/section/cmitem.php b/classes/output/courseformat/content/section/cmitem.php index 002e902..5ea9f71 100644 --- a/classes/output/courseformat/content/section/cmitem.php +++ b/classes/output/courseformat/content/section/cmitem.php @@ -38,6 +38,12 @@ */ class cmitem extends \core_courseformat\output\local\content\section\cmitem { + /** + * Get the name of the template to use for this templatable. + * + * @param \renderer_base $renderer The renderer requesting the template name + * @return string + */ public function get_template_name(\renderer_base $renderer): string { return 'format_vsf/local/content/section/cmitem'; } diff --git a/classes/output/courseformat/content/section/cmlist.php b/classes/output/courseformat/content/section/cmlist.php index 250bedf..c8541e3 100644 --- a/classes/output/courseformat/content/section/cmlist.php +++ b/classes/output/courseformat/content/section/cmlist.php @@ -38,6 +38,12 @@ */ class cmlist extends \core_courseformat\output\local\content\section\cmlist { + /** + * Get the name of the template to use for this templatable. + * + * @param \renderer_base $renderer The renderer requesting the template name + * @return string + */ public function get_template_name(\renderer_base $renderer): string { return 'format_vsf/local/content/section/cmlist'; } diff --git a/classes/output/courseformat/content/sectionselector.php b/classes/output/courseformat/content/sectionselector.php index 8a672e9..1c1b3c9 100644 --- a/classes/output/courseformat/content/sectionselector.php +++ b/classes/output/courseformat/content/sectionselector.php @@ -96,6 +96,11 @@ public function export_for_template(\renderer_base $output): stdClass { return $this->data; } + /** + * Get the nav data. + * + * @return stdClass + */ public function get_nav_data() { return $this->navdata; } diff --git a/classes/output/renderer.php b/classes/output/renderer.php index fc3816c..7988477 100644 --- a/classes/output/renderer.php +++ b/classes/output/renderer.php @@ -526,6 +526,11 @@ protected function section_activity_summary($section, $course, $mods) { } } + /** + * Get the navigation link icons. + * + * @return array + */ public function vsf_get_nav_link_icons() { return [ 'next' => 'fa fa-arrow-circle-o-right', @@ -838,10 +843,20 @@ public function multiple_section_page($course) { return $content; } + /** + * Get the row class. + * + * @return string. + */ protected function get_row_class() { return 'row'; } + /** + * Get the column class. + * + * @return string. + */ protected function get_column_class($columns) { if (($columns == 1) || ($this->editing)) { return '';