line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Gantry::Stash::View::Form; |
2
|
|
|
|
|
|
|
package form; |
3
|
|
|
|
|
|
|
|
4
|
5
|
|
|
5
|
|
26
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
1026
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
|
|
my $class = shift; |
8
|
0
|
|
|
|
|
|
my $input = shift; |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
|
|
|
my $self; |
11
|
|
|
|
|
|
|
|
12
|
0
|
0
|
|
|
|
|
if ( $input ) { $self = bless( $input, $class ); } |
|
0
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
else { $self = bless( {}, $class ); } |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub results { |
19
|
0
|
|
|
0
|
|
|
my( $self, $p ) = ( shift, shift ); |
20
|
|
|
|
|
|
|
|
21
|
0
|
0
|
|
|
|
|
$self->{results} = $p if defined $p; |
22
|
0
|
|
|
|
|
|
return( $self->{results} ); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub error_text { |
27
|
0
|
|
|
0
|
|
|
my( $self, $p ) = ( shift, shift ); |
28
|
|
|
|
|
|
|
|
29
|
0
|
0
|
|
|
|
|
$self->{error_text} = $p if defined $p; |
30
|
0
|
|
|
|
|
|
return( $self->{error_text} ); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
} # end error_text |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub message { |
35
|
0
|
|
|
0
|
|
|
my( $self, $p ) = ( shift, shift ); |
36
|
|
|
|
|
|
|
|
37
|
0
|
0
|
|
|
|
|
$self->{message} = $p if defined $p; |
38
|
0
|
|
|
|
|
|
return( $self->{message} ); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |