Privacy class for requesting user data.  
 More...
|  | 
| static | delete_overrides_for_users (\assign $assign, array $userids=[]) | 
|  | Deletes assignment overrides in bulk. 
 | 
|  | 
| static | export_grade_data (\stdClass $grade, context $context, array $currentpath) | 
|  | Formats and then exports the user's grade data. 
 | 
|  | 
| static | export_submission (\assign $assign, stdClass $user, context_module $context, array $path, bool $exportforteacher=false) | 
|  | Exports assignment submission data for a user. 
 | 
|  | 
| static | export_submission_data (\stdClass $submission, context $context, array $currentpath) | 
|  | Formats and then exports the user's submission data. 
 | 
|  | 
| static | get_graded_users (int $userid, assign $assign) | 
|  | Find out if this user has graded any users. 
 | 
|  | 
| static | store_assign_user_flags (\context $context, assign $assign, int $userid) | 
|  | Writes out various user meta data about the assignment. 
 | 
|  | 
Privacy class for requesting user data. 
- Copyright
- 2018 Adrian Greeve adria.nosp@m.n@mo.nosp@m.odle..nosp@m.com 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ delete_data_for_all_users_in_context()
  
  | 
        
          | static mod_assign\privacy\provider::delete_data_for_all_users_in_context | ( | \context | $context | ) |  |  | static | 
 
 
◆ delete_data_for_user()
◆ delete_data_for_users()
  
  | 
        
          | static mod_assign\privacy\provider::delete_data_for_users | ( | approved_userlist | $userlist | ) |  |  | static | 
 
 
◆ delete_overrides_for_users()
  
  | 
        
          | static mod_assign\privacy\provider::delete_overrides_for_users | ( | \assign | $assign, |  
          |  |  | array | $userids = [] ) |  | staticprotected | 
 
Deletes assignment overrides in bulk. 
- Parameters
- 
  
    | assign | $assign | The assignment object |  | array | $userids | An array of user IDs |  
 
 
 
◆ export_grade_data()
  
  | 
        
          | static mod_assign\privacy\provider::export_grade_data | ( | \stdClass | $grade, |  
          |  |  | context | $context, |  
          |  |  | array | $currentpath ) |  | staticprotected | 
 
Formats and then exports the user's grade data. 
- Parameters
- 
  
    | stdClass | $grade | The assign grade object |  | context | $context | The context object |  | array | $currentpath | Current directory path that we are exporting to. |  
 
 
 
◆ export_overrides()
  
  | 
        
          | static mod_assign\privacy\provider::export_overrides | ( | \context | $context, |  
          |  |  | assign | $assign, |  
          |  |  | stdClass | $user ) |  | static | 
 
Export overrides for this assignment. 
- Parameters
- 
  
    | context | $context | Context |  | assign | $assign | The assign object. |  | stdClass | $user | The user object. |  
 
 
 
◆ export_submission()
  
  | 
        
          | static mod_assign\privacy\provider::export_submission | ( | \assign | $assign, |  
          |  |  | stdClass | $user, |  
          |  |  | context_module | $context, |  
          |  |  | array | $path, |  
          |  |  | bool | $exportforteacher = false ) |  | staticprotected | 
 
Exports assignment submission data for a user. 
- Parameters
- 
  
    | assign | $assign | The assignment object |  | stdClass | $user | The user object |  | context_module | $context | The context |  | array | $path | The path for exporting data |  | bool | boolean | $exportforteacher | A flag for if this is exporting data as a teacher. |  
 
 
 
◆ export_submission_data()
  
  | 
        
          | static mod_assign\privacy\provider::export_submission_data | ( | \stdClass | $submission, |  
          |  |  | context | $context, |  
          |  |  | array | $currentpath ) |  | staticprotected | 
 
Formats and then exports the user's submission data. 
- Parameters
- 
  
    | stdClass | $submission | The assign submission object |  | context | $context | The context object |  | array | $currentpath | Current directory path that we are exporting to. |  
 
 
 
◆ export_user_data()
◆ export_user_preferences()
  
  | 
        
          | static mod_assign\privacy\provider::export_user_preferences | ( | int | $userid | ) |  |  | static | 
 
 
◆ get_contexts_for_userid()
  
  | 
        
          | static mod_assign\privacy\provider::get_contexts_for_userid | ( | int | $userid | ) |  |  | static | 
 
 
◆ get_graded_users()
  
  | 
        
          | static mod_assign\privacy\provider::get_graded_users | ( | int | $userid, |  
          |  |  | assign | $assign ) |  | staticprotected | 
 
Find out if this user has graded any users. 
- Parameters
- 
  
    | int | $userid | The user ID (potential teacher). |  | assign | $assign | The assignment object. |  
 
- Return values
- 
  
    | array | If successful an array of objects with userids that this user graded, otherwise false. |  
 
 
 
◆ get_metadata()
  
  | 
        
          | static mod_assign\privacy\provider::get_metadata | ( | collection | $collection | ) |  |  | static | 
 
Provides meta data that is stored about a user with mod_assign. 
- Parameters
- 
  
    | collection | $collection | A collection of meta data items to be added to. |  
 
- Return values
- 
  
    | collection | Returns the collection of metadata. |  
 
Implements core_privacy\local\metadata\provider.
 
 
◆ get_users_in_context()
  
  | 
        
          | static mod_assign\privacy\provider::get_users_in_context | ( | userlist | $userlist | ) |  |  | static | 
 
 
◆ store_assign_user_flags()
  
  | 
        
          | static mod_assign\privacy\provider::store_assign_user_flags | ( | \context | $context, |  
          |  |  | assign | $assign, |  
          |  |  | int | $userid ) |  | staticprotected | 
 
Writes out various user meta data about the assignment. 
- Parameters
- 
  
    | context | $context | The context of this assignment. |  | assign | $assign | The assignment object. |  | int | $userid | The user ID |  
 
 
 
◆ ASSIGNFEEDBACK_USER_INTERFACE
Interface for all assign feedback sub-plugins. 
This allows for deletion of users with a context. 
 
 
◆ ASSIGNSUBMISSION_USER_INTERFACE
Interface for all assign submission sub-plugins. 
This allows for deletion of users with a context. 
 
 
The documentation for this class was generated from the following file: