Privacy class for requesting user data.
More...
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
◆ add_course_completion_users_to_userlist()
static core_completion\privacy\provider::add_course_completion_users_to_userlist |
( |
userlist | $userlist | ) |
|
|
static |
Find users' course completion by context and add to the provided userlist.
- Parameters
-
userlist | $userlist | The userlist to add to. |
◆ delete_completion()
static core_completion\privacy\provider::delete_completion |
( |
\stdClass | $user = null, |
|
|
int | $courseid = null, |
|
|
int | $cmid = null ) |
|
static |
Delete completion information for users.
- Parameters
-
stdClass | $user | The user. If provided will delete completion information for just this user. Else all users. |
int | $courseid | The course id. Provide this if you want course completion and activity completion deleted. |
int | $cmid | The course module id. Provide this if you only want activity completion deleted. |
◆ delete_completion_by_approved_userlist()
static core_completion\privacy\provider::delete_completion_by_approved_userlist |
( |
approved_userlist | $userlist, |
|
|
int | $courseid = null, |
|
|
int | $cmid = null ) |
|
static |
Delete completion information for users within an approved userlist.
- Parameters
-
approved_userlist | $userlist | The approved userlist of users to delete completion information for. |
int | $courseid | The course id. Provide this if you want course completion and activity completion deleted. |
int | $cmid | The course module id. Provide this if you only want activity completion deleted. |
◆ get_activity_completion_info()
static core_completion\privacy\provider::get_activity_completion_info |
( |
\stdClass | $user, |
|
|
stdClass | $course, |
|
|
| $cm ) |
|
static |
Returns activity completion information about a user.
- Parameters
-
stdClass | $user | The user to return information about. |
stdClass | $course | The course the user is in. |
stdClass | $cm | Course module information. |
- Return values
-
stdClass | Activity completion information. |
◆ get_course_completion_info()
static core_completion\privacy\provider::get_course_completion_info |
( |
\stdClass | $user, |
|
|
stdClass | $course ) |
|
static |
Returns course completion information for a user.
- Parameters
-
stdClass | $user | The user that we are getting completion information for. |
stdClass | $course | The course we are interested in. |
- Return values
-
stdClass | Course completion information. |
◆ get_course_completion_join_sql()
static core_completion\privacy\provider::get_course_completion_join_sql |
( |
int | $userid, |
|
|
string | $prefix, |
|
|
string | $joinfield ) |
|
static |
Get join sql to retrieve courses the user is in.
- Parameters
-
int | $userid | The user ID |
string | $prefix | A unique prefix for these joins. |
string | $joinfield | A field to join these tables to. Joins to course ID. |
- Return values
-
array | The join, where, and params for this join. |
◆ get_metadata()
static core_completion\privacy\provider::get_metadata |
( |
collection | $collection | ) |
|
|
static |
Returns meta data about this system.
- Parameters
-
collection | $collection | The initialised collection to add items to. |
- Return values
-
collection | A listing of user data stored through this system. |
Implements core_privacy\local\metadata\provider.
The documentation for this class was generated from the following file: