From: gggeek <giunta.gaetano@gmail.com> Date: Tue, 23 Apr 2024 12:36:56 +0000 (+0000) Subject: add a new method name to demo server X-Git-Tag: 4.10.4~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=01f3074a3a19ec5ac260cb2465deb17fb1e79b5a;p=plcapi.git add a new method name to demo server --- diff --git a/demo/server/methodProviders/functions.php b/demo/server/methodProviders/functions.php index 045574d6..cb084c42 100644 --- a/demo/server/methodProviders/functions.php +++ b/demo/server/methodProviders/functions.php @@ -309,6 +309,14 @@ return array( "docstring" => exampleMethods::$bitflipper_doc, ), + // same as examples_getStateName, but with no dot - so that it is easier to map this into a method call + // by clients which map f.e. xmlrpc method names into php object method names + "examples_getStateName" => array( + "function" => array("exampleMethods", "findState"), + "signature" => exampleMethods::$findstate_sig, + "docstring" => exampleMethods::$findstate_doc, + ), + // left in as an example, but disabled by default, to avoid this being abused if left on an open server /*"mail.send" => array( "function" => array("exampleMethods", "mailSend"),