Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Renderer for outputting the weeks course format.

Copyright: 2012 Dan Poltawski
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 59 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

renderer:: (2 methods):
  section_title()
  section_title_without_link()


Class: renderer  - X-Ref

Basic renderer for weeks format.

section_title($section, $course)   X-Ref
Generate the section title, wraps it in a link to the section page if page is to be displayed on a separate page

return: string HTML to output.
param: stdClass $section The course_section entry from DB
param: stdClass $course The course entry from DB

section_title_without_link($section, $course)   X-Ref
Generate the section title to be displayed on the section page, without a link

return: string HTML to output.
param: stdClass $section The course_section entry from DB
param: stdClass $course The course entry from DB