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

Base class for AFS connectors. More...

Inheritance diagram for AfsConnectorBase:
AfsBOWSConnector AfsConnector AfsAboutConnector AfsPafConnector AfsPafLiveConnector AfsAcpConnector AfsSearchConnector

Protected Member Functions

 __construct ($host, AfsService $service=null, $scheme=null, SAI_CurlInterface $curlConnector=null)
 Constructs new base connector.

Detailed Description

Base class for AFS connectors.

This class provided usefull methods to manage connection strings.

Constructor & Destructor Documentation

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

Constructs new base connector.

All parameter values should have been provided by Antidot.

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

Reimplemented in AfsSearchConnector, AfsBOWSConnector, and AfsAboutConnector.