| Línea 83... |
Línea 83... |
| 83 |
* @param int $userid The id of the user in scope.
|
83 |
* @param int $userid The id of the user in scope.
|
| 84 |
* @param string $component the frankenstyle component name.
|
84 |
* @param string $component the frankenstyle component name.
|
| 85 |
* @param string $itemtype the type of the favourited items.
|
85 |
* @param string $itemtype the type of the favourited items.
|
| 86 |
*/
|
86 |
*/
|
| 87 |
public static function add_contexts_for_userid(\core_privacy\local\request\contextlist $contextlist, int $userid,
|
87 |
public static function add_contexts_for_userid(\core_privacy\local\request\contextlist $contextlist, int $userid,
|
| 88 |
string $component, string $itemtype = null) {
|
88 |
string $component, ?string $itemtype = null) {
|
| 89 |
$sql = "SELECT contextid
|
89 |
$sql = "SELECT contextid
|
| 90 |
FROM {favourite} f
|
90 |
FROM {favourite} f
|
| 91 |
WHERE userid = :userid
|
91 |
WHERE userid = :userid
|
| 92 |
AND component = :component";
|
92 |
AND component = :component";
|
| Línea 107... |
Línea 107... |
| 107 |
* @param \core_privacy\local\request\userlist $userlist The userlist to add the users to.
|
107 |
* @param \core_privacy\local\request\userlist $userlist The userlist to add the users to.
|
| 108 |
* @param string $itemtype the type of the favourited items.
|
108 |
* @param string $itemtype the type of the favourited items.
|
| 109 |
* @return void
|
109 |
* @return void
|
| 110 |
*/
|
110 |
*/
|
| 111 |
public static function add_userids_for_context(\core_privacy\local\request\userlist $userlist,
|
111 |
public static function add_userids_for_context(\core_privacy\local\request\userlist $userlist,
|
| 112 |
string $itemtype = null) {
|
112 |
?string $itemtype = null) {
|
| 113 |
if (empty($userlist)) {
|
113 |
if (empty($userlist)) {
|
| 114 |
return;
|
114 |
return;
|
| 115 |
}
|
115 |
}
|
| Línea 116... |
Línea 116... |
| 116 |
|
116 |
|