Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

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