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();