VuFind API Documentation

GetIdsCommand extends CallMethodCommand
in package
Uses QueryOffsetLimitTrait

Get identifiers of records command.

Tags
category

VuFind

author

Ere Maijala ere.maijala@helsinki.fi

author

Aleksi Peebles aleksi.peebles@helsinki.fi

license

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

link
https://vufind.org

Table of Contents

$backendId  : string
Search backend identifier
$context  : mixed
Command context
$executed  : bool
Was the command executed?
$extraRequestDetails  : array<string|int, mixed>|null
Optional search details.
$interface  : string
Search backend interface
$limit  : int
Search limit.
$method  : string
Search backend interface method
$offset  : int
Search offset.
$params  : ParamBag
Search backend parameters
$query  : QueryInterface
Search query.
$result  : mixed
Result of executed operation
__construct()  : mixed
GetIdsCommand constructor.
execute()  : CommandInterface
Execute command on backend.
getArguments()  : array<string|int, mixed>
Return search backend interface method arguments.
getContext()  : mixed
Return command context.
getExtraRequestDetails()  : array<string|int, mixed>|null
Get extra request details.
getLimit()  : int
Return search limit.
getOffset()  : int
Return search offset.
getQuery()  : QueryInterface
Return search query.
getResult()  : mixed
Return result of executed operation.
getSearchParameters()  : ParamBag
Return search parameters.
getTargetIdentifier()  : string
Return target backend identifier.
isExecuted()  : bool
Was the command executed?
setContext()  : void
Set command context.
setLimit()  : void
Set search limit.
setOffset()  : void
Set search offset.
setQuery()  : void
Set search query.
setSearchParameters()  : void
Set search parameters.
setTargetIdentifier()  : void
Set target backend identifier.
finalizeExecution()  : CommandInterface
Save a result, flag the command as executed, and return the command object; useful as the final step in execute() implementations.
validateBackend()  : void
Validate that the provided backend matches the expected target identifier.

Properties

$backendId

Search backend identifier

protected string $backendId

$executed

Was the command executed?

protected bool $executed = false

$extraRequestDetails

Optional search details.

protected array<string|int, mixed>|null $extraRequestDetails = null

$result

Result of executed operation

protected mixed $result

Methods

__construct()

GetIdsCommand constructor.

public __construct(string $backendId, QueryInterface $query, int $offset[, int $limit = 20 ][, ParamBag|null $params = null ]) : mixed
Parameters
$backendId : string

Search backend identifier

$query : QueryInterface

Search query

$offset : int

Search offset

$limit : int = 20

Search limit

$params : ParamBag|null = null

Search backend parameters

Return values
mixed

getArguments()

Return search backend interface method arguments.

public getArguments() : array<string|int, mixed>
Return values
array<string|int, mixed>

getContext()

Return command context.

public getContext() : mixed
Return values
mixed

getExtraRequestDetails()

Get extra request details.

public getExtraRequestDetails() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getResult()

Return result of executed operation.

public getResult() : mixed
Tags
throws
LogicException

Command was not yet executed

Return values
mixed

getTargetIdentifier()

Return target backend identifier.

public getTargetIdentifier() : string
Return values
string

isExecuted()

Was the command executed?

public isExecuted() : bool
Return values
bool

setContext()

Set command context.

public setContext(mixed $context) : void
Parameters
$context : mixed

Context

Return values
void

setLimit()

Set search limit.

public setLimit(int $limit) : void
Parameters
$limit : int

Limit

Return values
void

setOffset()

Set search offset.

public setOffset(int $offset) : void
Parameters
$offset : int

Offset

Return values
void

setSearchParameters()

Set search parameters.

public setSearchParameters(ParamBag $params) : void
Parameters
$params : ParamBag

Params

Return values
void

setTargetIdentifier()

Set target backend identifier.

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

New identifier

Return values
void

finalizeExecution()

Save a result, flag the command as executed, and return the command object; useful as the final step in execute() implementations.

protected finalizeExecution(mixed $result) : CommandInterface
Parameters
$result : mixed

Result of execution.

Return values
CommandInterface

Search results