mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
Now works with service.* methods
This commit is contained in:
parent
37213f0c30
commit
92558b4412
@ -277,9 +277,20 @@
|
|||||||
$method = $methName;
|
$method = $methName;
|
||||||
$tmp = explode('.',$methName);
|
$tmp = explode('.',$methName);
|
||||||
$methName = $tmp[2];
|
$methName = $tmp[2];
|
||||||
$listmeth = $tmp[0] . '.' . $tmp[1] . '.' . 'list_methods';
|
$service = $tmp[1];
|
||||||
$dmap = ExecMethod($listmeth,'xmlrpc');
|
$class = $tmp[0];
|
||||||
|
if(ereg('^service',$method))
|
||||||
|
{
|
||||||
|
$t = 'phpgwapi.' . $class . '.exec';
|
||||||
|
$dmap = ExecMethod($t,array($service,'list_methods','xmlrpc'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$listmeth = $tmp[0] . '.' . $service . '.' . 'list_methods';
|
||||||
|
$dmap = ExecMethod($listmeth,'xmlrpc');
|
||||||
|
}
|
||||||
$this->dmap = $dmap;
|
$this->dmap = $dmap;
|
||||||
|
/* _debug_array($this->dmap);exit; */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($dmap[$methName]['function']))
|
if (isset($dmap[$methName]['function']))
|
||||||
@ -317,8 +328,14 @@
|
|||||||
// _debug_array($params);
|
// _debug_array($params);
|
||||||
$this->reqtoarray($params);
|
$this->reqtoarray($params);
|
||||||
//_debug_array($this->req_array);
|
//_debug_array($this->req_array);
|
||||||
|
if(ereg('^service',$method))
|
||||||
$res = ExecMethod($method,$this->req_array);
|
{
|
||||||
|
$res = ExecMethod('phpgwapi.service.exec',array($service,$methName,$this->req_array));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$res = ExecMethod($method,$this->req_array);
|
||||||
|
}
|
||||||
/* $res = ExecMethod($method,$params); */
|
/* $res = ExecMethod($method,$params); */
|
||||||
/* _debug_array($res);exit; */
|
/* _debug_array($res);exit; */
|
||||||
$this->resp_struct = array();
|
$this->resp_struct = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user