Antidot PHP API  version 0.16.0
##PHP API to simplify integration of Antidot components
 All Classes Files Functions Variables Groups Pages
Public Member Functions | List of all members
AfsBOWSConnector Class Reference

AFS Back Office Web Service connector. More...

Inheritance diagram for AfsBOWSConnector:
AfsConnectorBase AfsAboutConnector AfsPafConnector AfsPafLiveConnector

Public Member Functions

 __construct ($host, AfsService $service=null, $scheme=AFS_SCHEME_HTTP, SAI_CurlInterface $curlConnector=null)
 Constructs new Back Office Web Service connector.
 get_http_headers ($context=null)
 Default implementation: do nothing.
 set_post_content (&$request, $context)
 Default implementation: do nothing.

Detailed Description

AFS Back Office Web Service connector.

Constructor & Destructor Documentation

__construct (   $host,
AfsService  $service = null,
  $scheme = AFS_SCHEME_HTTP,
SAI_CurlInterface  $curlConnector = null 
)

Constructs new Back Office Web Service connector.

Parameters
$host[in] server hosting the Antidot Back Office.
$service[in] Antidot service (see AfsService).
$scheme[in] Scheme for the connection URL see Connection scheme (default: AFS_SCHEME_HTTP).
$curlConnector[in] Connector to curl, useful for mocking curl calls
Exceptions
InvalidArgumentExceptioninvalid scheme parameter provided.

Reimplemented from AfsConnectorBase.

Reimplemented in AfsAboutConnector.

Member Function Documentation

get_http_headers (   $context = null)

Default implementation: do nothing.

Parameters
$context[in] Query context (unused).
Returns
Always return null.

Reimplemented in AfsPafConnector, and AfsPafLiveConnector.

set_post_content ( $request,
  $context 
)

Default implementation: do nothing.

Parameters
$request[in] CURL request (not used).
$context[in] Query context (unused).

Reimplemented in AfsPafConnector, and AfsPafLiveConnector.