<<

NAME

Koha::Patron::AccountLink - Represents a link between patron accounts

DESCRIPTION

Patrons in Koha may have multiple accounts at different libraries within a consortium. This class models those links and provides access to linked accounts.

API

Class methods

patron

Returns the Koha::Patron object for this link

linked_patrons

Returns Koha::Patrons of all OTHER patrons in this link group (excluding self)

all_linked_borrowernumbers

Returns arrayref of all borrowernumbers in link group (including self)

delete

Override delete to clean up orphaned links.

When a patron leaves a linked group, if only one patron remains, that patron's link is also deleted (they would be an orphan).

to_api_mapping

Internal methods

_type

<<