Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
mod_quiz\privacy\quizaccess_provider Interface Reference

The quizaccess_provider interface provides the expected interface for all 'quizaccess' quizaccesss. More...

Inheritance diagram for mod_quiz\privacy\quizaccess_provider:
core_privacy\local\request\plugin\subplugin_provider core_privacy\local\request\shared_data_provider core_privacy\local\request\data_provider

Static Public Member Functions

static delete_quizaccess_data_for_all_users_in_context (\mod_quiz\quiz_settings $quiz)
 Delete all data for all users in the specified quiz.
 
static delete_quizaccess_data_for_user (\mod_quiz\quiz_settings $quiz, stdClass $user)
 Delete all user data for the specified user, in the specified quiz.
 
static export_quizaccess_user_data (\mod_quiz\quiz_settings $quiz, stdClass $user)
 Export all user data for the specified user, for the specified quiz.
 

Detailed Description

The quizaccess_provider interface provides the expected interface for all 'quizaccess' quizaccesss.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ delete_quizaccess_data_for_all_users_in_context()

static mod_quiz\privacy\quizaccess_provider::delete_quizaccess_data_for_all_users_in_context ( \mod_quiz\quiz_settings $quiz)
static

Delete all data for all users in the specified quiz.

Parameters
mod_quiz\quiz_settings$quizThe quiz being deleted

◆ delete_quizaccess_data_for_user()

static mod_quiz\privacy\quizaccess_provider::delete_quizaccess_data_for_user ( \mod_quiz\quiz_settings $quiz,
stdClass $user )
static

Delete all user data for the specified user, in the specified quiz.

Parameters
mod_quiz\quiz_settings$quizThe quiz being deleted
stdClass$userThe user to export data for

◆ export_quizaccess_user_data()

static mod_quiz\privacy\quizaccess_provider::export_quizaccess_user_data ( \mod_quiz\quiz_settings $quiz,
stdClass $user )
static

Export all user data for the specified user, for the specified quiz.

Parameters
mod_quiz\quiz_settings$quizThe quiz being exported
stdClass$userThe user to export data for
Return values
stdClassThe data to be exported for this access rule.

The documentation for this interface was generated from the following file: