VuFind API Documentation

Explanation
in package
implements LoggerAwareInterface Uses LoggerAwareTrait

Abstract explanation model.

This abstract class defines the methods for modeling an explanation in VuFind.

Tags
category

VuFind

author

Dennis Schrittenlocher Dennis.Schrittenlocher@outlook.de

author

Thomas Wagener wagener@hebis.uni-frankfurt.de

license

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

link

Main Page

Interfaces, Classes, Traits and Enums

LoggerAwareInterface

Table of Contents

$config  : Config
Configuration
$lookfor  : string
Search string used for query.
$params  : Params
Search parameters object
$recordId  : string
RecordId of title the explanation is built for.
$searchIni  : string
Configuration file to read search settings from
$searchService  : Service
Search Service
__construct()  : mixed
Constructor
getLookfor()  : string
Get the search string used for query.
getParams()  : Params
Get the search parameters object.
getRecordId()  : string
Get the record id of title the explanation is built for.
performRequest()  : void
Performing request and creating explanation.
debug()  : void
Log a debug message.
log()  : void
Send a message to the logger.
logError()  : void
Log an error message.
logWarning()  : void
Log a warning message.

Properties

$lookfor

Search string used for query.

protected string $lookfor

$recordId

RecordId of title the explanation is built for.

protected string $recordId

$searchIni

Configuration file to read search settings from

protected string $searchIni = 'searches'

Methods

getLookfor()

Get the search string used for query.

public getLookfor() : string
Return values
string

getRecordId()

Get the record id of title the explanation is built for.

public getRecordId() : string
Return values
string

performRequest()

Performing request and creating explanation.

public abstract performRequest(string $recordId) : void
Parameters
$recordId : string

Record Id

Tags
throws
BackendException
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

Search results