line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package RapidApp::View::Printview; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
2349
|
use strict; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
120
|
|
4
|
4
|
|
|
4
|
|
25
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
110
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
38
|
use base 'Catalyst::View::TT'; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
873
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->config(TEMPLATE_EXTENSION => '.tt'); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub process { |
11
|
0
|
|
|
0
|
1
|
|
my ($self, $c)= @_; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
$c->response->header('Cache-Control' => 'no-cache'); |
14
|
0
|
|
|
|
|
|
$c->stash->{template} = 'templates/rapidapp/ext_printview.tt'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# make sure config_params is a string of JSON |
17
|
0
|
0
|
|
|
|
|
if (ref $c->stash->{config_params}) { |
18
|
0
|
|
|
|
|
|
$c->stash->{config_params}= RapidApp::JSON::MixedEncoder::encode_json($c->stash->{config_params}); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
return $self->SUPER::process($c); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |