blib/lib/CGI/OptimalQuery/ExportDataTool.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 13 SCAR 6.9
CC
1
Cov
0%
on_open
2.0
activate
2.0
BEGIN
2.0
CRAP 2.0
1 package CGI::OptimalQuery::ExportDataTool;
2  
3 use strict;
4  
5 sub on_open {
6 return "
7  
8  
9 <label class=ckbox><input type=checkbox class=OQExportAllResultsInd checked> all pages</label>
10 <p>
11 <strong>download as..</strong><br>
12 <a class=OQDownloadCSV href=#>CSV (Excel)</a>,
13 <a class=OQDownloadHTML href=#>HTML</a>,
14 <a class=OQDownloadJSON href=#>JSON</a>,
15 <a class=OQDownloadXML href=#>XML</a>";
16 }
17  
18 sub activate {
19 my ($o) = @_;
20 $$o{schema}{tools}{export} ||= {
21 title => "Export Data",
22 on_open => \&on_open
23 };
24 }
25  
26 1;