You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 28, 2020. It is now read-only.
@@ -112,7 +97,7 @@ class Server extends AbstractServer
112
97
'i4' => 'i4',
113
98
'int' => 'int',
114
99
'integer' => 'int',
115
-
'Zend_Crypt_Math_BigInteger' => 'i8',
100
+
'Zend\Crypt\Math\BigInteger' => 'i8',
116
101
'i8' => 'i8',
117
102
'ex:i8' => 'i8',
118
103
'double' => 'double',
@@ -145,7 +130,7 @@ class Server extends AbstractServer
145
130
*
146
131
* @var bool
147
132
*/
148
-
protected$_sendArgumentsToAllMethods = true;
133
+
protected$sendArgumentsToAllMethods = true;
149
134
150
135
/**
151
136
* Flag: whether or not {@link handle()} should return a response instead
@@ -156,7 +141,7 @@ class Server extends AbstractServer
156
141
157
142
/**
158
143
* Last response results.
159
-
* @var \Zend\XmlRpc\Response
144
+
* @var Response
160
145
*/
161
146
protected$response;
162
147
@@ -169,8 +154,8 @@ class Server extends AbstractServer
169
154
*/
170
155
publicfunction__construct()
171
156
{
172
-
$this->_table = newDefinition();
173
-
$this->_registerSystemMethods();
157
+
$this->table = newDefinition();
158
+
$this->registerSystemMethods();
174
159
}
175
160
176
161
/**
@@ -291,7 +276,7 @@ public function fault($fault = null, $code = 404)
291
276
* The response is always available via {@link getResponse()}.
292
277
*
293
278
* @param boolean $flag
294
-
* @return \Zend\XmlRpc\Server
279
+
* @return Server
295
280
*/
296
281
publicfunctionsetReturnResponse($flag = true)
297
282
{
@@ -312,8 +297,8 @@ public function getReturnResponse()
312
297
/**
313
298
* Handle an xmlrpc call
314
299
*
315
-
* @param Zend\XmlRpc\Request $request Optional
316
-
* @return Zend\XmlRpc\Response|Zend\XmlRpc\Fault
300
+
* @param Request $request Optional
301
+
* @return Response|Fault
317
302
*/
318
303
publicfunctionhandle($request = false)
319
304
{
@@ -331,7 +316,7 @@ public function handle($request = false)
331
316
$response = $request->getFault();
332
317
} else {
333
318
try {
334
-
$response = $this->_handle($request);
319
+
$response = $this->handleRequest($request);
335
320
} catch (\Exception$e) {
336
321
$response = $this->fault($e);
337
322
}
@@ -353,11 +338,11 @@ public function handle($request = false)
353
338
* Load methods as returned from {@link getFunctions}
354
339
*
355
340
* Typically, you will not use this method; it will be called using the
356
-
* results pulled from {@link Zend_XmlRpc_Server_Cache::get()}.
341
+
* results pulled from {@link Zend\XmlRpc\Server\Cache::get()}.
357
342
*
358
-
* @param array|Zend\Server\Definition $definition
343
+
* @param array|Definition $definition
359
344
* @return void
360
-
* @throws Zend\XmlRpc\Server\Exception on invalid input
345
+
* @throws Server\Exception on invalid input
361
346
*/
362
347
publicfunctionloadFunctions($definition)
363
348
{
@@ -370,8 +355,8 @@ public function loadFunctions($definition)
370
355
thrownewServer\Exception\InvalidArgumentException('Unable to load server definition; must be an array or Zend_Server_Definition, received ' . $type, 612);
371
356
}
372
357
373
-
$this->_table->clearMethods();
374
-
$this->_registerSystemMethods();
358
+
$this->table->clearMethods();
359
+
$this->registerSystemMethods();
375
360
376
361
if ($definitioninstanceof Definition) {
377
362
$definition = $definition->getMethods();
@@ -381,19 +366,19 @@ public function loadFunctions($definition)
381
366
if ('system.' == substr($key, 0, 7)) {
382
367
continue;
383
368
}
384
-
$this->_table->addMethod($method, $key);
369
+
$this->table->addMethod($method, $key);
385
370
}
386
371
}
387
372
388
373
/**
389
374
* Set encoding
390
375
*
391
-
* @param string $encoding
392
-
* @return Zend\XmlRpc\Server
376
+
* @param string $encoding
377
+
* @return Server
393
378
*/
394
379
publicfunctionsetEncoding($encoding)
395
380
{
396
-
$this->_encoding = $encoding;
381
+
$this->encoding = $encoding;
397
382
Value::setEncoding($encoding);
398
383
return$this;
399
384
}
@@ -405,7 +390,7 @@ public function setEncoding($encoding)
405
390
*/
406
391
publicfunctiongetEncoding()
407
392
{
408
-
return$this->_encoding;
393
+
return$this->encoding;
409
394
}
410
395
411
396
/**
@@ -421,9 +406,9 @@ public function setPersistence($mode)
421
406
/**
422
407
* Set the request object
423
408
*
424
-
* @param string|Zend\XmlRpc\Request $request
425
-
* @return Zend\XmlRpc\Server
426
-
* @throws Zend\XmlRpc\Server\Exception on invalid request class or object
409
+
* @param string|Request $request
410
+
* @return Server
411
+
* @throws Server\Exception on invalid request class or object
427
412
*/
428
413
publicfunctionsetRequest($request)
429
414
{
@@ -437,24 +422,24 @@ public function setRequest($request)
0 commit comments