line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CatalystX::Eta::Controller::AutoBase; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1280
|
use Moose::Role; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
15
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
requires 'base'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
around base => \&AutoBase_around_base; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub AutoBase_around_base { |
10
|
13
|
|
|
13
|
|
1222049
|
my $orig = shift; |
11
|
13
|
|
|
|
|
34
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
13
|
|
|
|
|
31
|
my ($c) = @_; |
14
|
13
|
|
|
|
|
80
|
$self->$orig(@_); |
15
|
|
|
|
|
|
|
|
16
|
13
|
|
|
|
|
92
|
my $config = $self->config; |
17
|
|
|
|
|
|
|
|
18
|
13
|
|
|
|
|
874
|
$c->stash->{collection} = $c->model( $self->config->{result} ); |
19
|
|
|
|
|
|
|
|
20
|
13
|
50
|
33
|
|
|
7839
|
if ( exists $config->{result_cond} || exists $config->{result_attr} ) { |
21
|
|
|
|
|
|
|
|
22
|
13
|
|
|
|
|
49
|
$c->stash->{collection} = $c->stash->{collection}->search( $config->{result_cond}, $config->{result_attr} ); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|