line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Tag::BOOLSELECT; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use Class::AutoAccess; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
28
|
|
7
|
1
|
|
|
1
|
|
5
|
use base qw(Class::AutoAccess HTML::Tag::SELECT); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
625
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
583
|
use HTML::Tag::Lang qw(%bool_descr); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
526
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '1.00'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
BEGIN { |
14
|
1
|
|
|
1
|
|
524
|
our $class_def = { |
15
|
|
|
|
|
|
|
element => 'BOOLSELECT', |
16
|
|
|
|
|
|
|
tag => 'SELECT', |
17
|
|
|
|
|
|
|
selected => '', |
18
|
|
|
|
|
|
|
maybenull => 0, |
19
|
|
|
|
|
|
|
nobeforeyes => 0, |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub inner { |
25
|
2
|
|
|
2
|
0
|
5
|
my $self = shift; |
26
|
2
|
|
|
|
|
4
|
my $ret = ''; |
27
|
2
|
100
|
|
|
|
14
|
$ret .= qq|\n| if ($self->maybenull); |
28
|
2
|
50
|
|
|
|
540
|
my @values = $self->nobeforeyes ? (0,1) : (1,0); |
29
|
2
|
|
|
|
|
137
|
foreach (@values) { |
30
|
4
|
50
|
|
|
|
66
|
$ret .= qq| |
31
|
|
|
|
|
|
|
qq|>$bool_descr{$_}\n|; |
32
|
|
|
|
|
|
|
} |
33
|
2
|
|
|
|
|
30
|
return $ret; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# vim: set ts=2: |