VuFind API Documentation

Backend extends AbstractBackend
in package
implements RetrieveBatchInterface

Summon backend.

Tags
category

VuFind

author

David Maus maus@hab.de

license

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

link
https://vufind.org

Interfaces, Classes, Traits and Enums

RetrieveBatchInterface
Optional backend feature: retrieve batch of records.

Table of Contents

$collectionFactory  : RecordCollectionFactoryInterface
Record collection factory.
$connector  : Laminas
Connector.
$identifier  : string
Backend identifier.
$queryBuilder  : QueryBuilder
Query builder.
__construct()  : void
Constructor.
getConnector()  : Laminas
Return the Summon connector.
getIdentifier()  : string
Return backend identifier.
getQueryBuilder()  : QueryBuilder
Return query builder.
getRecordCollectionFactory()  : RecordCollectionFactoryInterface
Return the record collection factory.
retrieve()  : RecordCollectionInterface
Retrieve a single document.
retrieveBatch()  : RecordCollectionInterface
Retrieve a batch of documents.
search()  : RecordCollectionInterface
Perform a search and return record collection.
setIdentifier()  : void
Set the backend identifier.
setQueryBuilder()  : void
Set the query builder.
setRecordCollectionFactory()  : void
Set the record collection factory.
createRecordCollection()  : RecordCollectionInterface
Create record collection.
debug()  : void
Log a debug message.
injectSourceIdentifier()  : RecordCollectionInterface
Inject source identifier in record collection and all contained records.
log()  : void
Send a message to the logger.
logError()  : void
Log an error message.
logWarning()  : void
Log a warning message.
paramBagToSummonQuery()  : SerialsSolutions_Summon_Query
Convert a ParamBag to a Summon query object.

Properties

$connector

Connector.

protected Laminas $connector

Methods

getConnector()

Return the Summon connector.

public getConnector() : Laminas
Return values
Laminas

getIdentifier()

Return backend identifier.

public getIdentifier() : string
Return values
string

getQueryBuilder()

Return query builder.

public getQueryBuilder() : QueryBuilder

Lazy loads an empty QueryBuilder if none was set.

Return values
QueryBuilder

setIdentifier()

Set the backend identifier.

public setIdentifier(string $identifier) : void
Parameters
$identifier : string

Backend identifier

Return values
void

setQueryBuilder()

Set the query builder.

public setQueryBuilder(QueryBuilder $queryBuilder) : void
Parameters
$queryBuilder : QueryBuilder

Query builder

Return values
void

debug()

Log a debug message.

protected debug(string $msg[, array<string|int, mixed> $context = [] ][, bool $prependClass = true ]) : void
Parameters
$msg : string

Log message

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

Log context

$prependClass : bool = true

Prepend class name to message?

Return values
void

log()

Send a message to the logger.

protected log(string $level, string $message[, array<string|int, mixed> $context = [] ][, bool $prependClass = false ]) : void
Parameters
$level : string

Log level

$message : string

Log message

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

Log context

$prependClass : bool = false

Prepend class name to message?

Return values
void

logError()

Log an error message.

protected logError(string $msg[, array<string|int, mixed> $context = [] ][, bool $prependClass = true ]) : void
Parameters
$msg : string

Log message

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

Log context

$prependClass : bool = true

Prepend class name to message?

Return values
void

logWarning()

Log a warning message.

protected logWarning(string $msg[, array<string|int, mixed> $context = [] ][, bool $prependClass = true ]) : void
Parameters
$msg : string

Log message

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

Log context

$prependClass : bool = true

Prepend class name to message?

Return values
void

paramBagToSummonQuery()

Convert a ParamBag to a Summon query object.

protected paramBagToSummonQuery(ParamBag $params) : SerialsSolutions_Summon_Query
Parameters
$params : ParamBag

ParamBag to convert

Return values
SerialsSolutions_Summon_Query

Search results