webgui/lib/WebGUI/Operation/Scratch.pm
Colin Kuskie 4206828715 Add POD to 1 Asset and 7 Operations.
Internationalized a label in Operation::LoginHistory
2005-12-21 22:54:50 +00:00

57 lines
1.5 KiB
Perl

package WebGUI::Operation::Scratch;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2005 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
#-------------------------------------------------------------------
use strict;
use WebGUI::Session;
=head1 NAME
Package WebGUI::Operation::Scratch
=head1 DESCRIPTION
Operations that provide access to the scratch area of the session variable.
=cut
#-------------------------------------------------------------------
=head2 www_deleteScratch ( )
Delete a variable from the session scratch area by setting a form
variable, scratchName.
=cut
sub www_deleteScratch {
WebGUI::Session::deleteScratch("www_".$session{form}{scratchName});
return "";
}
#-------------------------------------------------------------------
=head2 www_deleteScratch ( )
Delete a variable from the session scratch area by setting forms
variables, scratchName, the name of the variable to set, and scratchValue,
the value the variable should take.
=cut
sub www_setScratch {
WebGUI::Session::setScratch("www_".$session{form}{scratchName},$session{form}{scratchValue});
return "";
}
1;