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.

Differences Between: [Versions 310 and 400] [Versions 39 and 400]

This file contains the definition for the library class for edit PDF renderer.

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

Defines 1 class

assignfeedback_editpdf_renderer:: (3 methods):
  get_shortcut()
  render_toolbar_button()
  render_assignfeedback_editpdf_widget()


Class: assignfeedback_editpdf_renderer  - X-Ref

A custom renderer class that extends the plugin_renderer_base and is used by the editpdf feedback plugin.

get_shortcut($name)   X-Ref
Return the PDF button shortcut.

return: string the specific shortcut.
param: string $name the name of a specific button.

render_toolbar_button($icon, $tool, $accesskey = null, $disabled=false)   X-Ref
Render a single colour button.

return: string
param: string $icon - The key for the icon
param: string $tool - The key for the lang string.
param: string $accesskey Optional - The access key for the button.
param: bool $disabled Optional - Is this button disabled.

render_assignfeedback_editpdf_widget(assignfeedback_editpdf_widget $widget)   X-Ref
Render the editpdf widget in the grading form.

return: string
param: assignfeedback_editpdf_widget $widget - Renderable widget containing assignment, user and attempt number.