Renewals
extends AbstractPlugin
in package
Action helper to perform renewal-related actions
Tags
Table of Contents
- addRenewDetails() : array<string|int, mixed>
- Update ILS details with renewal-specific information, if appropriate.
- processRenewals() : array<string|int, mixed>
- Process renewal requests.
Methods
addRenewDetails()
Update ILS details with renewal-specific information, if appropriate.
public
addRenewDetails(Connection $catalog, array<string|int, mixed> $ilsDetails, array<string|int, mixed> $renewStatus) : array<string|int, mixed>
Parameters
- $catalog : Connection
-
ILS connection object
- $ilsDetails : array<string|int, mixed>
-
Transaction details from ILS driver's getMyTransactions() method
- $renewStatus : array<string|int, mixed>
-
Renewal settings from ILS driver's checkFunction() method
Return values
array<string|int, mixed> —$ilsDetails with renewal info added
processRenewals()
Process renewal requests.
public
processRenewals(Parameters $request, Connection $catalog, array<string|int, mixed> $patron[, CsrfInterface $csrfValidator = null ]) : array<string|int, mixed>
Parameters
- $request : Parameters
-
Request object
- $catalog : Connection
-
ILS connection object
- $patron : array<string|int, mixed>
-
Current logged in patron
- $csrfValidator : CsrfInterface = null
-
CSRF validator
Return values
array<string|int, mixed> —The result of the renewal, an associative array keyed by item ID (empty if no renewals performed)