<<

NAME

C4::Members::Messaging - manage patron messaging preferences

SYNOPSIS

FUNCTIONS

GetMessagingPreferences

my $preferences = C4::Members::Messaging::GetMessagingPreferences( { borrowernumber => $borrower->{'borrowernumber'}, message_name => 'DUE' } );

returns: a hashref of messaging preferences for this borrower for a particlar message_name

SetMessagingPreferences

C4::Members::Messaging::SetMessagingPreference( { borrowernumber => $borrower->{'borrowernumber'} message_attribute_id => $message_attribute_id, message_transport_types => [ qw( email sms ) ], days_in_advance => 5 wants_digest => 1 } )

returns nothing useful.

GetMessagingOptions

my $messaging_options = C4::Members::Messaging::SetMessagingPreference()

returns a hashref of messaing options available.

AUTHOR

Koha Development Team <info@koha.org>

Andrew Moore <andrew.moore@liblime.com>

<<