[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Service/StrikeIron/ -> Base.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 274 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Service_StrikeIron_Base:: (10 methods):
  __construct()
  __call()
  _initSoapClient()
  _initSoapHeaders()
  _transformCall()
  _transformResult()
  getWsdl()
  getSoapClient()
  getLastOutputHeaders()
  getSubscriptionInfo()


Class: Zend_Service_StrikeIron_Base  - X-Ref


__construct($options = array()   X-Ref
Class constructor

param: array  $options  Key/value pair options

__call($method, $params)   X-Ref
Proxy method calls to the SOAPClient instance, transforming method
calls and responses for convenience.

param: string  $method  Method name
param: array   $params  Parameters for method
return: mixed            Result

_initSoapClient()   X-Ref
Initialize the SOAPClient instance

return: void

_initSoapHeaders()   X-Ref
Initialize the headers to pass to SOAPClient->__soapCall()

return: void

_transformCall($method, $params)   X-Ref
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.

param: string  $method  Method name called from PHP
param: mixed   $param   Parameters passed from PHP
return: array            [$method, $params] for SOAPClient->__soapCall()

_transformResult($result, $method, $params)   X-Ref
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.

param: $result  Raw result returned from SOAPClient_>__soapCall()
param: $method  Method name that was passed to SOAPClient->__soapCall()
param: $params  Method parameters that were passed to SOAPClient->__soapCall()
return: mixed    Transformed result

getWsdl()   X-Ref
Get the WSDL URL for this service.

return: string

getSoapClient()   X-Ref
Get the SOAP Client instance for this service.


getLastOutputHeaders()   X-Ref
Get the StrikeIron output headers returned with the last method response.

return: array

getSubscriptionInfo($now = false, $queryMethod = 'GetRemainingHits')   X-Ref
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.

param: boolean  $now          Force a call to getRemainingHits instead of cache?
param: string   $queryMethod  Method that will cause SubscriptionInfo header to be sent
return: Zend_Service_StrikeIron_Decorator  Decorated subscription info



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1