WorldCatBackendFactory
extends AbstractBackendFactory
in package
Factory for WorldCat backends.
Tags
Table of Contents
- $config : Config
- VuFind configuration
- $logger : LoggerInterface
- Logger.
- $serviceLocator : ContainerInterface
- Service manager
- $wcConfig : Config
- WorldCat configuration
- __construct() : mixed
- Constructor
- __invoke() : Backend
- Create service
- getService() : T
- Retrieve a service
- setup() : void
- Initialize the factory
- createBackend() : Backend
- Create the WorldCat backend.
- createConnector() : Connector
- Create the WorldCat connector.
- createConnectorCache() : StorageInterface|null
- Create cache for the connector if enabled in configuration
- createHttpClient() : Client
- Create HTTP Client
- createQueryBuilder() : QueryBuilder
- Create the WorldCat query builder.
- createRecordCollectionFactory() : RecordCollectionFactory
- Create the record collection factory
Properties
$config
VuFind configuration
protected
Config
$config
$logger
Logger.
protected
LoggerInterface
$logger
$serviceLocator
Service manager
protected
ContainerInterface
$serviceLocator
$wcConfig
WorldCat configuration
protected
Config
$wcConfig
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —__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
Return values
Backend —getService()
Retrieve a service
public
getService(class-string<\VuFind\Service\T> $name) : T
Parameters
- $name : class-string<\VuFind\Service\T>
-
Name of service to retrieve
Tags
Return values
T —setup()
Initialize the factory
public
setup(ContainerInterface $sm) : void
Parameters
- $sm : ContainerInterface
-
Service manager
Return values
void —createBackend()
Create the WorldCat backend.
protected
createBackend(Connector $connector) : Backend
Parameters
- $connector : Connector
-
Connector
Return values
Backend —createConnector()
Create the WorldCat connector.
protected
createConnector() : Connector
Return values
Connector —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 —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 —createQueryBuilder()
Create the WorldCat query builder.
protected
createQueryBuilder() : QueryBuilder
Return values
QueryBuilder —createRecordCollectionFactory()
Create the record collection factory
protected
createRecordCollectionFactory() : RecordCollectionFactory