Bildungsportal / moodle-local_table_sql

GNU General Public License v3.0
1 stars 0 forks source link

External API #1

Closed lostrogit closed 1 week ago

lostrogit commented 2 months ago

Using this way to call the classes here https://github.com/Bildungsportal/moodle-local_table_sql/blob/main/classes/receiver.php#L26-L29, I think you will need to include require_once($CFG->libdir . '/externallib.php'); before call them, or better use the complete namespace -> core_external[classname] in order to prevent an error.

Please see also https://moodledev.io/docs/4.5/apis/subsystems/external/writing-a-service#functional-specification