webgui/lib/WebGUI/Commerce.pm
Colin Kuskie 40065c4658 Make TOC the front page of Help.
Add license to Commerce.pm
Update fields in Help for WebGUIProfile
Fix typo in i18n file for WebGUIProfile (missing comma)
full merge of fields from 6.8 for Operatin/ProfileSettings.
2006-03-06 18:28:27 +00:00

33 lines
1.3 KiB
Perl

package WebGUI::Commerce;
=head1 LEGAL
-------------------------------------------------------------------
WebGUI is Copyright 2001-2006 Plain Black Corporation.
-------------------------------------------------------------------
Please read the legal notices (docs/legal.txt) and the license
(docs/license.txt) that came with this distribution before using
this software.
-------------------------------------------------------------------
http://www.plainblack.com info@plainblack.com
-------------------------------------------------------------------
=cut
use strict;
#-------------------------------------------------------------------
sub setCommerceSetting {
my $session = shift;
my ($entry);
$entry = shift;
$session->db->write("delete from commerceSettings where ".
"namespace=".$session->db->quote($entry->{namespace})." and ".
"type=".$session->db->quote($entry->{type})." and fieldName=".$session->db->quote($entry->{fieldName}));
$session->db->write("insert into commerceSettings (namespace, type, fieldName, fieldValue) values ".
"(".$session->db->quote($entry->{namespace}).",".$session->db->quote($entry->{type}).",".$session->db->quote($entry->{fieldName}).",".$session->db->quote($entry->{fieldValue}).")");
}
1;