Lines Matching defs:method
32 'Returns an array describing the return type and required parameters of a method'
50 'Returns a documentation string for the specified method'
54 public function addCallback($method, $callback, $args, $help)
56 $this->callbacks[$method] = $callback;
57 $this->signatures[$method] = $args;
58 $this->help[$method] = $help;
68 // Over-rides default call method, adds signature check
71 'server error. requested method "' . $this->message->methodName . '" not specified.');
73 $method = $this->callbacks[$methodname];
79 return new Error(-32602, 'server error. wrong number of method parameters');
120 return new Error(-32602, 'server error. invalid method parameters');
123 // It passed the test - run the "real" method call
127 public function methodSignature($method)
129 if (!$this->hasMethod($method)) {
130 return new Error(-32601, 'server error. requested method "' . $method . '" not specified.');
133 $types = $this->signatures[$method];
167 public function methodHelp($method)
169 return $this->help[$method];