Service/StrikeIron/Base.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- StrikeIron
- Version
- $Id$
\Zend_Service_StrikeIron_Base
- Children
- \Zend_Service_StrikeIron_USAddressVerification
- \Zend_Service_StrikeIron_SalesUseTaxBasic
- \Zend_Service_StrikeIron_ZipCodeInfo
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 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)
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.
_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.
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 |
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.
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 |