line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Gantry::Stash::View; |
2
|
|
|
|
|
|
|
package view; |
3
|
5
|
|
|
5
|
|
27
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
153
|
|
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
2632
|
use Gantry::Stash::View::Form; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
1800
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
#------------------------------------------------- |
8
|
|
|
|
|
|
|
# AUTOLOAD |
9
|
|
|
|
|
|
|
#------------------------------------------------- |
10
|
|
|
|
|
|
|
sub AUTOLOAD { |
11
|
0
|
|
|
0
|
|
|
my $self = shift; |
12
|
0
|
|
|
|
|
|
my $command = our $AUTOLOAD; |
13
|
0
|
|
|
|
|
|
$command =~ s/.*://; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
die( "Undefined stash->view method $command" ); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
#------------------------------------------------- |
19
|
|
|
|
|
|
|
# DESTROY |
20
|
|
|
|
|
|
|
#------------------------------------------------- |
21
|
0
|
|
|
0
|
|
|
sub DESTROY { } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
#------------------------------------------------- |
24
|
|
|
|
|
|
|
# new |
25
|
|
|
|
|
|
|
#------------------------------------------------- |
26
|
|
|
|
|
|
|
sub new { |
27
|
0
|
|
|
0
|
|
|
my $class = shift; |
28
|
0
|
|
|
|
|
|
my $self = bless( {}, $class ); |
29
|
0
|
|
|
|
|
|
return $self; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
} # end new |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
#------------------------------------------------- |
34
|
|
|
|
|
|
|
# template( value ) |
35
|
|
|
|
|
|
|
#------------------------------------------------- |
36
|
|
|
|
|
|
|
sub template { |
37
|
0
|
|
|
0
|
|
|
my( $self, $p ) = ( shift, shift ); |
38
|
|
|
|
|
|
|
|
39
|
0
|
0
|
|
|
|
|
$self->{__TEMPLATE__} = $p if defined $p; |
40
|
0
|
|
|
|
|
|
return( $self->{__TEMPLATE__} ); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
} # end template |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
#------------------------------------------------- |
45
|
|
|
|
|
|
|
# data( value ) |
46
|
|
|
|
|
|
|
#------------------------------------------------- |
47
|
|
|
|
|
|
|
sub data { |
48
|
0
|
|
|
0
|
|
|
my( $self, $p ) = ( shift, shift ); |
49
|
|
|
|
|
|
|
|
50
|
0
|
0
|
|
|
|
|
$self->{__DATA__} = $p if defined $p; |
51
|
0
|
|
|
|
|
|
return( $self->{__DATA__} ); |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
} # end data |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
#------------------------------------------------- |
56
|
|
|
|
|
|
|
# title( value ) |
57
|
|
|
|
|
|
|
#------------------------------------------------- |
58
|
|
|
|
|
|
|
sub title { |
59
|
0
|
|
|
0
|
|
|
my( $self, $p ) = ( shift, shift ); |
60
|
|
|
|
|
|
|
|
61
|
0
|
0
|
|
|
|
|
$self->{__TITLE__} = $p if defined $p; |
62
|
0
|
|
|
|
|
|
return( $self->{__TITLE__} ); |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
} # end title |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
#------------------------------------------------- |
67
|
|
|
|
|
|
|
# form( value ) |
68
|
|
|
|
|
|
|
#------------------------------------------------- |
69
|
|
|
|
|
|
|
sub form { |
70
|
0
|
|
|
0
|
|
|
my( $self, $p ) = ( shift, shift ); |
71
|
|
|
|
|
|
|
|
72
|
0
|
0
|
|
|
|
|
$self->{__FORM__} = form->new( $p ) if defined $p; |
73
|
|
|
|
|
|
|
|
74
|
0
|
0
|
|
|
|
|
$self->{__FORM__} = form->new( ) unless defined $self->{__FORM__}; |
75
|
|
|
|
|
|
|
|
76
|
0
|
|
|
|
|
|
return( $self->{__FORM__} ); |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
1; |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
__END__ |