Added the ability to set set scratch variables from the web interface.
This commit is contained in:
parent
126680a1dc
commit
13e1a253dd
3 changed files with 56 additions and 2 deletions
31
lib/WebGUI/Operation/Scratch.pm
Normal file
31
lib/WebGUI/Operation/Scratch.pm
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue