ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
ILIAS
Todo List
Deprecated List
Modules
Namespaces
Data Structures
Files
File List
classes
cron
include
Modules
Services
AccessControl
Accessibility
Accordion
Administration
AdvancedEditing
AdvancedMetaData
AuthApache
Authentication
AuthShibboleth
Block
Booking
Cache
Calendar
CAS
Certificate
Clipboard
Component
Contact
Container
ContainerReference
COPage
CopyWizard
Database
DataSet
Dom
EventHandling
Excel
Exceptions
Export
Feedback
Feeds
FileSystemStorage
Form
Frameset
GoogleMaps
Help
Html
InfoScreen
Init
InsertChar
JSON
Language
LDAP
License
LinkChecker
LoadTest
Locator
Logging
Mail
MainMenu
Math
MediaObjects
Membership
MetaData
Migration
Navigation
News
Notes
Notification
Object
OpenId
OrgUnit
Payment
PDF
PEAR
PermanentLink
PersonalDesktop
PHPUnit
PrivacySecurity
QTI
Radius
Rating
Registration
Repository
RTE
Search
SOAPAuth
Style
Survey
Table
Tagging
Tracking
Transformation
Tree
UIComponent
User
Utilities
WebAccessChecker
WebDAV
WebServices
Curl
ECS
RPC
classes
class.ilRpcClientFactory.php
class.ilRpcIniFileWriter.php
class.ilRPCServerAdapter.php
class.ilRPCServerSettings.php
SOAP
Workflow
XHTMLPage
XHTMLValidator
Xml
YUI
setup
sso
webservice
calendar.php
confirmReg.php
error.php
feed.php
goto.php
ilias.php
index.php
login.php
logout.php
payment.php
privfeed.php
pwassist.php
register.php
repository.php
rootindex.php
sessioncheck.php
shib_login.php
shib_logout.php
start.php
studip_referrer.php
webdav.php
Globals
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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
47
public
function
write
()
48
{
49
global
$ilSetting
,
$ilIliasIniFile
;
50
51
// Main section
52
$this->ini =
"[Server]\n"
;
53
$this->ini .=
"IpAddress = "
.$this->getHost().
"\n"
;
54
$this->ini .=
"Port = "
.$this->getPort().
"\n"
;
55
$this->ini .=
"IndexPath = "
.$this->getIndexPath().
"\n"
;
56
$this->ini .=
"LogFile = "
.$this->getLogPath().
"\n"
;
57
$this->ini .=
"LogLevel = "
.$this->getLogLevel().
"\n"
;
58
$this->ini .=
"NumThreads = "
.$this->getNumThreads().
"\n"
;
59
$this->ini .=
"RamBufferSize = 256\n"
;
60
$this->ini .=
"IndexMaxFileSizeMB = "
.$this->getMaxFileSize().
"\n"
;
61
62
$this->ini .=
"\n"
;
63
64
$this->ini .=
"[Client1]\n"
;
65
$this->ini .=
"ClientId = "
.CLIENT_ID.
"\n"
;
66
$this->ini .=
"NicId = "
.$ilSetting->get(
'inst_id'
,0).
"\n"
;
67
$this->ini .=
"IliasIniPath = "
.$ilIliasIniFile->readVariable(
'server'
,
'absolute_path'
).DIRECTORY_SEPARATOR.
"ilias.ini.php\n"
;
68
69
return
true
;
70
}
71
72
public
function
getIniString
()
73
{
74
return
$this->ini
;
75
}
76
82
public
function
getHost
()
83
{
84
return
$this->host
;
85
}
92
public
function
setHost
(
$host
)
93
{
94
$this->host=
$host
;
95
}
101
public
function
getIndexPath
()
102
{
103
return
$this->indexPath
;
104
}
111
public
function
setIndexPath
(
$indexPath
)
112
{
113
$this->indexPath=
$indexPath
;
114
}
120
public
function
getLogLevel
()
121
{
122
return
$this->logLevel
;
123
}
130
public
function
setLogLevel
(
$logLevel
)
131
{
132
$this->logLevel=
$logLevel
;
133
}
139
public
function
getLogPath
()
140
{
141
return
$this->logPath
;
142
}
149
public
function
setLogPath
(
$logPath
)
150
{
151
$this->logPath=
$logPath
;
152
}
158
public
function
getNumThreads
()
159
{
160
return
$this->numThreads
;
161
}
168
public
function
setNumThreads
(
$numThreads
)
169
{
170
$this->numThreads=
$numThreads
;
171
}
177
public
function
getPort
()
178
{
179
return
$this->port
;
180
}
187
public
function
setPort
(
$port
)
188
{
189
$this->port=
$port
;
190
}
191
196
public
function
setMaxFileSize
($a_fs)
197
{
198
$this->max_file_size = $a_fs;
199
}
200
205
public
function
getMaxFileSize
()
206
{
207
return
$this->max_file_size
;
208
}
209
210
211
}
212
?>
Services
WebServices
RPC
classes
class.ilRpcIniFileWriter.php
Generated on Mon Apr 25 2016 19:01:46 for ILIAS by
1.8.1.2 (using
Doxyfile
)