Revision 1320854c
Von Sven Schöling vor fast 13 Jahren hinzugefügt
SL/ReportGenerator.pm | ||
---|---|---|
23 | 23 |
$self->{options} = { |
24 | 24 |
'std_column_visibility' => 0, |
25 | 25 |
'output_format' => 'HTML', |
26 |
'controller_class ' => '', |
|
26 | 27 |
'allow_pdf_export' => 1, |
27 | 28 |
'allow_csv_export' => 1, |
28 | 29 |
'html_template' => 'report_generator/html_report', |
... | ... | |
389 | 390 |
'EXPORT_VARIABLE_LIST' => join(' ', @{ $self->{export}->{variable_list} }), |
390 | 391 |
'EXPORT_NEXTSUB' => $self->{export}->{nextsub}, |
391 | 392 |
'DATA_PRESENT' => $self->{data_present}, |
393 |
'CONTROLLER_DISPATCH' => $opts->{controller_class}, |
|
392 | 394 |
}; |
393 | 395 |
|
394 | 396 |
return $variables; |
... | ... | |
768 | 770 |
} |
769 | 771 |
} |
770 | 772 |
|
773 |
sub check_for_pdf_api { |
|
774 |
return eval { require PDF::API2; 1; } ? 1 : 0; |
|
775 |
} |
|
776 |
|
|
771 | 777 |
1; |
772 | 778 |
|
773 | 779 |
__END__ |
... | ... | |
921 | 927 |
|
922 | 928 |
The template to be used for HTML reports. Default is 'report_generator/html_report'. |
923 | 929 |
|
930 |
=item controller_class |
|
931 |
|
|
932 |
If this is used from a C<SL::Controller::Base> based controller class, pass the |
|
933 |
class name here and make sure C<SL::Controller::Helper::ReportGenerator> is |
|
934 |
used in the controller. That way the exports stay functional. |
|
935 |
|
|
924 | 936 |
=back |
925 | 937 |
|
926 | 938 |
=head2 PDF Options |
Auch abrufbar als: Unified diff
SL::Controller::Base wrapper für ReportGenerator