line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Filter; |
2
|
69
|
|
|
69
|
|
21461
|
use strict; |
|
69
|
|
|
|
|
149
|
|
|
69
|
|
|
|
|
1563
|
|
3
|
69
|
|
|
69
|
|
291
|
use utf8; |
|
69
|
|
|
|
|
124
|
|
|
69
|
|
|
|
|
285
|
|
4
|
69
|
|
|
69
|
|
1384
|
use warnings FATAL => 'all'; |
|
69
|
|
|
|
|
124
|
|
|
69
|
|
|
|
|
2173
|
|
5
|
69
|
|
|
69
|
|
319
|
use parent 'DTL::Fast::Entity'; |
|
69
|
|
|
|
|
146
|
|
|
69
|
|
|
|
|
351
|
|
6
|
|
|
|
|
|
|
|
7
|
69
|
|
|
69
|
|
4264
|
use DTL::Fast::Template; |
|
69
|
|
|
|
|
139
|
|
|
69
|
|
|
|
|
9889
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new |
10
|
|
|
|
|
|
|
{ |
11
|
513
|
|
|
513
|
0
|
1187
|
my ( $proto, $parameter, %kwargs) = @_; |
12
|
|
|
|
|
|
|
|
13
|
513
|
|
33
|
|
|
1834
|
$proto = ref $proto || $proto; |
14
|
|
|
|
|
|
|
|
15
|
513
|
|
50
|
|
|
1334
|
$kwargs{parameter} = $parameter // [ ]; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
die $proto->get_parse_error("Parameter must be an ARRAY reference") |
18
|
513
|
50
|
|
|
|
1396
|
if (ref $kwargs{parameter} ne 'ARRAY'); |
19
|
|
|
|
|
|
|
|
20
|
513
|
|
|
|
|
1689
|
my $self = $proto->SUPER::new(%kwargs); |
21
|
|
|
|
|
|
|
|
22
|
513
|
|
|
|
|
1474
|
return $self->parse_parameters(); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
124
|
|
|
124
|
0
|
371
|
sub parse_parameters {return shift;} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub filter |
28
|
|
|
|
|
|
|
{ |
29
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
30
|
0
|
|
|
|
|
|
die sprintf( "filter was not overriden in a subclass %s", ref $self ); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |