Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.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