|
Stud.IP
3.2 Revision
|
Namespaces | |
| Export | |
Functions | |
| CheckParamRUN_FOP () | |
Variables | |
| $FOP_ENABLE = true | |
| if(!CheckParamRUN_FOP()) elseif($FOP_ENABLE !=true) | else |
| $pdf_file = md5(uniqid(rand())) .".pdf" | |
| $str = "$FOP_SH_CALL $TMP_PATH/export/$result_file $TMP_PATH/export/$pdf_file " | |
| $out = exec( $str ) | |
| $export_pagecontent = "" | |
| $export_error = "<b>" . sprintf(_("Bei der Erzeugung der PDF-Datei ist ein Fehler aufgetreten. <br>Fehlermeldung: %s <br>Datei: %s"), $out, $pdf_file) . "</b><br>" | |
| $export_error_num | |
| $xml_printimage = ' <a href="'. GetDownloadLink($xml_file_id, $xml_filename, 2). '">' | |
| $xml_printlink = ' <a href="'. GetDownloadLink($xml_file_id, $xml_filename, 2) . '" class="tree"> ' . $xml_filename . '</a>' | |
| $xml_printdesc = _("XML-Daten") | |
| $xml_printcontent = _("In dieser Datei sind die Daten als XML-Tags gespeichert. Diese Tags können mit einem XSLT-Script verarbeitet werden.") . "<br>" | |
| $xslt_printimage = '<a href="'. GetDownloadLink($result_file,$xslt_filename .'.'. $format,2) . '">' | |
| $xslt_printlink = '<a href="'. GetDownloadLink($result_file,$xslt_filename .'.'. $format,2) . '" class="tree">' . $xslt_filename .'.'. $format . '</a>' | |
| $xslt_printdesc = _("Formatting-Objects-Datei") | |
| $xslt_printcontent = _("In dieser Datei sind die Formatting Objects zur Erzeugung der PDF-Datei gespeichert.") . "<br>" | |
| $infobox | |
| $infobox [1]["eintrag"][] | |
| CheckParamRUN_FOP | ( | ) | -> check("tutor") |
Checks given parameters
This function checks the given parameters. If some are missing it returns false and adds a warning to $export_error.
public
| $export_error = "<b>" . sprintf(_("Bei der Erzeugung der PDF-Datei ist ein Fehler aufgetreten. <br>Fehlermeldung: %s <br>Datei: %s"), $out, $pdf_file) . "</b><br>" |
| $export_error_num |
| $export_pagecontent = "" |
| $FOP_ENABLE = true |
| $infobox[1]["eintrag"][] |
| $out = exec( $str ) |
| $pdf_file = md5(uniqid(rand())) .".pdf" |
| $str = "$FOP_SH_CALL $TMP_PATH/export/$result_file $TMP_PATH/export/$pdf_file " |
| $xml_printcontent = _("In dieser Datei sind die Daten als XML-Tags gespeichert. Diese Tags können mit einem XSLT-Script verarbeitet werden.") . "<br>" |
| $xml_printdesc = _("XML-Daten") |
| $xml_printimage = ' <a href="'. GetDownloadLink($xml_file_id, $xml_filename, 2). '">' |
| $xml_printlink = ' <a href="'. GetDownloadLink($xml_file_id, $xml_filename, 2) . '" class="tree"> ' . $xml_filename . '</a>' |
| $xslt_printcontent = _("In dieser Datei sind die Formatting Objects zur Erzeugung der PDF-Datei gespeichert.") . "<br>" |
| $xslt_printdesc = _("Formatting-Objects-Datei") |
| $xslt_printimage = '<a href="'. GetDownloadLink($result_file,$xslt_filename .'.'. $format,2) . '">' |
| $xslt_printlink = '<a href="'. GetDownloadLink($result_file,$xslt_filename .'.'. $format,2) . '" class="tree">' . $xslt_filename .'.'. $format . '</a>' |
| if (file_exists( $TMP_PATH.'/export/'. $pdf_file)) else |