@@ -348,7 +348,8 @@ |
||
| 348 | 348 | /** |
| 349 | 349 | * Parse http headers received along with xmlrpc request. If needed, inflate request. |
| 350 | 350 | * |
| 351 | - * @return mixed Response|null on success or an error Response |
|
| 351 | + * @param string $data |
|
| 352 | + * @return Response|null Response|null on success or an error Response |
|
| 352 | 353 | */ |
| 353 | 354 | protected function parseRequestHeaders(&$data, &$reqEncoding, &$respEncoding, &$respCompression) |
| 354 | 355 | { |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | * @todo validate params? In theory all validation is left to the dispatch map... |
| 393 | 393 | * @todo add support for $catchWarnings |
| 394 | 394 | * |
| 395 | - * @param $callable |
|
| 395 | + * @param callable $callable |
|
| 396 | 396 | * @param array $extraOptions |
| 397 | 397 | * @param string $plainFuncName |
| 398 | 398 | * @param string $funcDesc |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | |
| 455 | 455 | /** |
| 456 | 456 | * Return a name for a new function, based on $callable, insuring its uniqueness |
| 457 | - * @param mixed $callable a php callable, or the name of an xmlrpc method |
|
| 457 | + * @param callable $callable a php callable, or the name of an xmlrpc method |
|
| 458 | 458 | * @param string $newFuncName when not empty, it is used instead of the calculated version |
| 459 | 459 | * @return string |
| 460 | 460 | */ |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | } |
| 493 | 493 | |
| 494 | 494 | /** |
| 495 | - * @param $callable |
|
| 495 | + * @param callable $callable |
|
| 496 | 496 | * @param string $newFuncName |
| 497 | 497 | * @param array $extraOptions |
| 498 | 498 | * @param string $plainFuncName |
@@ -33,6 +33,9 @@ |
||
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $methodName |
|
| 38 | + */ |
|
| 36 | 39 | protected function newMsg($methodName, $params = array()) |
| 37 | 40 | { |
| 38 | 41 | $msg = new xmlrpcmsg($methodName, $params); |
@@ -201,7 +201,6 @@ |
||
| 201 | 201 | * This option can be very useful when debugging servers as it allows you to see exactly what the client sends and |
| 202 | 202 | * the server returns. |
| 203 | 203 | * |
| 204 | - * @param integer $in values 0, 1 and 2 are supported (2 = echo sent msg too, before received response) |
|
| 205 | 204 | */ |
| 206 | 205 | public function setDebug($level) |
| 207 | 206 | { |
@@ -141,9 +141,9 @@ |
||
| 141 | 141 | * @deprecated |
| 142 | 142 | */ |
| 143 | 143 | function build_remote_method_wrapper_code($client, $methodName, $xmlrpcFuncName, |
| 144 | - $mSig, $mDesc = '', $timeout = 0, $protocol = '', $clientCopyMode = 0, $prefix = 'xmlrpc', |
|
| 145 | - $decodePhpObjects = false, $encodePhpObjects = false, $decodeFault = false, |
|
| 146 | - $faultResponse = '', $namespace = '\\PhpXmlRpc\\') |
|
| 144 | + $mSig, $mDesc = '', $timeout = 0, $protocol = '', $clientCopyMode = 0, $prefix = 'xmlrpc', |
|
| 145 | + $decodePhpObjects = false, $encodePhpObjects = false, $decodeFault = false, |
|
| 146 | + $faultResponse = '', $namespace = '\\PhpXmlRpc\\') |
|
| 147 | 147 | { |
| 148 | 148 | $code = "function $xmlrpcFuncName ("; |
| 149 | 149 | if ($clientCopyMode < 2) { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * @see PhpXmlRpc\Wrapper::wrapXmlrpcMethod |
| 88 | 88 | * @param xmlrpc_client $client |
| 89 | 89 | * @param string $methodName |
| 90 | - * @param int|array $extraOptions the usage of an int as signature number is deprecated, use an option in $extraOptions |
|
| 90 | + * @param integer $extraOptions the usage of an int as signature number is deprecated, use an option in $extraOptions |
|
| 91 | 91 | * @param int $timeout deprecated, use an option in $extraOptions |
| 92 | 92 | * @param string $protocol deprecated, use an option in $extraOptions |
| 93 | 93 | * @param string $newFuncName deprecated, use an option in $extraOptions |
@@ -217,6 +217,7 @@ discard block |
||
| 217 | 217 | |
| 218 | 218 | /** |
| 219 | 219 | * @deprecated |
| 220 | + * @param integer $verbatim_client_copy |
|
| 220 | 221 | */ |
| 221 | 222 | function build_client_wrapper_code($client, $verbatim_client_copy, $prefix='xmlrpc') |
| 222 | 223 | { |
@@ -168,6 +168,9 @@ discard block |
||
| 168 | 168 | return PhpXmlRpc\Helper\Charset::instance()->encodeEntitites($data, $srcEncoding, $destEncoding); |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | +/** |
|
| 172 | + * @param integer $timeT |
|
| 173 | + */ |
|
| 171 | 174 | function iso8601_encode($timeT, $utc=0) |
| 172 | 175 | { |
| 173 | 176 | return PhpXmlRpc\Helper\Date::iso8601Encode($timeT, $utc); |
@@ -195,6 +198,9 @@ discard block |
||
| 195 | 198 | return $encoder->encode($phpVal, $options); |
| 196 | 199 | } |
| 197 | 200 | |
| 201 | +/** |
|
| 202 | + * @param string $xmlVal |
|
| 203 | + */ |
|
| 198 | 204 | function php_xmlrpc_decode_xml($xmlVal, $options=array()) |
| 199 | 205 | { |
| 200 | 206 | $encoder = new PhpXmlRpc\Encoder(); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * When no value or type is passed in, the value is left uninitialized, and the value can be added later. |
| 48 | 48 | * |
| 49 | - * @param mixed $val if passing in an array, all array elements should be PhpXmlRpc\Value themselves |
|
| 49 | + * @param integer $val if passing in an array, all array elements should be PhpXmlRpc\Value themselves |
|
| 50 | 50 | * @param string $type any valid xmlrpc type name (lowercase): i4, int, boolean, string, double, dateTime.iso8601, |
| 51 | 51 | * base64, array, struct, null. |
| 52 | 52 | * If null, 'string' is assumed. |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * If the xmlrpc value is empty (uninitialized), this method makes it a scalar value, and sets that value. |
| 96 | 96 | * Fails if the xmlrpc value is not an array and already initialized. |
| 97 | 97 | * |
| 98 | - * @param mixed $val |
|
| 98 | + * @param string $val |
|
| 99 | 99 | * @param string $type allowed values: i4, i8, int, boolean, string, double, dateTime.iso8601, base64, null. |
| 100 | 100 | * |
| 101 | 101 | * @return int 1 or 0 on failure |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * @param PhpXmlRpc\Request|array $msg |
| 117 | - * @param int|array $errorCode |
|
| 117 | + * @param integer $errorCode |
|
| 118 | 118 | * @param bool $returnResponse |
| 119 | 119 | * @return mixed|\PhpXmlRpc\Response|\PhpXmlRpc\Response[]|\PhpXmlRpc\Value|string|null |
| 120 | 120 | */ |
@@ -431,6 +431,10 @@ discard block |
||
| 431 | 431 | } |
| 432 | 432 | } |
| 433 | 433 | |
| 434 | + /** |
|
| 435 | + * @param string $method |
|
| 436 | + * @param PhpXmlRpc\Value[] $params |
|
| 437 | + */ |
|
| 434 | 438 | public function _multicall_msg($method, $params) |
| 435 | 439 | { |
| 436 | 440 | $struct['methodName'] = new xmlrpcval($method, 'string'); |