| Lines 1-97
          
      
      
        Link Here | 
            
              | 1 | package C4::Members::Messaging; |  |  | 
            
              | 2 |  | 
            
              | 3 | # Copyright (C) 2008 LibLime | 
            
              | 4 | # | 
            
              | 5 | # This file is part of Koha. | 
            
              | 6 | # | 
            
              | 7 | # Koha is free software; you can redistribute it and/or modify it | 
            
              | 8 | # under the terms of the GNU General Public License as published by | 
            
              | 9 | # the Free Software Foundation; either version 3 of the License, or | 
            
              | 10 | # (at your option) any later version. | 
            
              | 11 | # | 
            
              | 12 | # Koha is distributed in the hope that it will be useful, but | 
            
              | 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
            
              | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 
            
              | 15 | # GNU General Public License for more details. | 
            
              | 16 | # | 
            
              | 17 | # You should have received a copy of the GNU General Public License | 
            
              | 18 | # along with Koha; if not, see <http://www.gnu.org/licenses>. | 
            
              | 19 |  | 
            
              | 20 | use strict; | 
            
              | 21 | use warnings; | 
            
              | 22 | use C4::Context; | 
            
              | 23 |  | 
            
              | 24 | =head1 NAME | 
            
              | 25 |  | 
            
              | 26 | C4::Members::Messaging - manage patron messaging preferences | 
            
              | 27 |  | 
            
              | 28 | =head1 SYNOPSIS | 
            
              | 29 |  | 
            
              | 30 |   use C4::Members::Messaging | 
            
              | 31 |  | 
            
              | 32 | =head1 DESCRIPTION | 
            
              | 33 |  | 
            
              | 34 | This module lets you modify a patron's messaging preferences. | 
            
              | 35 |  | 
            
              | 36 | =head1 FUNCTIONS | 
            
              | 37 |  | 
            
              | 38 | =head1 TABLES | 
            
              | 39 |  | 
            
              | 40 | =head2 message_queue | 
            
              | 41 |  | 
            
              | 42 | The actual messages which will be sent via a cron job running | 
            
              | 43 | F<misc/cronjobs/process_message_queue.pl>. | 
            
              | 44 |  | 
            
              | 45 | =head2 message_attributes | 
            
              | 46 |  | 
            
              | 47 | What kinds of messages can be sent? | 
            
              | 48 |  | 
            
              | 49 | =head2 message_transport_types | 
            
              | 50 |  | 
            
              | 51 | What transports can messages be sent vith?  (email, sms, etc.) | 
            
              | 52 |  | 
            
              | 53 | =head2 message_transports | 
            
              | 54 |  | 
            
              | 55 | How are message_attributes and message_transport_types correlated? | 
            
              | 56 |  | 
            
              | 57 | =head2 borrower_message_preferences | 
            
              | 58 |  | 
            
              | 59 | What messages do the borrowers want to receive? | 
            
              | 60 |  | 
            
              | 61 | =head2 borrower_message_transport_preferences | 
            
              | 62 |  | 
            
              | 63 | What transport should a message be sent with? | 
            
              | 64 |  | 
            
              | 65 | =head1 CONFIG | 
            
              | 66 |  | 
            
              | 67 | =head2 Adding a New Kind of Message to the System | 
            
              | 68 |  | 
            
              | 69 | =over 4 | 
            
              | 70 |  | 
            
              | 71 | =item 1. | 
            
              | 72 |  | 
            
              | 73 | Add a new template to the `letter` table. | 
            
              | 74 |  | 
            
              | 75 | =item 2. | 
            
              | 76 |  | 
            
              | 77 | Insert a row into the `message_attributes` table. | 
            
              | 78 |  | 
            
              | 79 | =item 3. | 
            
              | 80 |  | 
            
              | 81 | Insert rows into `message_transports` for each message_transport_type. | 
            
              | 82 |  | 
            
              | 83 | =back | 
            
              | 84 |  | 
            
              | 85 | =head1 SEE ALSO | 
            
              | 86 |  | 
            
              | 87 | L<C4::Letters> | 
            
              | 88 |  | 
            
              | 89 | =head1 AUTHOR | 
            
              | 90 |  | 
            
              | 91 | Koha Development Team <http://koha-community.org/> | 
            
              | 92 |  | 
            
              | 93 | Andrew Moore <andrew.moore@liblime.com> | 
            
              | 94 |  | 
            
              | 95 | =cut | 
            
              | 96 |  | 
            
              | 97 | 1; |