Service/StrikeIron/Base.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- StrikeIron
- Version
- $Id: Base.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Service_StrikeIron_Base
- Children
- \Zend_Service_StrikeIron_USAddressVerification
- \Zend_Service_StrikeIron_SalesUseTaxBasic
- \Zend_Service_StrikeIron_ZipCodeInfo
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


$_options = array('username' => null, 'password' => null, 'client' => null, 'options' => null, 'headers' => null, 'wsdl' => null)
Configuration options
array('username' => null, 'password' => null, 'client' => null, 'options' => null, 'headers' => null, 'wsdl' => null)
Details- Type
- n/a
- $_options
array
Methods


__call(string $method, array $params) : mixed
Proxy method calls to the SOAPClient instance, transforming method calls and responses for convenience.
Name | Type | Description |
---|---|---|
$method | string | Method name |
$params | array | Parameters for method |
Type | Description |
---|---|
mixed | Result |
Exception | Description |
---|---|
\Zend_Service_StrikeIron_Exception |


__construct(array $options = array()) : void
Class constructor
Name | Type | Description |
---|---|---|
$options | array | Key/value pair options |
Exception | Description |
---|---|
\Zend_Service_StrikeIron_Exception |


_initSoapHeaders() : void
Initialize the headers to pass to SOAPClient->__soapCall()
Exception | Description |
---|---|
\Zend_Service_StrikeIron_Exception |


_transformCall(string $method, $params) : array
Transform a method name or method parameters before sending them to the remote service.
This can be useful for inflection or other transforms to give the method call a more PHP-like interface.
Name | Type | Description |
---|---|---|
$method | string | Method name called from PHP |
$params |
Type | Description |
---|---|
array | [$method, $params] for SOAPClient->__soapCall() |
- See
- \global\__call()


_transformResult(object $result, string $method, array $params) : mixed
Transform the result returned from a method before returning it to the PHP caller.
This can be useful for transforming the SOAPClient returned result to be more PHP-like.
The $method name and $params passed to the method are provided to allow decisions to be made about how to transform the result based on what was originally called.
Name | Type | Description |
---|---|---|
$result | object | Raw result returned from SOAPClient_>__soapCall() |
$method | string | Method name that was passed to SOAPClient->__soapCall() |
$params | array | Method parameters that were passed to SOAPClient->__soapCall() |
Type | Description |
---|---|
mixed | Transformed result |
- See
- \global\__call()


getLastOutputHeaders() : array
Get the StrikeIron output headers returned with the last method response.
Type | Description |
---|---|
array |


getSubscriptionInfo(boolean $now = false, string $queryMethod = 'GetRemainingHits') : \Zend_Service_StrikeIron_Decorator
Get the StrikeIron subscription information for this service.
If any service method was recently called, the subscription info should have been returned in the SOAP headers so it is cached and returned from the cache. Otherwise, the getRemainingHits() method is called as a dummy to get the subscription info headers.
Name | Type | Description |
---|---|---|
$now | boolean | Force a call to getRemainingHits instead of cache? |
$queryMethod | string | Method that will cause SubscriptionInfo header to be sent |
Type | Description |
---|---|
\Zend_Service_StrikeIron_Decorator | Decorated subscription info |
Exception | Description |
---|---|
\Zend_Service_StrikeIron_Exception |