]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Form.pm
Weitere, nicht ganz so behutsame Codesaeuberungen.
[mfinanz.git] / SL / Form.pm
index a6ce5afc38c30dc120b8e0c33c9937164927e6d4..ab4d1796be23275864b2821b3c369da1cd599bdc 100644 (file)
@@ -3223,4 +3223,25 @@ sub all_years {
   $main::lxdebug->leave_sub();
 }
 
   $main::lxdebug->leave_sub();
 }
 
+sub backup_vars {
+  $main::lxdebug->enter_sub();
+  my $self = shift;
+  my @vars = @_;
+
+  map { $self->{_VAR_BACKUP}->{$_} = $self->{$_} if $self->{$_} } @vars;
+
+  $main::lxdebug->leave_sub();
+}
+
+sub restore_vars {
+  $main::lxdebug->enter_sub();
+
+  my $self = shift;
+  my @vars = @_;
+
+  map { $self->{$_} = $self->{_VAR_BACKUP}->{$_} if $self->{_VAR_BACKUP}->{$_} } @vars;
+
+  $main::lxdebug->leave_sub();
+}
+
 1;
 1;