[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/assign/feedback/editpdf/ -> locallib.php (summary)

This file contains the definition for the library class for PDF feedback plugin

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

Defines 1 class

assign_feedback_editpdf:: (13 methods):
  get_name()
  get_widget()
  get_form_elements_for_user()
  is_feedback_modified()
  save()
  view_summary()
  view()
  is_empty()
  delete_instance()
  is_enabled()
  is_configurable()
  get_file_areas()
  supports_review_panel()


Class: assign_feedback_editpdf  - X-Ref

library class for editpdf feedback plugin extending feedback plugin base class

get_name()   X-Ref
Get the name of the file feedback plugin

return: string

get_widget($userid, $grade, $readonly)   X-Ref
Create a widget for rendering the editor.

param: int $userid
param: stdClass $grade
param: bool $readonly
return: assignfeedback_editpdf_widget

get_form_elements_for_user($grade, MoodleQuickForm $mform, stdClass $data, $userid)   X-Ref
Get form elements for grading form

param: stdClass $grade
param: MoodleQuickForm $mform
param: stdClass $data
param: int $userid
return: bool true if elements were added to the form

is_feedback_modified(stdClass $grade, stdClass $data)   X-Ref
Check to see if the grade feedback for the pdf has been modified.

param: stdClass $grade Grade object.
param: stdClass $data Data from the form submission (not used).
return: boolean True if the pdf has been modified, else false.

save(stdClass $grade, stdClass $data)   X-Ref
Generate the pdf.

param: stdClass $grade
param: stdClass $data
return: bool

view_summary(stdClass $grade, & $showviewlink)   X-Ref
Display the list of files in the feedback status table.

param: stdClass $grade
param: bool $showviewlink (Always set to false).
return: string

view(stdClass $grade)   X-Ref
Display the list of files in the feedback status table.

param: stdClass $grade
return: string

is_empty(stdClass $grade)   X-Ref
Return true if there are no released comments/annotations.

param: stdClass $grade

delete_instance()   X-Ref
The assignment has been deleted - remove the plugin specific data

return: bool

is_enabled()   X-Ref
Automatically enable or disable editpdf feedback plugin based on
whether the ghostscript path is set correctly.

return: bool

is_configurable()   X-Ref
Automatically hide the setting for the editpdf feedback plugin.

return: bool false

get_file_areas()   X-Ref
Get file areas returns a list of areas this plugin stores files.

return: array - An array of fileareas (keys) and descriptions (values)

supports_review_panel()   X-Ref
This plugin will inject content into the review panel with javascript.

return: bool true



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1