Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Renderer for core_grading subsystem

Copyright: 2011 David Mudrak <david@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 100 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_grading_renderer:: (4 methods):
  management_method_selector()
  management_action_icon()
  management_message()
  pick_action_icon()


Class: core_grading_renderer  - X-Ref

Standard HTML output renderer for core_grading subsystem

management_method_selector(grading_manager $manager, moodle_url $targeturl)   X-Ref
Renders the active method selector at the grading method management screen

param: grading_manager $manager
param: moodle_url $targeturl
return: string

management_action_icon(moodle_url $url, $text, $icon)   X-Ref
Renders an action icon at the gradng method management screen

param: moodle_url $url action URL
param: string $text action text
param: string $icon the name of the icon to use
return: string

management_message($message)   X-Ref
Renders a message for the user, typically as an action result

param: string $message
return: string

pick_action_icon(moodle_url $url, $text, $icon = '', $class = '')   X-Ref
Renders the template action icon

param: moodle_url $url action URL
param: string $text action text
param: string $icon the name of the icon to use
param: string $class extra class of this action
return: string