X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FRequest.php;h=52a3b975db8e512ac3b2dc7e063ad93e9e3c53be;hb=a48c09b3cc49bc7f603cd5b06de74ee2d2878ca4;hp=df899e3b630723f7773d7df6d30496ecf7dcdba3;hpb=85f6c5ecb5094c17aa7a0134006534a8b8387274;p=plcapi.git diff --git a/src/Request.php b/src/Request.php index df899e3..52a3b97 100644 --- a/src/Request.php +++ b/src/Request.php @@ -330,8 +330,8 @@ class Request if ($xmlRpcParser->_xh['isf']) { /// @todo we should test here if server sent an int and a string, and/or coerce them into such... if ($returnType == 'xmlrpcvals') { - $errNo_v = $v->structmem('faultCode'); - $errStr_v = $v->structmem('faultString'); + $errNo_v = $v['faultCode']; + $errStr_v = $v['faultString']; $errNo = $errNo_v->scalarval(); $errStr = $errStr_v->scalarval(); } else { @@ -357,6 +357,16 @@ class Request return $r; } + /** + * Kept the old name even if Request class was renamed, for compatibility. + * + * @return string + */ + public function kindOf() + { + return 'msg'; + } + /** * Enables/disables the echoing to screen of the xmlrpc responses received. *