C4::Borrowers::Modifications
Koha::Borrower::Modifications->AddModifications( $data );
Adds or updates modifications for a borrower.
Requires either the key borrowernumber, or verification_token to be part of the passed in hash.
$verified = Koha::Borrower::Modifications->Verify( $verification_token );
Returns true if the passed in token is valid.
$count = Koha::Borrower::Modifications->GetPendingModificationsCount();
Returns the number of pending modifications for existing borrowers.
$arrayref = Koha::Borrower::Modifications->GetPendingModifications();
Returns an arrayref of hashrefs for all pending modifications for existing borrowers.
Koha::Borrower::Modifications->ApproveModifications( $borrowernumber );
Commits the pending modifications to the borrower record and removes them from the modifications table.
Koha::Borrower::Modifications->DenyModifications( $borrowernumber );
Removes the modifications from the table for the given borrower, without commiting the changes to the borrower record.
Koha::Borrower::Modifications->DelModifications({ [ borrowernumber => $borrowernumber ], [ verification_token => $verification_token ] });
Deletes the modifications for the given borrowernumber or verification token.
$hashref = Koha::Borrower::Modifications->GetModifications({ [ borrowernumber => $borrowernumber ], [ verification_token => $verification_token ] });
Gets the modifications for the given borrowernumber or verification token.