MDL-61477 admin: sitepolicy handler API
commit1727c939ba2a9498aaa2caf438f243860f54dd23
authorMarina Glancy <marina@moodle.com>
Mon, 12 Mar 2018 01:33:43 +0000 (12 09:33 +0800)
committerMarina Glancy <marina@moodle.com>
Thu, 15 Mar 2018 03:32:55 +0000 (15 11:32 +0800)
treef6d6967ccbf0caf7eaddf2d1a4c33332f784c7f5
parent0bdc57856784b5dc46da6d295d15d69008fd703e
MDL-61477 admin: sitepolicy handler API

- Define sitepolicy handler manager class, base class and the core handler
- Allow to set a plugin as sitepolicyhandler that implements the sitepolicy API
- Modify web services to return information from the 3rd party handler instead of core if needed
24 files changed:
admin/settings/plugins.php
admin/settings/privacy.php [new file with mode: 0644]
admin/settings/security.php
admin/settings/top.php
admin/tool/mobile/classes/api.php
admin/tool/mobile/tests/externallib_test.php
auth/email/classes/external.php
auth/tests/behat/validateagedigitalconsentmap.feature
auth/upgrade.txt
file.php
lang/en/admin.php
lib/adminlib.php
lib/moodlelib.php
lib/upgrade.txt
login/signup_form.php
message/output/popup/lib.php
privacy/classes/local/sitepolicy/default_handler.php [new file with mode: 0644]
privacy/classes/local/sitepolicy/handler.php [new file with mode: 0644]
privacy/classes/local/sitepolicy/manager.php [new file with mode: 0644]
privacy/tests/fixtures/mock_sitepolicy_handler.php [new file with mode: 0644]
privacy/tests/sitepolicy_test.php [new file with mode: 0644]
user/classes/analytics/indicator/user_profile_set.php
user/externallib.php
user/policy.php