line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Ado::Control::Default; |
2
|
8
|
|
|
8
|
|
75834
|
use Mojo::Base 'Ado::Control'; |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
45
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
##no critic (ProhibitBuiltinHomonyms) |
5
|
|
|
|
|
|
|
sub index { |
6
|
15
|
|
|
15
|
1
|
176
|
return shift->render(); |
7
|
|
|
|
|
|
|
} |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub form { |
10
|
1
|
|
|
1
|
1
|
8
|
my $c = shift; |
11
|
1
|
|
|
|
|
7
|
$c->render(text => __PACKAGE__ . '::form'); |
12
|
1
|
|
|
|
|
26
|
return; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=encoding utf8 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Ado::Control::Ado::Default - The default controller for the site. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
#in your browser go to |
29
|
|
|
|
|
|
|
http://your-host/default/index |
30
|
|
|
|
|
|
|
#or |
31
|
|
|
|
|
|
|
http://your-host/default |
32
|
|
|
|
|
|
|
#or |
33
|
|
|
|
|
|
|
http://your-host/ |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 DESCRIPTION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Ado::Control::Default is the default controller class. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Ado::Control::Default inherits all the attributes from |
42
|
|
|
|
|
|
|
and defines the following ones. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 METHODS/ACTIONS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
L inherits all the methods from |
47
|
|
|
|
|
|
|
L and defines the following ones. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 index |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
C is the default action. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 form |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
The form action. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 SPONSORS |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
The original author |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SEE ALSO |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
L, |
64
|
|
|
|
|
|
|
L, L, L, |
65
|
|
|
|
|
|
|
L |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 AUTHOR |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Красимир Беров (Krasimir Berov) |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Copyright 2013-2014 Красимир Беров (Krasimir Berov). |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or |
77
|
|
|
|
|
|
|
modify it under the terms of the |
78
|
|
|
|
|
|
|
GNU Lesser General Public License v3 (LGPL-3.0). |
79
|
|
|
|
|
|
|
You may copy, distribute and modify the software provided that |
80
|
|
|
|
|
|
|
modifications are open source. However, software that includes |
81
|
|
|
|
|
|
|
the license may release under a different license. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
See http://opensource.org/licenses/lgpl-3.0.html for more information. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |
86
|
|
|
|
|
|
|
|