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.

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

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.

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

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

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.
return: string

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

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