equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Service |
16 * @package Zend_Service |
17 * @subpackage StrikeIron |
17 * @subpackage StrikeIron |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Base.php 20096 2010-01-06 02:05:09Z bkarwin $ |
20 * @version $Id: Base.php 24593 2012-01-05 20:35:02Z matthew $ |
21 */ |
21 */ |
22 |
22 |
23 |
23 |
24 /** |
24 /** |
25 * @see Zend_Service_StrikeIron_Decorator |
25 * @see Zend_Service_StrikeIron_Decorator |
29 |
29 |
30 /** |
30 /** |
31 * @category Zend |
31 * @category Zend |
32 * @package Zend_Service |
32 * @package Zend_Service |
33 * @subpackage StrikeIron |
33 * @subpackage StrikeIron |
34 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
34 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
35 * @license http://framework.zend.com/license/new-bsd New BSD License |
35 * @license http://framework.zend.com/license/new-bsd New BSD License |
36 */ |
36 */ |
37 class Zend_Service_StrikeIron_Base |
37 class Zend_Service_StrikeIron_Base |
38 { |
38 { |
39 /** |
39 /** |
191 * The $method name and $params passed to the method are provided to |
191 * The $method name and $params passed to the method are provided to |
192 * allow decisions to be made about how to transform the result based |
192 * allow decisions to be made about how to transform the result based |
193 * on what was originally called. |
193 * on what was originally called. |
194 * |
194 * |
195 * @see __call() |
195 * @see __call() |
196 * @param $result Raw result returned from SOAPClient_>__soapCall() |
196 * @param object $result Raw result returned from SOAPClient_>__soapCall() |
197 * @param $method Method name that was passed to SOAPClient->__soapCall() |
197 * @param string $method Method name that was passed to SOAPClient->__soapCall() |
198 * @param $params Method parameters that were passed to SOAPClient->__soapCall() |
198 * @param array $params Method parameters that were passed to SOAPClient->__soapCall() |
199 * @return mixed Transformed result |
199 * @return mixed Transformed result |
200 */ |
200 */ |
201 protected function _transformResult($result, $method, $params) |
201 protected function _transformResult($result, $method, $params) |
202 { |
202 { |
203 $resultObjectName = "{$method}Result"; |
203 $resultObjectName = "{$method}Result"; |
204 if (isset($result->$resultObjectName)) { |
204 if (isset($result->$resultObjectName)) { |