NAME

DADA::MailingList::Settings::Db


SYNOPSIS

 use DADA::MailingList::Settings; 
 my $ls = DADA::MailingList::Settings->new(-List => 'listshortname'); 
  
 my $list_info = $ls->get(); 
 
 $ls->save({key => 'value'});


DESCRIPTION

This module holds the DB File backend for list settings.


Public Methods

new

returns the DADA::Mailinglist::Settings object.

 my $ls = DADA::MailingList::Settings->new(-List => 'listshortname');

you can also optionally pass the -new_list = 1> parameter to circumvent list checks.

get

 my $list_info = $ls->get();

returns a hasref of the list settings. Keys are the name of the setting, value is the value of the setting.

You can optionally pass the replaced = 1> paramter to change pseudo tags in html and email messages to their value.

save

 $ls->save({settingkey => 'settingvalue'});

saves a setting. Notice that this method takes a hashref, and nothing else.


See Also

DADA::MailingList::Settings


COPYRIGHT

Copyright (c) 1999 - 2005 Justin Simoni me@justinsimoni.com http://justinsimoni.com 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.