Mlists generierung an neue DBKlasse angepasst

This commit is contained in:
Andreas Österreicher
2009-06-24 14:05:46 +00:00
parent 95d9a586f9
commit 4c315606f7
5 changed files with 260 additions and 221 deletions
+32 -8
View File
@@ -1,22 +1,46 @@
<?php
/*
$xml = file_get_contents('/path/to/your/xmlfile.xml');
$xsl = file_get_contenst('/path/to/your/xslfile.xsl');
$fop = new fop();
$pdf_filename = $fop->create_pdf($xml, $xsl);
/* Copyright (C) 2006 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
/**
* Erstellt ein PDF mithilfe Apache FOP
*
* $xml = file_get_contents('/path/to/your/xmlfile.xml');
* $xsl = file_get_contenst('/path/to/your/xslfile.xsl');
* $fop = new fop();
* $pdf_filename = $fop->create_pdf($xml, $xsl);
*/
class fop
{
var $xml;
var $xsl;
function fop()
/**
* Konstruktor
*/
public function __construct()
{
//Apache FOP
}
function generatePdf($xml, $xsl, $filename, $destination)
public function generatePdf($xml, $xsl, $filename, $destination)
{
$tmppdf = tempnam('/tmp', 'FAS_FOP');