From 7890283de93c282c9f6ea61c4be20e977fc041d5 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 12 Dec 2017 20:24:40 +0400 Subject: Registration of web services --- db/services.php | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 db/services.php diff --git a/db/services.php b/db/services.php new file mode 100644 index 0000000..b02313f --- /dev/null +++ b/db/services.php @@ -0,0 +1,43 @@ +. + +/** + * Registration of web services. + * + * @package local_billingpatch + * @copyright 2017 "Valentin Popov" + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined("MOODLE_INTERNAL") || die(); + +$functions = array( + "local_billingpatch_enable_administrator" => array( + "classname" => "local_billingpatch_external", + "methodname" => "enable_administrator", + "classpath" => "local/billingpatch/externallib.php", + "description" => "Adds a user to site administrators.", + "type" => "write" + ), + + "local_billingpatch_disable_administrator" => array( + "classname" => "local_billingpatch_external", + "methodname" => "disable_administrator", + "classpath" => "local/billingpatch/externallib.php", + "description" => "Removes a user from the site administrators.", + "type" => "write" + ) +); \ No newline at end of file -- cgit v1.2.3