line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Controller::HTML::FormFu::Action::Form; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
6113
|
use strict; |
|
9
|
|
|
|
|
22
|
|
|
9
|
|
|
|
|
396
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '2.02'; # VERSION |
6
|
|
|
|
|
|
|
|
7
|
9
|
|
|
9
|
|
50
|
use Moose; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
64
|
|
8
|
9
|
|
|
9
|
|
54645
|
use Config::Any; |
|
9
|
|
|
|
|
41
|
|
|
9
|
|
|
|
|
210
|
|
9
|
9
|
|
|
9
|
|
48
|
use namespace::autoclean; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
97
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
extends 'Catalyst::Controller::HTML::FormFu::ActionBase::Form'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub execute { |
14
|
27
|
|
|
27
|
1
|
6679
|
my $self = shift; |
15
|
27
|
|
|
|
|
80
|
my ( $controller, $c ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
27
|
50
|
|
|
|
566
|
if ( $self->reverse =~ $self->_form_action_regex ) { |
18
|
|
|
|
|
|
|
# don't load form again |
19
|
0
|
|
|
|
|
0
|
return $self->next::method(@_); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
27
|
|
|
|
|
935
|
my $config = $controller->_html_formfu_config; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
return $self->next::method(@_) |
25
|
|
|
|
|
|
|
unless exists $self->attributes->{ActionClass} |
26
|
27
|
50
|
33
|
|
|
554
|
&& $self->attributes->{ActionClass}[0] eq $config->{form_action}; |
27
|
|
|
|
|
|
|
|
28
|
27
|
|
|
|
|
1134
|
my $form = $controller->_form; |
29
|
|
|
|
|
|
|
|
30
|
27
|
|
|
|
|
136
|
$form->process; |
31
|
|
|
|
|
|
|
|
32
|
27
|
|
|
|
|
23340
|
$c->stash->{ $config->{form_stash} } = $form; |
33
|
|
|
|
|
|
|
|
34
|
27
|
|
|
|
|
1927
|
$self->next::method(@_); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |