line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
2920
|
use 5.008; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
2
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
38
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Data::Conveyor::Storage::Null; |
6
|
|
|
|
|
|
|
BEGIN { |
7
|
1
|
|
|
1
|
|
19
|
$Data::Conveyor::Storage::Null::VERSION = '1.103130'; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
# ABSTRACT: Stage-based conveyor-belt-like ticket handling system |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
|
|
14
|
use parent qw( |
12
|
|
|
|
|
|
|
Class::Scaffold::Delegate::Mixin |
13
|
|
|
|
|
|
|
Data::Storage::Null |
14
|
1
|
|
|
1
|
|
5
|
); |
|
1
|
|
|
|
|
3
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub generate_ticket_no { |
17
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
18
|
0
|
|
|
|
|
|
$self->delegate->make_obj('test_ticket')->gen_temp_ticket_no; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub keywords_store { |
22
|
0
|
|
|
0
|
1
|
|
my ($self, $ticket, $keyword_container) = @_; |
23
|
0
|
|
|
|
|
|
our %store; |
24
|
0
|
|
|
|
|
|
$store{ticket}{ $ticket->ticket_no }{keyword_container} = |
25
|
|
|
|
|
|
|
$keyword_container; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub keywords_read { |
29
|
0
|
|
|
0
|
1
|
|
my ($self, $ticket) = @_; |
30
|
0
|
|
|
|
|
|
our %store; |
31
|
0
|
|
|
|
|
|
my $container = $store{ticket}{ $ticket->ticket_no }{keyword_container}; |
32
|
0
|
|
|
|
|
|
$container->dirty(1); |
33
|
0
|
|
|
|
|
|
$ticket->keywords($container); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |