src/Encoder.php 1 location
|
@@ 305-307 (lines=3) @@
|
302 |
|
return $r; |
303 |
|
case 'methodcall': |
304 |
|
$req = new Request($xmlRpcParser->_xh['method']); |
305 |
|
for ($i = 0; $i < count($xmlRpcParser->_xh['params']); $i++) { |
306 |
|
$req->addParam($xmlRpcParser->_xh['params'][$i]); |
307 |
|
} |
308 |
|
|
309 |
|
return $req; |
310 |
|
case 'value': |
src/Server.php 1 location
|
@@ 545-547 (lines=3) @@
|
542 |
|
// build a Request object with data parsed from xml |
543 |
|
$req = new Request($xmlRpcParser->_xh['method']); |
544 |
|
// now add parameters in |
545 |
|
for ($i = 0; $i < count($xmlRpcParser->_xh['params']); $i++) { |
546 |
|
$req->addParam($xmlRpcParser->_xh['params'][$i]); |
547 |
|
} |
548 |
|
|
549 |
|
if ($this->debug > 1) { |
550 |
|
$this->debugmsg("\n+++PARSED+++\n" . var_export($req, true) . "\n+++END+++"); |