line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::Tools::EUtilities::HistoryI; |
2
|
|
|
|
|
|
|
$Bio::Tools::EUtilities::HistoryI::VERSION = '1.76'; |
3
|
11
|
|
|
11
|
|
75
|
use utf8; |
|
11
|
|
|
|
|
19
|
|
|
11
|
|
|
|
|
50
|
|
4
|
11
|
|
|
11
|
|
282
|
use strict; |
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
164
|
|
5
|
11
|
|
|
11
|
|
42
|
use warnings; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
247
|
|
6
|
11
|
|
|
11
|
|
49
|
use base qw(Bio::Tools::EUtilities::EUtilDataI); |
|
11
|
|
|
|
|
16
|
|
|
11
|
|
|
|
|
3176
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: Simple extension of EUtilDataI interface class for classes which hold NCBI server history data. |
9
|
|
|
|
|
|
|
# AUTHOR: Chris Fields |
10
|
|
|
|
|
|
|
# OWNER: 2006-2013 Chris Fields |
11
|
|
|
|
|
|
|
# LICENSE: Perl_5 |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub history { |
16
|
2
|
|
|
2
|
1
|
6
|
my $self = shift; |
17
|
2
|
50
|
33
|
|
|
15
|
$self->parse_data if ($self->can('parse_data') && !$self->data_parsed); |
18
|
2
|
50
|
|
|
|
8
|
if (@_) { |
19
|
0
|
|
|
|
|
0
|
my ($webenv, $querykey) = (shift, shift); |
20
|
0
|
0
|
0
|
|
|
0
|
$self->throw("Missing part of cookie!") if (!$webenv || !$querykey); |
21
|
0
|
|
|
|
|
0
|
($self->{'_webenv'}, $self->{'_querykey'}) = ($webenv, $querykey); |
22
|
|
|
|
|
|
|
} |
23
|
2
|
|
|
|
|
7
|
return ($self->get_webenv, $self->get_query_key); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub get_webenv { |
28
|
28
|
|
|
28
|
1
|
12032
|
my $self = shift; |
29
|
28
|
50
|
33
|
|
|
195
|
$self->parse_data if ($self->can('parse_data') && !$self->data_parsed); |
30
|
28
|
|
|
|
|
145
|
return $self->{'_webenv'}; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub get_query_key { |
35
|
27
|
|
|
27
|
1
|
60
|
my $self = shift; |
36
|
27
|
50
|
33
|
|
|
127
|
$self->parse_data if ($self->can('parse_data') && !$self->data_parsed); |
37
|
27
|
|
|
|
|
112
|
return $self->{'_querykey'}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |