Lines Matching refs:method
46 foreach ($methods as $method) {
47 if (is_array($method)) {
48 $targetMethod = $method[0];
49 $method = $method[1];
51 $targetMethod = $method;
53 $this->callbacks[$prefix . $this->_delim . $method] = [$prefix, $targetMethod];
62 $method = $this->callbacks[$methodname];
71 if (is_array($method) || (substr($method, 0, 5) == 'this:')) {
72 if (is_array($method)) {
73 $object = $this->_objects[$method[0]];
74 $method = $method[1];
77 $method = substr($method, 5);
81 if (!method_exists($object, $method)) {
82 …return new Error(-32601, 'server error. requested class method "' . $method . '" does not exist.');
86 $result = $object->$method($args);
89 if (!function_exists($method)) {
90 … return new Error(-32601, 'server error. requested function "' . $method . '" does not exist.');
94 $result = $method($args);