MDL-76432 core_courseformat: add file_handlers webservice
commita3f116367e229519bd67c50ddae4e0240ac6f4d4
authorFerran Recio <ferran@moodle.com>
Thu, 1 Dec 2022 14:44:09 +0000 (1 15:44 +0100)
committerFerran Recio <ferran@moodle.com>
Mon, 6 Feb 2023 11:59:25 +0000 (6 12:59 +0100)
tree28f7c4ceb9a9daf38686ff955676868652cdef5c
parente359b9889abfc081d150a9b5571da6c056d39657
MDL-76432 core_courseformat: add file_handlers webservice

In 4.0- version each time the course page is loaded the file handlers
are calculate din the backend and injected directly into JS using a json
encapsulation. With this new webservice the handlers can be obtained
directly from the frontend when needed.
course/format/classes/external/file_handlers.php [new file with mode: 0644]
course/format/tests/external/file_handlers_test.php [new file with mode: 0644]
lib/db/services.php
version.php