// {{{ call(method, [args...])
function call($method)
+ {
+ $args = func_get_args();
+ array_shift($args);
+ return $this->__call($method, $args);
+ }
+
+ // }}}
+
+ // {{{ __call(method, args)
+
+ function __call($method, $params)
{
if (!extension_loaded("xmlrpc")) {
return $this->raiseError("xmlrpc support not loaded");
}
- $params = array_slice(func_get_args(), 1);
+ $method = str_replace("_", ".", $method);
$request = xmlrpc_encode_request($method, $params);
$server_host = $this->config_object->get("master_server");
if (empty($server_host)) {
// }}}
}
+overload("PEAR_Remote");
+
?>
\ No newline at end of file