Koha::Patron::MessagePreferences - Koha Patron Message Preferences object class
Koha::Patron::MessagePreferences->find_with_message_name({ borrowernumber => 123, message_name => 'Hold_Filled', });
Converts message_name
into message_attribute_id
and continues find.
my $messaging_options = Koha::Patron::MessagePreferences->get_options
Returns an ARRAYref of HASHrefs on available messaging options.
Koha::Patron::MessagePreferences->search_with_message_name({ borrowernumber => 123, message_name => 'Hold_Filled', });
Converts message_name
into message_attribute_id
and continues search.
Use Koha::Patron::MessagePreferences->search with a proper join for more complicated searches.
Lari Taskula <lari.taskula@hypernova.fi>