ILIAS
Release_4_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilFO2PDF.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_FO2PDF"
,1);
36
37
class
ilFO2PDF
extends
ilRPCServerAdapter
38
{
39
var
$log
= null;
40
var
$mode
=
MODE_FO2PDF
;
41
var
$fo_string
=
''
;
42
43
function
ilFO2PDF
()
44
{
45
global
$ilLog
;
46
47
parent::ilRPCServerAdapter
();
48
49
}
50
51
function
setFOString
($a_fo)
52
{
53
$this->fo_string = $a_fo;
54
}
55
function
getFOString
()
56
{
57
return
$this->fo_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_FO2PDF
:
76
$this->
__prepareFO2PDFParams
();
77
break
;
78
79
default
:
80
$this->log->write(
'ilFO2PDF(): No valid mode given'
);
81
return
false
;
82
83
}
84
return
parent::send
();
85
}
86
function
__prepareFO2PDFParams
()
87
{
88
$this->
__initMessage
(
'RPCTransformationHandler.ilFO2PDF'
,array(
new
XML_RPC_Value($this->
getFOString
(),
"string"
)));
89
90
return
true
;
91
}
92
}
93
?>
Services
Transformation
classes
class.ilFO2PDF.php
Generated on Wed Apr 27 2016 19:01:52 for ILIAS by
1.8.1.2 (using
Doxyfile
)