src/Encoder.php 1 location
|
@@ 294-296 (lines=3) @@
|
291 |
|
return $r; |
292 |
|
case 'methodcall': |
293 |
|
$req = new Request($xmlRpcParser->_xh['method']); |
294 |
|
for ($i = 0; $i < count($xmlRpcParser->_xh['params']); $i++) { |
295 |
|
$req->addParam($xmlRpcParser->_xh['params'][$i]); |
296 |
|
} |
297 |
|
|
298 |
|
return $req; |
299 |
|
case 'value': |
src/Server.php 1 location
|
@@ 536-538 (lines=3) @@
|
533 |
|
// build a Request object with data parsed from xml |
534 |
|
$req = new Request($xmlRpcParser->_xh['method']); |
535 |
|
// now add parameters in |
536 |
|
for ($i = 0; $i < count($xmlRpcParser->_xh['params']); $i++) { |
537 |
|
$req->addParam($xmlRpcParser->_xh['params'][$i]); |
538 |
|
} |
539 |
|
|
540 |
|
if ($this->debug > 1) { |
541 |
|
$this->debugmsg("\n+++PARSED+++\n" . var_export($req, true) . "\n+++END+++"); |