Added tables local_treestudyplan(teachers|lineuser|coach) to privacy metadata

This commit is contained in:
PMKuipers 2024-12-27 23:37:08 +01:00
parent fb92b0bcd6
commit 987537149b
3 changed files with 57 additions and 0 deletions

View file

@ -76,6 +76,33 @@ class provider implements \core_privacy\local\metadata\provider,
],
'privacy:metadata:user'
);
$collection->add_database_table(
'local_treestudyplan_teachers',
[
'teacher_id' => 'privacy:metadata:teachers:user_id',
'studyplan_id' => 'privacy:metadata:teachers:studyplan_id',
],
'privacy:metadata:teachers'
);
$collection->add_database_table(
'local_treestudyplan_lineuser',
[
'user_id' => 'privacy:metadata:lineuser:user_id',
'line_id' => 'privacy:metadata:lineuser:line_id',
'timeenrolled' => 'privacy:metadata:lineuser:timeenrolled',
'enrolled' => 'privacy:metadata:lineuser:enrolledby',
'enrolledby' => 'privacy:metadata:lineuser:enrolledby',
],
'privacy:metadata:lineuser'
);
$collection->add_database_table(
'local_treestudyplan_coach',
[
'user_id' => 'privacy:metadata:coach:user_id',
'studyplan_id' => 'privacy:metadata:coach:studyplan_id',
],
'privacy:metadata:coach'
);
return $collection;
}

View file

@ -34,6 +34,21 @@ $string["privacy:metadata:user"] = 'Links between individual users and study pla
$string["privacy:metadata:user:user_id"] = 'The UserID of the user';
$string["privacy:metadata:user:studyplan_id"] = 'The study plan';
$string["privacy:metadata:teachers"] = 'Cached table for linking teachers to study plans';
$string["privacy:metadata:teachers:teacher_id"] = 'The UserID of the teacher';
$string["privacy:metadata:teachers:studyplan_id"] = 'The study plan in which the teacher teaches at least one course';
$string["privacy:metadata:lineuser"] = 'Registers a user as enrolled in a line within a studyplan';
$string["privacy:metadata:lineuser:user_id"] = 'The UserID of the user';
$string["privacy:metadata:lineuser:line_id"] = 'The study line the user is enrolled in (or not)';
$string["privacy:metadata:lineuser:timeenrolled"] = 'The moment of enrolment';
$string["privacy:metadata:lineuser:enrolled"] = 'Wether th user is enrolled or not';
$string["privacy:metadata:lineuser:enrolledby"] = 'Optional userid of another user who enrolled the user in this line';
$string["privacy:metadata:coach"] = 'Links a user as coach to a study plan';
$string["privacy:metadata:coach:user_id"] = 'The UserID of the user';
$string["privacy:metadata:coach:studyplan_id"] = 'The study plan';
$string["treestudyplan:editstudyplan"] = "Manage study plans";
$string["treestudyplan:configure"] = "Configure study plans";
$string["treestudyplan:viewuserreports"] = "View study plan of others";

View file

@ -34,6 +34,21 @@ $string["privacy:metadata:user"] = 'Persoonlijke koppelingen tussen gebruiker en
$string["privacy:metadata:user:user_id"] = 'Gebruikers-ID';
$string["privacy:metadata:user:studyplan_id"] = 'ID van gekoppeld studieplan';
$string["privacy:metadata:teachers"] = 'Cachetabel tussen gebruikers en studieplannen waarin ze als leraar aan cursussen zijn gekoppeld ';
$string["privacy:metadata:teachers:teacher_id"] = 'Gebruikers-ID van de leraar';
$string["privacy:metadata:teachers:studyplan_id"] = 'Het studieplan waarin de leraar minimaal één cursus geeft.';
$string["privacy:metadata:lineuser"] = 'Registreert een gebruiker als ingeschreven in een leerlijn';
$string["privacy:metadata:lineuser:user_id"] = 'Gebruikers-ID';
$string["privacy:metadata:lineuser:line_id"] = 'ID van de leerlijn';
$string["privacy:metadata:lineuser:timeenrolled"] = 'Moment van inschrijven';
$string["privacy:metadata:lineuser:enrolled"] = 'Of de gebruiker is ingeschreven of niet';
$string["privacy:metadata:lineuser:enrolledby"] = 'Optioneel: ID van een andere gebruiker die de inschrijving heeft gedaan.';
$string["privacy:metadata:coach"] = 'Koppelt een gebruiker als coach aan een studieplan';
$string["privacy:metadata:coach:user_id"] = 'Gebruikers-ID';
$string["privacy:metadata:coach:studyplan_id"] = 'ID van gekoppeld studieplan';
$string["treestudyplan:editstudyplan"] = "Studieplannen beheren";
$string["treestudyplan:configure"] = "Studieplannen configureren";
$string["treestudyplan:viewuserreports"] = "Studieplannen van anderen bekijken";