Lines Matching +full:server +full:-
2 namespace IXR\Server;
7 * Extension of the {@link Server} class to easily wrap objects.
9 * Class is designed to extend the existing XML-RPC server to allow the
11 * XML-RPC server.
12 * It is intended to assist in organization of your XML-RPC methods by allowing
20 class ClassServer extends Server
29 $this->_delim = $delim;
30 $this->_objects = [];
35 $this->callbacks[$rpcName] = $functionName;
43 $this->_objects[$prefix] = $object;
53 $this->callbacks[$prefix . $this->_delim . $method] = [$prefix, $targetMethod];
59 if (!$this->hasMethod($methodname)) {
60 … return new Error(-32601, 'server error. requested method ' . $methodname . ' does not exist.');
62 $method = $this->callbacks[$methodname];
73 $object = $this->_objects[$method[0]];
80 // It's a class method - check it exists
82 …return new Error(-32601, 'server error. requested class method "' . $method . '" does not exist.');
86 $result = $object->$method($args);
88 // It's a function - does it exist?
90 … return new Error(-32601, 'server error. requested function "' . $method . '" does not exist.');