Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

File Size: 66 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

renderer:: (3 methods):
  __construct()
  section_title()
  section_title_without_link()


Class: renderer  - X-Ref

Basic renderer for topics format.

__construct(moodle_page $page, $target)   X-Ref
Constructor method, calls the parent constructor.

param: moodle_page $page
param: string $target one of rendering target constants

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.

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

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

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