Privacy Subsystem for report_stats implementing provider.  
 More...
|  | 
| static | delete_stats (int $courseid, int $userid=null) | 
|  | Deletes stats for a given course. 
 | 
|  | 
Privacy Subsystem for report_stats implementing provider. 
- Copyright
- 2018 Zig Tan zig@m.nosp@m.oodl.nosp@m.e.com 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ delete_data_for_all_users_in_context()
  
  | 
        
          | static report_stats\privacy\provider::delete_data_for_all_users_in_context | ( | \context | $context | ) |  |  | static | 
 
 
◆ delete_data_for_user()
◆ delete_data_for_users()
  
  | 
        
          | static report_stats\privacy\provider::delete_data_for_users | ( | approved_userlist | $userlist | ) |  |  | static | 
 
 
◆ delete_stats()
  
  | 
        
          | static report_stats\privacy\provider::delete_stats | ( | int | $courseid, |  
          |  |  | int | $userid = null ) |  | staticprotected | 
 
Deletes stats for a given course. 
- Parameters
- 
  
    | int | $courseid | The course ID to delete the stats for. |  | int | $userid | Optionally a user id to delete records with. |  
 
 
 
◆ export_user_data()
◆ get_contexts_for_userid()
  
  | 
        
          | static report_stats\privacy\provider::get_contexts_for_userid | ( | int | $userid | ) |  |  | static | 
 
Get the list of contexts that contain user information for the specified user. 
- Parameters
- 
  
    | int | $userid | The user to search. |  
 
- Return values
- 
  
    | contextlist\$contextlist | The contextlist containing the list of contexts used in this plugin. |  
 
Implements core_privacy\local\request\core_user_data_provider.
 
 
◆ get_metadata()
  
  | 
        
          | static report_stats\privacy\provider::get_metadata | ( | collection | $collection | ) |  |  | static | 
 
Returns information about the user data stored in this component. 
- Parameters
- 
  
    | collection | $collection | A list of information about this component |  
 
- Return values
- 
  
    | collection | The collection object filled out with information about this component. |  
 
Implements core_privacy\local\metadata\provider.
 
 
◆ get_users_in_context()
  
  | 
        
          | static report_stats\privacy\provider::get_users_in_context | ( | userlist | $userlist | ) |  |  | static | 
 
 
The documentation for this class was generated from the following file: