Lines Matching defs:method

215         // merged from WP #10698 - this method avoids the RAM usage of preg_replace on very large messages
461 return new IXR_Error(-32601, 'server error. requested method ' . $methodname . ' does not exist.');
463 $method = $this->callbacks[$methodname];
478 // Are we dealing with a function or a method?
479 if(is_string($method) && substr($method, 0, 5) == 'this:') {
480 // It's a class method - check it exists
481 $method = substr($method, 5);
482 if(!method_exists($this, $method)) {
483 return new IXR_Error(-32601, 'server error. requested class method "' . $method . '" does not exist.');
485 // Call the method
486 #$result = $this->$method($args);
487 $result = call_user_func_array(array(&$this, $method), $args);
488 } elseif(substr($method, 0, 7) == 'plugin:') {
489 list($pluginname, $callback) = explode(':', substr($method, 7), 2);
498 if(is_array($method)) {
499 if(!is_callable(array($method[0], $method[1]))) {
500 return new IXR_Error(-32601, 'server error. requested object method "' . $method[1] . '" does not exist.');
502 } else if(!function_exists($method)) {
503 return new IXR_Error(-32601, 'server error. requested function "' . $method . '" does not exist.');
507 $result = call_user_func($method, $args);
534 * @param string $method
537 function hasMethod($method) {
538 return in_array($method, array_keys($this->callbacks));
589 $method = $call['methodName'];
591 if($method == 'system.multicall') {
594 $result = $this->call($method, $params);
617 var $method;
624 * @param string $method
627 function __construct($method, $args) {
628 $this->method = $method;
633 <methodName>{$this->method}</methodName>
702 * parameters: method and arguments
707 $method = array_shift($args);
708 $request = new IXR_Request($method, $args);
937 'Returns an array describing the return type and required parameters of a method'
955 'Returns a documentation string for the specified method'
960 * @param string $method
965 function addCallback($method, $callback, $args, $help) {
966 $this->callbacks[$method] = $callback;
967 $this->signatures[$method] = $args;
968 $this->help[$method] = $help;
982 // Over-rides default call method, adds signature check
984 return new IXR_Error(-32601, 'server error. requested method "' . $this->message->methodName . '" not specified.');
986 $method = $this->callbacks[$methodname];
993 return new IXR_Error(-32602, 'server error. wrong number of method parameters');
1034 return new IXR_Error(-32602, 'server error. invalid method parameters');
1037 // It passed the test - run the "real" method call
1042 * @param string $method
1045 function methodSignature($method) {
1046 if(!$this->hasMethod($method)) {
1047 return new IXR_Error(-32601, 'server error. requested method "' . $method . '" not specified.');
1050 $types = $this->signatures[$method];
1085 * @param string $method
1088 function methodHelp($method) {
1089 return $this->help[$method];
1131 // Prepare multicall, then call the parent::query() method