ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilRpcIniFileWriter.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
29
class
ilRpcIniFileWriter
30
{
31
protected
$ini
=
''
;
32
33
protected
$host
;
34
protected
$port
;
35
protected
$indexPath
;
36
protected
$logPath
;
37
protected
$logLevel
;
38
protected
$numThreads
;
39
protected
$max_file_size
;
40
41
42
public
function
__construct
()
43
{
44
}
45
46
public
function
write
()
47
{
48
global
$DIC
;
49
50
$ilSetting
= $DIC[
'ilSetting'
];
51
$ilIliasIniFile
= $DIC[
'ilIliasIniFile'
];
52
53
// Main section
54
$this->ini =
"[Server]\n"
;
55
$this->ini .=
"IpAddress = "
. $this->
getHost
() .
"\n"
;
56
$this->ini .=
"Port = "
. $this->
getPort
() .
"\n"
;
57
$this->ini .=
"IndexPath = "
. $this->
getIndexPath
() .
"\n"
;
58
$this->ini .=
"LogFile = "
. $this->
getLogPath
() .
"\n"
;
59
$this->ini .=
"LogLevel = "
. $this->
getLogLevel
() .
"\n"
;
60
$this->ini .=
"NumThreads = "
. $this->
getNumThreads
() .
"\n"
;
61
$this->ini .=
"RamBufferSize = 256\n"
;
62
$this->ini .=
"IndexMaxFileSizeMB = "
. $this->
getMaxFileSize
() .
"\n"
;
63
64
$this->ini .=
"\n"
;
65
66
$this->ini .=
"[Client1]\n"
;
67
$this->ini .=
"ClientId = "
. CLIENT_ID .
"\n"
;
68
$this->ini .=
"NicId = "
.
$ilSetting
->get(
'inst_id'
, 0) .
"\n"
;
69
$this->ini .=
"IliasIniPath = "
.
$ilIliasIniFile
->readVariable(
'server'
,
'absolute_path'
) . DIRECTORY_SEPARATOR .
"ilias.ini.php\n"
;
70
71
return
true
;
72
}
73
74
public
function
getIniString
()
75
{
76
return
$this->ini
;
77
}
78
84
public
function
getHost
()
85
{
86
return
$this->host
;
87
}
94
public
function
setHost
(
$host
)
95
{
96
$this->host =
$host
;
97
}
103
public
function
getIndexPath
()
104
{
105
return
$this->indexPath
;
106
}
113
public
function
setIndexPath
(
$indexPath
)
114
{
115
$this->indexPath =
$indexPath
;
116
}
122
public
function
getLogLevel
()
123
{
124
return
$this->logLevel
;
125
}
132
public
function
setLogLevel
(
$logLevel
)
133
{
134
$this->logLevel =
$logLevel
;
135
}
141
public
function
getLogPath
()
142
{
143
return
$this->logPath
;
144
}
151
public
function
setLogPath
(
$logPath
)
152
{
153
$this->logPath =
$logPath
;
154
}
160
public
function
getNumThreads
()
161
{
162
return
$this->numThreads
;
163
}
170
public
function
setNumThreads
(
$numThreads
)
171
{
172
$this->numThreads =
$numThreads
;
173
}
179
public
function
getPort
()
180
{
181
return
$this->port
;
182
}
189
public
function
setPort
(
$port
)
190
{
191
$this->port =
$port
;
192
}
193
198
public
function
setMaxFileSize
($a_fs)
199
{
200
$this->max_file_size = $a_fs;
201
}
202
207
public
function
getMaxFileSize
()
208
{
209
return
$this->max_file_size
;
210
}
211
}
ilRpcIniFileWriter\$port
$port
Definition:
class.ilRpcIniFileWriter.php:34
ilRpcIniFileWriter\setIndexPath
setIndexPath($indexPath)
Sets $indexPath.
Definition:
class.ilRpcIniFileWriter.php:113
ilRpcIniFileWriter\getIniString
getIniString()
Definition:
class.ilRpcIniFileWriter.php:74
$DIC
global $DIC
Definition:
saml.php:7
ilRpcIniFileWriter\getPort
getPort()
Returns $port.
Definition:
class.ilRpcIniFileWriter.php:179
ilRpcIniFileWriter\$indexPath
$indexPath
Definition:
class.ilRpcIniFileWriter.php:35
ilRpcIniFileWriter\getIndexPath
getIndexPath()
Returns $indexPath.
Definition:
class.ilRpcIniFileWriter.php:103
ilRpcIniFileWriter\$max_file_size
$max_file_size
Definition:
class.ilRpcIniFileWriter.php:39
ilRpcIniFileWriter\setNumThreads
setNumThreads($numThreads)
Sets $numThreads.
Definition:
class.ilRpcIniFileWriter.php:170
ilRpcIniFileWriter\setLogPath
setLogPath($logPath)
Sets $logPath.
Definition:
class.ilRpcIniFileWriter.php:151
ilRpcIniFileWriter\$host
$host
Definition:
class.ilRpcIniFileWriter.php:33
ilRpcIniFileWriter\setHost
setHost($host)
Sets $host.
Definition:
class.ilRpcIniFileWriter.php:94
ilRpcIniFileWriter\setPort
setPort($port)
Sets $port.
Definition:
class.ilRpcIniFileWriter.php:189
ilRpcIniFileWriter
Creates a java server ini file for the current client
Definition:
class.ilRpcIniFileWriter.php:29
ilRpcIniFileWriter\setLogLevel
setLogLevel($logLevel)
Sets $logLevel.
Definition:
class.ilRpcIniFileWriter.php:132
ilRpcIniFileWriter\__construct
__construct()
Definition:
class.ilRpcIniFileWriter.php:42
ilRpcIniFileWriter\getHost
getHost()
Returns $host.
Definition:
class.ilRpcIniFileWriter.php:84
ilRpcIniFileWriter\$ini
$ini
Definition:
class.ilRpcIniFileWriter.php:31
ilRpcIniFileWriter\$logLevel
$logLevel
Definition:
class.ilRpcIniFileWriter.php:37
ilRpcIniFileWriter\getLogPath
getLogPath()
Returns $logPath.
Definition:
class.ilRpcIniFileWriter.php:141
ilRpcIniFileWriter\$logPath
$logPath
Definition:
class.ilRpcIniFileWriter.php:36
ilRpcIniFileWriter\getMaxFileSize
getMaxFileSize()
Get max file size mb.
Definition:
class.ilRpcIniFileWriter.php:207
ilRpcIniFileWriter\getNumThreads
getNumThreads()
Returns $numThreads.
Definition:
class.ilRpcIniFileWriter.php:160
ilRpcIniFileWriter\setMaxFileSize
setMaxFileSize($a_fs)
Set max file size mb.
Definition:
class.ilRpcIniFileWriter.php:198
$ilSetting
global $ilSetting
Definition:
privfeed.php:17
$ilIliasIniFile
$ilIliasIniFile
Definition:
imagemanager.php:34
ilRpcIniFileWriter\$numThreads
$numThreads
Definition:
class.ilRpcIniFileWriter.php:38
php
ilRpcIniFileWriter\write
write()
Definition:
class.ilRpcIniFileWriter.php:46
ilRpcIniFileWriter\getLogLevel
getLogLevel()
Returns $logLevel.
Definition:
class.ilRpcIniFileWriter.php:122
Services
WebServices
RPC
classes
class.ilRpcIniFileWriter.php
Generated on Thu Feb 27 2025 19:02:08 for ILIAS by
1.8.13 (using
Doxyfile
)