Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
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 (\quiz $quiz)
 Delete all data for all users in the specified quiz. More...
 
static delete_quizaccess_data_for_user (\quiz $quiz, stdClass $user)
 Delete all user data for the specified user, in the specified quiz. More...
 
static export_quizaccess_user_data (\quiz $quiz, stdClass $user)
 Export all user data for the specified user, for the specified quiz. More...
 

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 ( \quiz  $quiz)
static

Delete all data for all users in the specified quiz.

Parameters
quiz$quizThe quiz being deleted

◆ delete_quizaccess_data_for_user()

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

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

Parameters
quiz$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 ( \quiz  $quiz,
stdClass  $user 
)
static

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

Parameters
quiz$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: