line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Template::Pro::Extension::ObjBase; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
$VERSION = "0.11"; |
4
|
0
|
|
|
0
|
0
|
0
|
sub Version { $VERSION; } |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
966
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
86
|
|
7
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
175
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
1
|
|
|
1
|
0
|
46
|
my $class = shift; |
11
|
1
|
|
|
|
|
2
|
my $self = {}; |
12
|
1
|
|
|
|
|
4
|
bless $self, $class; |
13
|
1
|
|
|
|
|
3
|
return $self; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub init { |
18
|
1
|
|
|
1
|
0
|
1
|
my $self = shift; |
19
|
1
|
|
|
|
|
3
|
my $parent = shift; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub get_filter { |
23
|
1
|
|
|
1
|
0
|
2
|
my $self = shift; |
24
|
1
|
|
|
|
|
1
|
my $parent = shift; |
25
|
1
|
|
|
|
|
5
|
return $self->_get_filter(); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub _get_filter { |
29
|
1
|
|
|
1
|
|
1
|
my $self = shift; |
30
|
1
|
|
|
|
|
2
|
my @ret ; |
31
|
1
|
|
|
1
|
|
7
|
no strict "refs"; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
114
|
|
32
|
1
|
|
|
|
|
1
|
push @ret, \&{ref($self) . '::filter'}; |
|
1
|
|
|
|
|
7
|
|
33
|
1
|
|
|
|
|
4
|
return @ret; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub filter { |
37
|
2
|
|
|
2
|
0
|
3
|
my $template = shift; |
38
|
2
|
|
|
|
|
16
|
return $$template; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# vim: set ts=2: |