VuFind API Documentation

EdsBackendFactory extends AbstractBackendFactory
in package
Uses SharedListenersTrait

Factory for EDS backends.

Tags
category

VuFind

author

David Maus maus@hab.de

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Main Site

Table of Contents

$accountData  : array<string|int, mixed>
EDS Account data
$defaultApiUrl  : str
Default URL for the EDS Backend. Set here for the EDS API.
$edsConfig  : Config
EDS configuration
$logger  : LoggerInterface
Logger.
$serviceLocator  : ContainerInterface
Service container.
__construct()  : mixed
Constructor
__invoke()  : Backend
Create service
setup()  : void
Initialize the factory
createBackend()  : Backend
Create the EDS backend.
createConnector()  : Connector
Create the EDS connector.
createConnectorCache()  : StorageInterface|null
Create cache for the connector if enabled in configuration
createConnectorOptions()  : array<string|int, mixed>
Create the options array for the EDS connector.
createHttpClient()  : Client
Create HTTP Client
createListeners()  : void
Create listeners.
createQueryBuilder()  : QueryBuilder
Create the EDS query builder.
createRecordCollectionFactory()  : RecordCollectionFactory
Create the record collection factory
getHideFacetValueListener()  : mixed
Get a hide facet value listener for the backend
getServiceName()  : str
Get the service name. This is used for both configuration and record driver retrieval.

Properties

$accountData

EDS Account data

protected array<string|int, mixed> $accountData

$defaultApiUrl

Default URL for the EDS Backend. Set here for the EDS API.

protected str $defaultApiUrl = 'https://eds-api.ebscohost.com/edsapi/rest'

Methods

__invoke()

Create service

public __invoke(ContainerInterface $sm, string $name[, array<string|int, mixed> $options = null ]) : Backend
Parameters
$sm : ContainerInterface

Service manager

$name : string

Requested service name (unused)

$options : array<string|int, mixed> = null

Extra options (unused)

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
Backend

setup()

Initialize the factory

public setup(ContainerInterface $sm) : void
Parameters
$sm : ContainerInterface

Service manager

Return values
void

createConnectorCache()

Create cache for the connector if enabled in configuration

protected createConnectorCache(Config $searchConfig) : StorageInterface|null
Parameters
$searchConfig : Config

Search configuration

Return values
StorageInterface|null

createConnectorOptions()

Create the options array for the EDS connector.

protected createConnectorOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

createHttpClient()

Create HTTP Client

protected createHttpClient([int $timeout = null ][, array<string|int, mixed> $options = [] ][, string $url = null ]) : Client
Parameters
$timeout : int = null

Request timeout

$options : array<string|int, mixed> = []

Other options

$url : string = null

Request URL (needed for proper local address check when the client is being proxified)

Return values
Client

createListeners()

Create listeners.

protected createListeners(Backend $backend) : void
Parameters
$backend : Backend

Backend

Return values
void

getHideFacetValueListener()

Get a hide facet value listener for the backend

protected getHideFacetValueListener(BackendInterface $backend, Config $facet) : mixed
Parameters
$backend : BackendInterface

Search backend

$facet : Config

Configuration of facets

Return values
mixed

null|HideFacetValueListener

getServiceName()

Get the service name. This is used for both configuration and record driver retrieval.

protected getServiceName() : str
Return values
str

Search results