ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilHTMLToPDF.php
Go to the documentation of this file.
1 <?php
2  /*
3  +----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +----------------------------------------------------------------------------+
22 */
23 
32 {
38  protected $ctrl;
39 
45  protected $tree;
46 
52  protected $ilias;
53 
59  protected $tpl;
60 
66  protected $lng;
67 
73  protected $transformer;
74 
81  {
82  global $lng, $tpl, $ilCtrl, $ilias, $tree;
83 
84  $this->lng =& $lng;
85  $this->tpl =& $tpl;
86  $this->ctrl =& $ilCtrl;
87  $this->ilias =& $ilias;
88  $this->tree =& $tree;
89  if (is_object($transformer))
90  {
91  $this->transformer =& $transformer;
92  }
93  else
94  {
95  $this->transformer = null;
96  }
97  }
98 
99  public function deliverPDFFromHTMLString($a_string)
100  {
101  if (is_object($this->transformer))
102  {
103  $this->transformer->deliverPDFFromHTMLString($a_string);
104  }
105  }
106 
107  public function deliverPDFFromHTMLFile($a_path)
108  {
109  if (is_object($this->transformer))
110  $this->transformer->deliverPDFFromHTMLFile($a_path);
111  }
112 
113  public function createPDFFileFromHTMLFile($a_source, $a_target)
114  {
115  if (is_object($this->transformer))
116  $this->transformer->createPDFFileFromHTMLFile($a_source, $a_target);
117  }
118 
119  public function createPDFFileFromHTMLString($input, $a_target)
120  {
121  if (is_object($this->transformer))
122  $this->transformer->createPDFFileFromHTMLString($input, $a_target);
123  }
124 }
125 
126 ?>