<<

NAME

Koha::Patron::Modifications

AddModifications

Koha::Patron::Modifications->AddModifications( $data );

Adds or updates modifications for a patron

Requires either the key borrowernumber, or verification_token to be part of the passed in hash.

Verify

$verified = Koha::Patron::Modifications->Verify( $verification_token );

Returns true if the passed in token is valid.

GetPendingModificationsCount

$count = Koha::Patron::Modifications->GetPendingModificationsCount();

Returns the number of pending modifications for existing patron.

GetPendingModifications

$arrayref = Koha::Patron::Modifications->GetPendingModifications();

Returns an arrayref of hashrefs for all pending modifications for existing patrons.

ApproveModifications

Koha::Patron::Modifications->ApproveModifications( $borrowernumber );

Commits the pending modifications to the borrower record and removes them from the modifications table.

DenyModifications

Koha::Patron::Modifications->DenyModifications( $borrowernumber );

Removes the modifications from the table for the given patron, without committing the changes to the patron record.

DelModifications

Koha::Patron::Modifications->DelModifications({ [ borrowernumber => $borrowernumber ], [ verification_token => $verification_token ] });

Deletes the modifications for the given borrowernumber or verification token.

GetModifications

$hashref = Koha::Patron::Modifications->GetModifications({ [ borrowernumber => $borrowernumber ], [ verification_token => $verification_token ] });

Gets the modifications for the given borrowernumber or verification token.

<<