line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Enbld::Target::Attribute::URL; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
4563
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
69
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
54
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
12
|
use Carp; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
120
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
8
|
use parent qw/Enbld::Target::AttributeExtension::URL/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
11
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub initialize { |
11
|
53
|
|
|
53
|
0
|
111
|
my ( $self, $param ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
53
|
100
|
|
|
|
158
|
if ( ! defined $param ) { |
14
|
|
|
|
|
|
|
$self->{callback} = sub { |
15
|
30
|
|
|
30
|
|
44
|
my $attributes = shift; |
16
|
|
|
|
|
|
|
|
17
|
30
|
|
|
|
|
114
|
return $attributes->DownloadSite . $attributes->Filename; |
18
|
47
|
|
|
|
|
327
|
}; |
19
|
|
|
|
|
|
|
|
20
|
47
|
|
|
|
|
142
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
6
|
100
|
|
|
|
12
|
if ( $param ) { |
24
|
5
|
|
|
|
|
29
|
$self->SUPER::initialize( $param ); |
25
|
5
|
|
|
|
|
8
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
|
|
5
|
require Enbld::Exception; |
29
|
1
|
|
|
|
|
6
|
croak( Enbld::Exception->new( "Attribute 'URL' isn't defined" ) ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |