lib/OpusVL/AppKit/View/DownloadFile.pm

filter: Statementstmt 53.3% 8 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 60.0% 12 / 20 CC 1 SCAR 2.2
CC
1
Cov
53%
process
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/OpusVL/AppKit/Controller/Search.pm ↑ Summary lib/OpusVL/AppKit/RolesFor/Schema/AppKitAuthDB/Result/Aclrule.pm »
1 package OpusVL::AppKit::View::DownloadFile;
2  
3 9 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 9 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 9 ▶BEGIN { extends 'Catalyst::View::Download'; }
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub process
10 {
11 0 ▶ my $self = shift;
Subroutine process: not called CC=1 SCAR=6.9
Pod documented
12 0 my $c = shift;
13 0 my $args = shift;
14  
15 0 $c->res->content_type( $args->{content_type} );
16 0 $c->res->header( 'Content-Disposition' => 'filename='.$args->{header}.';' );
17 0 $c->res->body( $args->{body} );
18 0 $c->detach;
19 }
20  
21 ##
22 9 1;
23  
24 __END__
25  
26 =pod
27  
28 =encoding UTF-8
29  
30 =head1 NAME
31  
32 OpusVL::AppKit::View::DownloadFile
33  
34 =head1 VERSION
35  
36 version 2.24
37  
38 =head1 AUTHOR
39  
40 OpusVL - www.opusvl.com
41  
42 =head1 COPYRIGHT AND LICENSE
43  
44 This software is copyright (c) 2010 by OpusVL - www.opusvl.com.
45  
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48  
49 =cut
« lib/OpusVL/AppKit/Controller/Search.pm ↑ Summary lib/OpusVL/AppKit/RolesFor/Schema/AppKitAuthDB/Result/Aclrule.pm »