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 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

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

Copyright: 2012 NetSpot {@link http://www.netspot.com.au}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 423 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

assign_feedback_offline:: (12 methods):
  get_name()
  get_form_elements()
  is_empty()
  is_feedback_modified()
  process_import_grades()
  upload_grades()
  download_grades()
  view_page()
  get_grading_actions()
  is_enabled()
  has_user_summary()
  get_config_for_external()


Class: assign_feedback_offline  - X-Ref

library class for file feedback plugin extending feedback plugin base class

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

return: string

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

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

is_empty(stdClass $grade)   X-Ref
Return true if there are no feedback files

param: stdClass $grade

is_feedback_modified(stdClass $grade, stdClass $data)   X-Ref
This plugin does not save through the normal interface so this returns false.

param: stdClass $grade The grade.
param: stdClass $data Form data from the feedback form.
return: boolean - False

process_import_grades($draftid, $importid, $ignoremodified, $encoding = 'utf-8', $separator = 'comma')   X-Ref
Loop through uploaded grades and update the grades for this assignment

param: int $draftid - The unique draft item id for this import
param: int $importid - The unique import ID for this csv import operation
param: bool $ignoremodified - Ignore the last modified date when checking fields
param: string $encoding - Encoding of the file being processed.
param: string $separator - The character used to separate the information.
return: string - The html response

upload_grades()   X-Ref
Display upload grades form

return: string The response html

download_grades()   X-Ref
Download a marking worksheet

return: string The response html

view_page($action)   X-Ref
Print a sub page in this plugin

param: string $action - The plugin action
return: string The response html

get_grading_actions()   X-Ref
Return a list of the grading actions performed by this plugin
This plugin supports upload zip

return: array The list of grading actions

is_enabled()   X-Ref
Override the default is_enabled to disable this plugin if advanced grading is active

return: bool

has_user_summary()   X-Ref
Do not show this plugin in the grading table or on the front page

return: bool

get_config_for_external()   X-Ref
Return the plugin configs for external functions.

return: array the list of settings