-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CTP-2495 Replace quiz deprecated methods
CTP-2889 Tweaks dashboard page CTP-2890 Fix external api phpunit test
- Loading branch information
1 parent
1fed4f1
commit 6c97428
Showing
8 changed files
with
135 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ | |
|
||
namespace local_sitsgradepush\privacy; | ||
|
||
use core_privacy\local\metadata\collection; | ||
|
||
/** | ||
* Data provider class. | ||
* | ||
|
@@ -24,7 +26,9 @@ | |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
* @author Alex Yeung <[email protected]> | ||
*/ | ||
class provider implements \core_privacy\local\metadata\null_provider { | ||
class provider implements | ||
\core_privacy\local\metadata\null_provider, | ||
\core_privacy\local\metadata\provider { | ||
|
||
/** | ||
* Get the language string identifier with the component's language | ||
|
@@ -35,4 +39,38 @@ class provider implements \core_privacy\local\metadata\null_provider { | |
public static function get_reason() : string { | ||
return 'privacy:metadata'; | ||
} | ||
|
||
/** | ||
* Returns metadata about this plugin. | ||
* | ||
* @param collection $collection The initialised collection to add items to. | ||
* @return collection A listing of user data stored through this system. | ||
*/ | ||
public static function get_metadata(collection $collection) : collection { | ||
$collection->add_database_table('local_sitsgradepush_tfr_log', [ | ||
'type' => 'privacy:metadata:local_sitsgradepush_tfr_log:type', | ||
'userid' => 'privacy:metadata:local_sitsgradepush_tfr_log:userid', | ||
'request' => 'privacy:metadata:local_sitsgradepush_tfr_log:request', | ||
'requestbody' => 'privacy:metadata:local_sitsgradepush_tfr_log:requestbody', | ||
'response' => 'privacy:metadata:local_sitsgradepush_tfr_log:response', | ||
'usermodified' => 'privacy:metadata:local_sitsgradepush_tfr_log:usermodified', | ||
], 'privacy:metadata:local_sitsgradepush_tfr_log'); | ||
|
||
$collection->add_database_table('local_sitsgradepush_err_log', [ | ||
'message' => 'privacy:metadata:local_sitsgradepush_err_log:message', | ||
'errortype' => 'privacy:metadata:local_sitsgradepush_err_log:errortype', | ||
'requesturl' => 'privacy:metadata:local_sitsgradepush_err_log:requesturl', | ||
'data' => 'privacy:metadata:local_sitsgradepush_err_log:data', | ||
'response' => 'privacy:metadata:local_sitsgradepush_err_log:response', | ||
'userid' => 'privacy:metadata:local_sitsgradepush_err_log:userid', | ||
], 'privacy:metadata:local_sitsgradepush_err_log'); | ||
|
||
$collection->add_database_table('local_sitsgradepush_tasks', [ | ||
'userid' => 'privacy:metadata:local_sitsgradepush_tasks:userid', | ||
'status' => 'privacy:metadata:local_sitsgradepush_tasks:status', | ||
'info' => 'privacy:metadata:local_sitsgradepush_tasks:info', | ||
], 'privacy:metadata:local_sitsgradepush_tasks'); | ||
|
||
return $collection; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters