ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/Query.pm
(Generate patch)

Comparing COMP/SCRAM/src/ActiveDoc/Query.pm (file contents):
Revision 1.1 by williamc, Wed Dec 15 16:28:01 1999 UTC vs.
Revision 1.2 by williamc, Fri Dec 17 08:36:23 1999 UTC

# Line 24 | Line 24
24   # getparam(name) : return the absolute value of the param (non expanded) - not
25   #                  affected by lodgevalue until OK called.
26   # setparam(name,value) : set the value of a given query to list
27 + # setifundef(name,value) : set the value of a given query to list
28   # expand(@string)        : expand given strings
29   # lodgevalue(name,val)   : set a value of a given query variable to the list
30   #                          current value will be expanded in terms of these
# Line 167 | Line 168 | sub cancel {
168          }
169   }
170  
171 + sub setifundef {
172 +        my $self=shift;
173 +        my $name=shift;
174 +        my $value=shift;
175 +
176 +        if ( ! defined $self->{params}{$name} ) {
177 +          $self->setparam($name,$value);
178 +        }
179 + }
180 +
181   sub setparam {
182          my $self=shift;
183          my $name=shift;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines