Loading

DADA::MailingList::Schedules::MLDb

NAME DADA::MailingList::Schedules::MLDb

SYNOPSIS

 my $mss = DADA::MailingList::Schedules->new({-list => 'listshortname'}); 

Description

This module holds methods for manipulating the underlying file format used to save schedule mailings for Beatitude. This module uses the MLDBM module to save complex data structures to disk.

Public Methods

new

  my $mss = DADA::MailingList::Schedules->new({-list => 'listshortname'}); 

-List has to be a valid listshortname.

save_record

        my $key = $mss->save_record(-key   => $s_key, 
                                                                -mode  => 'append', 
                                                    -data  => \%form_vals);

Saves the hashref, -data into key -key. If key is not present, a new key will be made. Information will be appened to old information if -mode is set to append, old information will be most likely be written over if -mode is set to any other value.

get_record

 $record = $mss->get_record($key);

Returns a hashref saved in $key

record_keys

 my @keys = $mss->record_keys;
   

Returns all records keys.

remove_record

 $mss->remove_record($key); 

removes the record, $key.

new_key

 my $new_key = $mss->new_key; 

Creates a new key, based on the time();

COPYRIGHT

Copyright (c) 1999 - 2014 Justin Simoni All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Dada Mail Project

Download

Installation

Support