Quantcast
Viewing all articles
Browse latest Browse all 2363

Re: writing a new service - Class \"external_function_parameters\" not found

by sajed zarinpour.  

I think the docs need an update. I was able to get this right by going through the original externallib file located in "moodle/lib/external/externallib.php". One can see that the use clauses are changed to

use core_external\external_api;
use core_external\external_function_parameters;
use core_external\external_multiple_structure;
use core_external\external_single_structure;
use core_external\external_value;

and the service should extends external_api

Thanks.

Viewing all articles
Browse latest Browse all 2363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>