External functions API
From MoodleDocs
The External functions API allows you to create fully parametrised methods that can be accessed by external programs (such as Web services).
externallib.php
- This file is located at the root of your plugin.
- This file is composed by a class that contains the external function referenced in services.php
For more information on how to implement the external function read the External functions API documentation.