
externallib.php
in the class, for each web service function:
1 public static function [functionname] parameters
defines what type of parameters the function takes
return an external function parameters object (see
lib/externallib.php)
construct with array of external description objects, keyed
by parameter name
2 public static function [functionname]
implements the actual function
remember to check permissions
call self:validate context($context)
3 public static function [functionname] returns
defines what the type of data the function returns
return an external description object or null
Hubert Chathi Integrating Moodle with an external tool