line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Nephia::Plugin::Basic; |
2
|
11
|
|
|
11
|
|
7946
|
use strict; |
|
11
|
|
|
|
|
52
|
|
|
11
|
|
|
|
|
403
|
|
3
|
11
|
|
|
11
|
|
60
|
use warnings; |
|
11
|
|
|
|
|
63
|
|
|
11
|
|
|
|
|
352
|
|
4
|
11
|
|
|
11
|
|
93
|
use parent 'Nephia::Plugin'; |
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
106
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub exports { |
7
|
49
|
|
|
49
|
1
|
198
|
qw/req param redirect/; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub req { |
11
|
48
|
|
|
48
|
1
|
86
|
my ($self, $context) = @_; |
12
|
48
|
|
|
0
|
|
295
|
return sub () {$context->{req}}; |
|
0
|
|
|
|
|
0
|
|
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub param { |
16
|
48
|
|
|
48
|
1
|
81
|
my ($self, $context) = @_; |
17
|
48
|
50
|
|
9
|
|
243
|
return sub (;$) {$_[0] ? $context->{req}->param($_[0]) : $context->{req}->parameters}; |
|
9
|
|
|
|
|
92
|
|
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub redirect { |
21
|
48
|
|
|
48
|
1
|
75
|
my ($self, $context) = @_; |
22
|
48
|
|
|
1
|
|
392
|
return sub ($) {[303, [Location => $_[0]], []]}; |
|
1
|
|
|
|
|
9
|
|
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |