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.

This file contains the assignfeedback_provider interface.

Copyright: 2018 Adrian Greeve <adrian@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 87 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Interface: assignfeedback_provider  - X-Ref

get_context_for_userid_within_feedback(int $userid, contextlist $contextlist)   X-Ref
Retrieves the contextids associated with the provided userid for this subplugin.
NOTE if your subplugin must have an entry in the assign_grade table to work, then this
method can be empty.

param: int $userid The user ID to get context IDs for.
param: \core_privacy\local\request\contextlist $contextlist Use add_from_sql with this object to add your context IDs.

get_student_user_ids(useridlist $useridlist)   X-Ref
Returns student user ids related to the provided teacher ID. If an entry must be present in the assign_grade table for
your plugin to work then there is no need to fill in this method. If you filled in get_context_for_userid_within_feedback()
then you probably have to fill this in as well.

param: useridlist $useridlist A list of user IDs of students graded by this user.

export_feedback_user_data(assign_plugin_request_data $exportdata)   X-Ref
Export feedback data with the available grade and userid information provided.
assign_plugin_request_data contains:
- context
- grade object
- current path (subcontext)
- user object

param: assign_plugin_request_data $exportdata Contains data to help export the user information.

delete_feedback_for_context(assign_plugin_request_data $requestdata)   X-Ref
Any call to this method should delete all user data for the context defined in the deletion_criteria.
assign_plugin_request_data contains:
- context
- assign object

param: assign_plugin_request_data $requestdata Data useful for deleting user data from this sub-plugin.

delete_feedback_for_grade(assign_plugin_request_data $requestdata)   X-Ref
Calling this function should delete all user data associated with this grade.
assign_plugin_request_data contains:
- context
- grade object
- user object
- assign object

param: assign_plugin_request_data $requestdata Data useful for deleting user data.