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.
/grade/ -> renderer.php (source)

Differences Between: [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

(no description)

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

Defines 1 class

core_grades_renderer:: (3 methods):
  render_action_bar()
  group_selector()
  user_heading()


Class: core_grades_renderer  - X-Ref

Renderer class for the grade pages.

render_action_bar(action_bar $actionbar)   X-Ref
Renders the action bar for a given page.

param: action_bar $actionbar
return: string The HTML output

group_selector(object $course, ?string $groupactionbaseurl = null)   X-Ref
Renders the group selector trigger element.

param: object $course The course object.
param: string|null $groupactionbaseurl The base URL for the group action.
return: string|null The raw HTML to render.

user_heading(stdClass $user, int $courseid, bool $showbuttons = true)   X-Ref
Creates and renders a custom user heading.

param: stdClass $user The user object.
param: int $courseid The course ID.
param: bool $showbuttons Whether to display buttons (message, add to contacts) within the heading.
return: string The raw HTML to render.