line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
2902
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
72
|
|
2
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
239
|
|
3
|
|
|
|
|
|
|
package Conclave::OTK::Backend; |
4
|
|
|
|
|
|
|
# ABSTRACT: base class for OTK backends |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
1
|
|
my ($class, $base_uri) = @_; |
8
|
0
|
|
|
|
|
|
my $self = bless({}, $class); |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
|
|
|
$self->{base_uri} = $base_uri; |
11
|
0
|
|
|
|
|
|
return $self; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__END__ |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=encoding UTF-8 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Conclave::OTK::Backend - base class for OTK backends |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 VERSION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
version 0.01 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
package Conclave::OTK::Backend::MyBackend; |
33
|
|
|
|
|
|
|
use parent qw/Conclave::OTK::Backend/; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 DESCRIPTION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
This should be the base class for all OTK backends. The main functions |
38
|
|
|
|
|
|
|
a plugin needs to overwrite are: |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=over |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item C<new> |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
TODO |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item C<init> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
TODO |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item C<update> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
TODO |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item C<query> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
TODO |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item C<delete> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
TODO |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=back |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 EXAMPLES |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
For examples view the C<Conclave::OTK::Backend::*> included in this |
67
|
|
|
|
|
|
|
distribution. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 AUTHOR |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Nuno Carvalho <smash@cpan.org> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This software is copyright (c) 2014-2015 by Nuno Carvalho <smash@cpan.org>. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
78
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |