Implementation of the privacy subsystem plugin provider for mod_assignment.
More...
Implementation of the privacy subsystem plugin provider for mod_assignment.
- 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 mod_assignment\privacy\provider::delete_data_for_all_users_in_context |
( |
\context |
$context | ) |
|
|
static |
◆ delete_data_for_user()
◆ delete_data_for_users()
static mod_assignment\privacy\provider::delete_data_for_users |
( |
approved_userlist |
$userlist | ) |
|
|
static |
◆ export_user_data()
Export personal data for the given approved_contextlist.
User and context information is contained within the contextlist.
- Parameters
-
approved_contextlist | $contextlist | a list of contexts approved for export. |
Implements core_privacy\local\request\core_user_data_provider.
◆ export_user_preferences()
static mod_assignment\privacy\provider::export_user_preferences |
( |
int |
$userid | ) |
|
|
static |
◆ get_assignment_by_context()
static mod_assignment\privacy\provider::get_assignment_by_context |
( |
|
$context | ) |
|
|
staticprotected |
Helper function to return assignment for a context module.
- Parameters
-
object | $context | The context module object to return the assignment record by. |
- Return values
-
mixed | The assignment details or null record associated with the context module. |
- Exceptions
-
◆ get_assignment_output()
static mod_assignment\privacy\provider::get_assignment_output |
( |
|
$assignmentdata | ) |
|
|
staticprotected |
Helper function generate assignment output object for exporting.
- Parameters
-
object | $assignmentdata | Object containing assignment data. |
- Return values
-
object | Formatted assignment output object for exporting. |
◆ get_assignment_submission_output()
static mod_assignment\privacy\provider::get_assignment_submission_output |
( |
|
$submissiondata | ) |
|
|
staticprotected |
Helper function generate assignment submission output object for exporting.
- Parameters
-
object | $submissiondata | Object containing assignment submission data. |
- Return values
-
object | Formatted assignment submission output for exporting. |
◆ get_assignment_submissions_by_assignment()
static mod_assignment\privacy\provider::get_assignment_submissions_by_assignment |
( |
|
$assignmentid, |
|
|
|
$userid, |
|
|
|
$teacher = false |
|
) |
| |
|
staticprotected |
Helper function to retrieve assignment submissions submitted by / marked by a user for a specific assignment.
- Parameters
-
int | $assignmentid | The assignment ID to retrieve assignment submissions by. |
int | $userid | The user ID to retrieve assignment submissions submitted / marked by. |
bool | $teacher | The teacher status to determine if marked assignment submissions should be returned. |
- Return values
-
array | Array of assignment submissions details. |
- Exceptions
-
◆ get_assignment_submissions_by_contextlist()
static mod_assignment\privacy\provider::get_assignment_submissions_by_contextlist |
( |
|
$contextlist, |
|
|
|
$userid, |
|
|
|
$teacher = false |
|
) |
| |
|
staticprotected |
Helper function to return assignment submissions submitted by / marked by a user and their contextlist.
- Parameters
-
object | $contextlist | Object with the contexts related to a userid to retrieve assignment submissions by. |
int | $userid | The user ID to find assignment submissions that were submitted by. |
bool | $teacher | The teacher status to determine if marked assignment submissions should be returned. |
- Return values
-
array | Array of assignment submission details. |
- Exceptions
-
◆ get_contexts_for_userid()
static mod_assignment\privacy\provider::get_contexts_for_userid |
( |
int |
$userid | ) |
|
|
static |
◆ get_metadata()
static mod_assignment\privacy\provider::get_metadata |
( |
collection |
$collection | ) |
|
|
static |
Return the fields which contain personal data.
- Parameters
-
collection | $collection | a reference to the collection to use to store the metadata. |
- Return values
-
collection | the updated collection of metadata items. |
Implements core_privacy\local\metadata\provider.
◆ get_users_in_context()
static mod_assignment\privacy\provider::get_users_in_context |
( |
userlist |
$userlist | ) |
|
|
static |
◆ has_marked_assignment_submissions()
static mod_assignment\privacy\provider::has_marked_assignment_submissions |
( |
|
$assignmentid, |
|
|
|
$userid |
|
) |
| |
|
staticprotected |
Helper function to check if a user has marked assignment submissions for a given assignment.
- Parameters
-
int | $assignmentid | The assignment ID to check if user has marked associated submissions. |
int | $userid | The user ID to check if user has marked associated submissions. |
- Return values
-
bool | If user has marked associated submissions returns true, otherwise false. |
- Exceptions
-
The documentation for this class was generated from the following file: