ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilHTML2PDF.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
24
33 include_once 'Services/WebServices/RPC/classes/class.ilRPCServerAdapter.php';
34
35 define("MODE_HTML2PDF",1);
36
38 {
39 var $log = null;
41 var $html_string = '';
42
43 function ilHTML2PDF()
44 {
45 global $ilLog;
46
47 parent::ilRPCServerAdapter();
48
49 }
50
51 function setHTMLString($a_html_string)
52 {
53 $this->html_string = $a_html_string;
54 }
55 function getHTMLString()
56 {
57 return $this->html_string;
58 }
59
60
61 function setMode($a_mode)
62 {
63 $this->mode = $a_mode;
64 }
65 function getMode()
66 {
67 return $this->mode;
68 }
69
70 function send()
71 {
72 $this->__initClient();
73 switch($this->getMode())
74 {
75 case MODE_HTML2PDF:
77 break;
78
79 default:
80 $this->log->write('ilHTML2PDF(): No valid mode given');
81 return false;
82
83 }
84 return parent::send();
85 }
87 {
88 $this->__initMessage('HTML2PDF.ilHTML2PDF',array(new XML_RPC_Value($this->getHTMLString(),"string")));
89
90 return true;
91 }
92 }
93 ?>
const MODE_HTML2PDF
setMode($a_mode)
setHTMLString($a_html_string)
send()
Send message to remote rpc server and get response.
__initClient()
Create RPC client object.
__initMessage($a_message_name, $params)
Create RPC message object.