Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]

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: 286 lines (13 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