Stud.IP  3.4 Revision
export_run_fop.inc.php File Reference

Namespaces

namespace  Export
 

Functions

 CheckParamRUN_FOP ()
 

Variables

 $FOP_ENABLE = true
 
if(!CheckParamRUN_FOP()) elseif($FOP_ENABLE !=trueelse
 
 $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"][]
 

Function Documentation

◆ CheckParamRUN_FOP()

CheckParamRUN_FOP ( )

Checks given parameters

This function checks the given parameters. If some are missing it returns false and adds a warning to $export_error.

@access public

Returns
boolean

Variable Documentation

◆ $export_error

$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_error_num

◆ $export_pagecontent

$export_pagecontent = ""

◆ $FOP_ENABLE

$FOP_ENABLE = true

◆ $infobox [1/2]

Initial value:
= array (
array ("kategorie" => _("Information:"),
"eintrag" => array (
array ( "icon" => Icon::create('info', 'clickable'),
"text" => $xslt_info
)
)
)
)
static create($shape, $role=Icon::DEFAULT_ROLE, $attributes=array())
Definition: Icon.class.php:90

◆ $infobox [2/2]

$infobox[1]["eintrag"][]
Initial value:
= array ( 'icon' => Icon::create('download', 'clickable'),
"text" => sprintf(_("Um die Ausgabe-Datei herunterzuladen, klicken Sie %s hier %s."), $link2, "</a>")
)

◆ $out

$out = exec( $str )

◆ $pdf_file

$pdf_file = md5(uniqid(rand())) .".pdf"

◆ $str

$str = "$FOP_SH_CALL $TMP_PATH/export/$result_file $TMP_PATH/export/$pdf_file "

◆ $xml_printcontent

$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_printdesc = _("XML-Daten")

◆ $xml_printimage

$xml_printimage = ' <a href="'. GetDownloadLink($xml_file_id, $xml_filename, 2). '">'

◆ $xml_printlink

$xml_printlink = ' <a href="'. GetDownloadLink($xml_file_id, $xml_filename, 2) . '" class="tree"> ' . $xml_filename . '</a>'

◆ $xslt_printcontent

$xslt_printcontent = _("In dieser Datei sind die Formatting Objects zur Erzeugung der PDF-Datei gespeichert.") . "<br>"

◆ $xslt_printdesc

$xslt_printdesc = _("Formatting-Objects-Datei")

◆ $xslt_printimage

$xslt_printimage = '<a href="'. GetDownloadLink($result_file,$xslt_filename .'.'. $format,2) . '">'

◆ $xslt_printlink

$xslt_printlink = '<a href="'. GetDownloadLink($result_file,$xslt_filename .'.'. $format,2) . '" class="tree">' . $xslt_filename .'.'. $format . '</a>'

◆ else

if (file_exists( $TMP_PATH.'/export/'. $pdf_file)) else
Initial value:
{
$export_pagename = _("Download der PDF-Datei")
$export_pagename
Definition: export_choose_xslt.inc.php:86