Added the ability to set set scratch variables from the web interface.

This commit is contained in:
JT Smith 2003-05-10 15:38:47 +00:00
parent 126680a1dc
commit 13e1a253dd
3 changed files with 56 additions and 2 deletions

View file

@ -0,0 +1,31 @@
package WebGUI::Operation::Scratch;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2003 Plain Black LLC.
#-------------------------------------------------------------------
# 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
#-------------------------------------------------------------------
use Exporter;
use strict;
use WebGUI::Session;
our @ISA = qw(Exporter);
our @EXPORT = qw(&www_setScratch &www_deleteScratch);
#-------------------------------------------------------------------
sub www_deleteScratch {
WebGUI::Session::deleteScratch("www_".$session{user}{scratchName});
}
#-------------------------------------------------------------------
sub www_setScratch {
WebGUI::Session::setScratch("www_".$session{form}{scratchName},$session{form}{scratchValue});
}
1;