Lines Matching refs:method
14 var $method; variable in IJR_Server
80 private function callClassMethod($method, $args) argument
82 $method = substr($method, 5);
83 if (!method_exists($this, $method)) {
84 …return new IJR_Error(-32601, 'server error. requested class method "'.$method.'" does not exist.');
86 return call_user_func_array(array(&$this,$method),$args);
90 private function callPlugin($pluginname, $callback, $method, $args) argument
93 list($pluginname, $callback) = explode(':', substr($method, 7), 2);
106 private function callFunction($method, $args) argument
108 if (!function_exists($method))
110 … return new IJR_Error(-32601, 'server error. requested function "'.$method.'" does not exist.');
112 return call_user_func_array($method,$args);
122 $method = $this->callbacks[$methodname];
127 if (substr($method, 0, 5) == 'this:')
129 $result = $this->callClassMethod($method, $args);
131 elseif (substr($method, 0, 7) == 'plugin:')
133 return $this->callPlugin($pluginname, $callback, $method, $args);
137 $result = $this->callFunction($method, $args);
169 function hasMethod($method) { argument
170 return in_array($method, array_keys($this->callbacks));