VuFind API Documentation

ChannelProviderInterface

Channel provider interface.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link

Wiki

Table of Contents

configureSearchParams()  : void
Hook to configure search parameters before executing search.
getFromRecord()  : array<string|int, mixed>
Return channel information derived from a record driver object.
getFromSearch()  : array<string|int, mixed>
Return channel information derived from a search results object.
setOptions()  : void
Set the options for the provider.
setProviderId()  : void
Set an identifier that will be injected as the 'providerId' key of all channels created by this provider.

Methods

configureSearchParams()

Hook to configure search parameters before executing search.

public configureSearchParams(Params $params) : void
Parameters
$params : Params

Search parameters to adjust

Return values
void

getFromRecord()

Return channel information derived from a record driver object.

public getFromRecord(AbstractBase $driver[, string $channelToken = null ]) : array<string|int, mixed>
Parameters
$driver : AbstractBase

Record driver

$channelToken : string = null

Token identifying a single specific channel to load (if omitted, all channels will be loaded)

Return values
array<string|int, mixed>

getFromSearch()

Return channel information derived from a search results object.

public getFromSearch(Results $results[, string $channelToken = null ]) : array<string|int, mixed>
Parameters
$results : Results

Search results

$channelToken : string = null

Token identifying a single specific channel to load (if omitted, all channels will be loaded)

Return values
array<string|int, mixed>

setOptions()

Set the options for the provider.

public setOptions(array<string|int, mixed> $options) : void
Parameters
$options : array<string|int, mixed>

Options

Return values
void

setProviderId()

Set an identifier that will be injected as the 'providerId' key of all channels created by this provider.

public setProviderId(string $id) : void
Parameters
$id : string

Provider ID

Return values
void

Search results