| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebDAO; |
|
2
|
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
128845
|
use strict; |
|
|
6
|
|
|
|
|
15
|
|
|
|
6
|
|
|
|
|
155
|
|
|
4
|
6
|
|
|
6
|
|
31
|
use warnings; |
|
|
6
|
|
|
|
|
11
|
|
|
|
6
|
|
|
|
|
1021
|
|
|
5
|
6
|
|
|
6
|
|
1068
|
use WebDAO::Base; |
|
|
6
|
|
|
|
|
14
|
|
|
|
6
|
|
|
|
|
366
|
|
|
6
|
6
|
|
|
6
|
|
1220
|
use WebDAO::Element; |
|
|
6
|
|
|
|
|
12
|
|
|
|
6
|
|
|
|
|
208
|
|
|
7
|
6
|
|
|
6
|
|
1070
|
use WebDAO::Container; |
|
|
6
|
|
|
|
|
18
|
|
|
|
6
|
|
|
|
|
223
|
|
|
8
|
6
|
|
|
6
|
|
1491
|
use WebDAO::Engine; |
|
|
6
|
|
|
|
|
15
|
|
|
|
6
|
|
|
|
|
403
|
|
|
9
|
|
|
|
|
|
|
our @ISA = qw(WebDAO::Element Exporter); |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '2.26'; |
|
12
|
|
|
|
|
|
|
@WebDAO::EXPORT = qw( mk_route mk_attr _log1 _log2 _log3 |
|
13
|
|
|
|
|
|
|
_log4 _log5 _log6); |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |
|
17
|
|
|
|
|
|
|
__END__ |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
WebDAO - platform for easy creation of high-performance and scalable web applications |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
use WebDAO; |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
There are many environments in which the web applications work: |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
--------------------------------------------- |
|
32
|
|
|
|
|
|
|
| PSGI | |
|
33
|
|
|
|
|
|
|
| FastCGI | |
|
34
|
|
|
|
|
|
|
| ------------------------ | |
|
35
|
|
|
|
|
|
|
| nginx | | | |
|
36
|
|
|
|
|
|
|
| | Your code | isapi | |
|
37
|
|
|
|
|
|
|
| | | | |
|
38
|
|
|
|
|
|
|
| ---------------------- | |
|
39
|
|
|
|
|
|
|
| Shell Test::More IIS | |
|
40
|
|
|
|
|
|
|
| lighttpd | |
|
41
|
|
|
|
|
|
|
--------------------------------------------- |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
WebDAO designed to save developers from the details of the application environment, reduce costs with a change of environment, and to simplify debugging and testing applications. An important goal is to simplify and increase the speed of web development. |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 METHODS |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 mk_route ( 'route1'=> 'Class::Name', 'route2'=> sub { return new My::Class() }) |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Make route table for object |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
use WebDAO; |
|
52
|
|
|
|
|
|
|
mk_route( |
|
53
|
|
|
|
|
|
|
user=>'MyClass::User', |
|
54
|
|
|
|
|
|
|
test=>sub { return MyClass->new( param1=>1 ) } |
|
55
|
|
|
|
|
|
|
); |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
http://webdao.sourceforge.net |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHOR |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Zahatski Aliaksandr, E<lt>zag@cpan.orgE<gt> |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Copyright 2002-2017 by Zahatski Aliaksandr |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
|
72
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=cut |