line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Gantry::Stash; |
2
|
|
|
|
|
|
|
package stash; |
3
|
|
|
|
|
|
|
|
4
|
5
|
|
|
5
|
|
25
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
145
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
2623
|
use Gantry::Stash::View; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
123
|
|
7
|
5
|
|
|
5
|
|
3250
|
use Gantry::Stash::Controller; |
|
5
|
|
|
|
|
37
|
|
|
5
|
|
|
|
|
1287
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
#------------------------------------------------- |
10
|
|
|
|
|
|
|
# AUTOLOAD |
11
|
|
|
|
|
|
|
#------------------------------------------------- |
12
|
|
|
|
|
|
|
sub AUTOLOAD { |
13
|
0
|
|
|
0
|
|
|
my $self = shift; |
14
|
0
|
|
|
|
|
|
my $command = our $AUTOLOAD; |
15
|
0
|
|
|
|
|
|
$command =~ s/.*://; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
die( "Undefined stash method: $command" ); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
} # end AUTOLOAD |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
#------------------------------------------------- |
22
|
|
|
|
|
|
|
# DESTROY |
23
|
|
|
|
|
|
|
#------------------------------------------------- |
24
|
0
|
|
|
0
|
|
|
sub DESTROY { } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
#------------------------------------------------- |
27
|
|
|
|
|
|
|
# new |
28
|
|
|
|
|
|
|
#------------------------------------------------- |
29
|
|
|
|
|
|
|
sub new { |
30
|
0
|
|
|
0
|
|
|
my $class = shift; |
31
|
0
|
|
|
|
|
|
my $self = bless( {}, $class ); |
32
|
0
|
|
|
|
|
|
return $self; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
} # end new |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
#------------------------------------------------- |
37
|
|
|
|
|
|
|
# view |
38
|
|
|
|
|
|
|
#------------------------------------------------- |
39
|
|
|
|
|
|
|
sub view { |
40
|
0
|
|
|
0
|
|
|
my $self = shift; |
41
|
|
|
|
|
|
|
|
42
|
0
|
0
|
|
|
|
|
$self->{__VIEW__} = view->new() unless defined $self->{__VIEW__}; |
43
|
|
|
|
|
|
|
|
44
|
0
|
|
|
|
|
|
return $self->{__VIEW__}; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
} # end view |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
#------------------------------------------------- |
49
|
|
|
|
|
|
|
# controller |
50
|
|
|
|
|
|
|
#------------------------------------------------- |
51
|
|
|
|
|
|
|
sub controller { |
52
|
0
|
|
|
0
|
|
|
my $self = shift; |
53
|
|
|
|
|
|
|
|
54
|
0
|
0
|
|
|
|
|
$self->{__CONTROLLER__} = controller->new() |
55
|
|
|
|
|
|
|
unless defined $self->{__CONTROLLER__}; |
56
|
|
|
|
|
|
|
|
57
|
0
|
|
|
|
|
|
return $self->{__CONTROLLER__}; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
} # end controller |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__END__ |