import v1.1.0_RC2 | 2009-09-20
This commit is contained in:
@ -15,9 +15,9 @@
|
||||
* @category Zend
|
||||
* @package Zend_XmlRpc
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Cache.php 12195 2008-10-30 13:34:35Z matthew $
|
||||
* @version $Id: Cache.php 16208 2009-06-21 19:19:26Z thomas $
|
||||
*/
|
||||
|
||||
/** Zend_Server_Cache */
|
||||
@ -29,7 +29,7 @@ require_once 'Zend/Server/Cache.php';
|
||||
* @category Zend
|
||||
* @package Zend_XmlRpc
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_XmlRpc_Server_Cache extends Zend_Server_Cache
|
||||
|
@ -15,9 +15,9 @@
|
||||
* @category Zend
|
||||
* @package Zend_XmlRpc
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Exception.php 9102 2008-03-30 20:27:03Z thomas $
|
||||
* @version $Id: Exception.php 16208 2009-06-21 19:19:26Z thomas $
|
||||
*/
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ require_once 'Zend/XmlRpc/Exception.php';
|
||||
* @category Zend
|
||||
* @package Zend_XmlRpc
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_XmlRpc_Server_Exception extends Zend_XmlRpc_Exception
|
||||
|
@ -15,9 +15,9 @@
|
||||
* @category Zend
|
||||
* @package Zend_XmlRpc
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Fault.php 9102 2008-03-30 20:27:03Z thomas $
|
||||
* @version $Id: Fault.php 16208 2009-06-21 19:19:26Z thomas $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -44,7 +44,7 @@ require_once 'Zend/XmlRpc/Fault.php';
|
||||
* @category Zend
|
||||
* @package Zend_XmlRpc
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_XmlRpc_Server_Fault extends Zend_XmlRpc_Fault
|
||||
|
@ -15,9 +15,9 @@
|
||||
* @category Zend
|
||||
* @package Zend_XmlRpc
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id$
|
||||
* @version $Id: System.php 17803 2009-08-24 21:22:58Z matthew $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -26,7 +26,7 @@
|
||||
* @category Zend
|
||||
* @package Zend_XmlRpc
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_XmlRpc_Server_System
|
||||
@ -70,7 +70,8 @@ class Zend_XmlRpc_Server_System
|
||||
{
|
||||
$table = $this->_server->getDispatchTable();
|
||||
if (!$table->hasMethod($method)) {
|
||||
throw new Zend_Server_Exception('Method "' . $method . '"does not exist', 640);
|
||||
require_once 'Zend/XmlRpc/Server/Exception.php';
|
||||
throw new Zend_XmlRpc_Server_Exception('Method "' . $method . '" does not exist', 640);
|
||||
}
|
||||
|
||||
return $table->getMethod($method)->getMethodHelp();
|
||||
@ -86,7 +87,8 @@ class Zend_XmlRpc_Server_System
|
||||
{
|
||||
$table = $this->_server->getDispatchTable();
|
||||
if (!$table->hasMethod($method)) {
|
||||
throw new Zend_Server_Exception('Method "' . $method . '"does not exist', 640);
|
||||
require_once 'Zend/XmlRpc/Server/Exception.php';
|
||||
throw new Zend_XmlRpc_Server_Exception('Method "' . $method . '" does not exist', 640);
|
||||
}
|
||||
$method = $table->getMethod($method)->toArray();
|
||||
return $method['prototypes'];
|
||||
@ -135,7 +137,13 @@ class Zend_XmlRpc_Server_System
|
||||
$request->setMethod($method['methodName']);
|
||||
$request->setParams($method['params']);
|
||||
$response = $this->_server->handle($request);
|
||||
$responses[] = $response->getReturnValue();
|
||||
if ($response instanceof Zend_XmlRpc_Fault
|
||||
|| $response->isFault()
|
||||
) {
|
||||
$fault = $response;
|
||||
} else {
|
||||
$responses[] = $response->getReturnValue();
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$fault = $this->_server->fault($e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user