|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* sysPass |
|
4
|
|
|
* |
|
5
|
|
|
* @author nuxsmin |
|
6
|
|
|
* @link https://syspass.org |
|
7
|
|
|
* @copyright 2012-2018, Rubén Domínguez nuxsmin@$syspass.org |
|
8
|
|
|
* |
|
9
|
|
|
* This file is part of sysPass. |
|
10
|
|
|
* |
|
11
|
|
|
* sysPass is free software: you can redistribute it and/or modify |
|
12
|
|
|
* it under the terms of the GNU General Public License as published by |
|
13
|
|
|
* the Free Software Foundation, either version 3 of the License, or |
|
14
|
|
|
* (at your option) any later version. |
|
15
|
|
|
* |
|
16
|
|
|
* sysPass is distributed in the hope that it will be useful, |
|
17
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19
|
|
|
* GNU General Public License for more details. |
|
20
|
|
|
* |
|
21
|
|
|
* You should have received a copy of the GNU General Public License |
|
22
|
|
|
* along with sysPass. If not, see <http://www.gnu.org/licenses/>. |
|
23
|
|
|
*/ |
|
24
|
|
|
|
|
25
|
|
|
namespace SP\Config; |
|
26
|
|
|
|
|
27
|
|
|
use JsonSerializable; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* Class configData |
|
31
|
|
|
* |
|
32
|
|
|
* @package SP\Config |
|
33
|
|
|
*/ |
|
34
|
|
|
final class ConfigData implements JsonSerializable |
|
35
|
|
|
{ |
|
36
|
|
|
/** |
|
37
|
|
|
* @var string |
|
38
|
|
|
*/ |
|
39
|
|
|
private $upgradeKey; |
|
40
|
|
|
/** |
|
41
|
|
|
* @var bool |
|
42
|
|
|
*/ |
|
43
|
|
|
private $dokuwikiEnabled = false; |
|
44
|
|
|
/** |
|
45
|
|
|
* @var string |
|
46
|
|
|
*/ |
|
47
|
|
|
private $dokuwikiUrl; |
|
48
|
|
|
/** |
|
49
|
|
|
* @var string |
|
50
|
|
|
*/ |
|
51
|
|
|
private $dokuwikiUrlBase; |
|
52
|
|
|
/** |
|
53
|
|
|
* @var string |
|
54
|
|
|
*/ |
|
55
|
|
|
private $dokuwikiUser; |
|
56
|
|
|
/** |
|
57
|
|
|
* @var string |
|
58
|
|
|
*/ |
|
59
|
|
|
private $dokuwikiPass; |
|
60
|
|
|
/** |
|
61
|
|
|
* @var string |
|
62
|
|
|
*/ |
|
63
|
|
|
private $dokuwikiNamespace; |
|
64
|
|
|
/** |
|
65
|
|
|
* @var int |
|
66
|
|
|
*/ |
|
67
|
|
|
private $ldapDefaultGroup; |
|
68
|
|
|
/** |
|
69
|
|
|
* @var int |
|
70
|
|
|
*/ |
|
71
|
|
|
private $ldapDefaultProfile; |
|
72
|
|
|
/** |
|
73
|
|
|
* @var bool |
|
74
|
|
|
*/ |
|
75
|
|
|
private $proxyEnabled = false; |
|
76
|
|
|
/** |
|
77
|
|
|
* @var string |
|
78
|
|
|
*/ |
|
79
|
|
|
private $proxyServer; |
|
80
|
|
|
/** |
|
81
|
|
|
* @var int |
|
82
|
|
|
*/ |
|
83
|
|
|
private $proxyPort = 8080; |
|
84
|
|
|
/** |
|
85
|
|
|
* @var string |
|
86
|
|
|
*/ |
|
87
|
|
|
private $proxyUser; |
|
88
|
|
|
/** |
|
89
|
|
|
* @var string |
|
90
|
|
|
*/ |
|
91
|
|
|
private $proxyPass; |
|
92
|
|
|
/** |
|
93
|
|
|
* @var int |
|
94
|
|
|
*/ |
|
95
|
|
|
private $publinksMaxViews = 3; |
|
96
|
|
|
/** |
|
97
|
|
|
* @var int |
|
98
|
|
|
*/ |
|
99
|
|
|
private $publinksMaxTime = 600; |
|
100
|
|
|
/** |
|
101
|
|
|
* @var bool |
|
102
|
|
|
*/ |
|
103
|
|
|
private $publinksEnabled = false; |
|
104
|
|
|
/** |
|
105
|
|
|
* @var int |
|
106
|
|
|
*/ |
|
107
|
|
|
private $accountCount = 12; |
|
108
|
|
|
/** |
|
109
|
|
|
* @var bool |
|
110
|
|
|
*/ |
|
111
|
|
|
private $accountLink = true; |
|
112
|
|
|
/** |
|
113
|
|
|
* @var bool |
|
114
|
|
|
*/ |
|
115
|
|
|
private $checkUpdates = false; |
|
116
|
|
|
/** |
|
117
|
|
|
* @var bool |
|
118
|
|
|
*/ |
|
119
|
|
|
private $checknotices = false; |
|
120
|
|
|
/** |
|
121
|
|
|
* @var string |
|
122
|
|
|
*/ |
|
123
|
|
|
private $configHash; |
|
124
|
|
|
/** |
|
125
|
|
|
* @var string |
|
126
|
|
|
*/ |
|
127
|
|
|
private $dbHost; |
|
128
|
|
|
/** |
|
129
|
|
|
* @var string |
|
130
|
|
|
*/ |
|
131
|
|
|
private $dbSocket; |
|
132
|
|
|
/** |
|
133
|
|
|
* @var string |
|
134
|
|
|
*/ |
|
135
|
|
|
private $dbName; |
|
136
|
|
|
/** |
|
137
|
|
|
* @var string |
|
138
|
|
|
*/ |
|
139
|
|
|
private $dbPass; |
|
140
|
|
|
/** |
|
141
|
|
|
* @var string |
|
142
|
|
|
*/ |
|
143
|
|
|
private $dbUser; |
|
144
|
|
|
/** |
|
145
|
|
|
* @var int |
|
146
|
|
|
*/ |
|
147
|
|
|
private $dbPort = 3306; |
|
148
|
|
|
/** |
|
149
|
|
|
* @var bool |
|
150
|
|
|
*/ |
|
151
|
|
|
private $debug = false; |
|
152
|
|
|
/** |
|
153
|
|
|
* @var bool |
|
154
|
|
|
*/ |
|
155
|
|
|
private $demoEnabled = false; |
|
156
|
|
|
/** |
|
157
|
|
|
* @var array |
|
158
|
|
|
*/ |
|
159
|
|
|
private $filesAllowedExts = []; |
|
160
|
|
|
/** |
|
161
|
|
|
* @var array |
|
162
|
|
|
*/ |
|
163
|
|
|
private $filesAllowedMime = []; |
|
164
|
|
|
/** |
|
165
|
|
|
* @var int |
|
166
|
|
|
*/ |
|
167
|
|
|
private $filesAllowedSize = 1024; |
|
168
|
|
|
/** |
|
169
|
|
|
* @var bool |
|
170
|
|
|
*/ |
|
171
|
|
|
private $filesEnabled = true; |
|
172
|
|
|
/** |
|
173
|
|
|
* @var bool |
|
174
|
|
|
*/ |
|
175
|
|
|
private $globalSearch = true; |
|
176
|
|
|
/** |
|
177
|
|
|
* @var bool |
|
178
|
|
|
*/ |
|
179
|
|
|
private $installed = false; |
|
180
|
|
|
/** |
|
181
|
|
|
* @var string |
|
182
|
|
|
*/ |
|
183
|
|
|
private $ldapBase; |
|
184
|
|
|
/** |
|
185
|
|
|
* @var string |
|
186
|
|
|
*/ |
|
187
|
|
|
private $ldapBindUser; |
|
188
|
|
|
/** |
|
189
|
|
|
* @var string |
|
190
|
|
|
*/ |
|
191
|
|
|
private $ldapBindPass; |
|
192
|
|
|
/** |
|
193
|
|
|
* @var string |
|
194
|
|
|
*/ |
|
195
|
|
|
private $ldapProxyUser; |
|
196
|
|
|
/** |
|
197
|
|
|
* @var bool |
|
198
|
|
|
*/ |
|
199
|
|
|
private $ldapEnabled = false; |
|
200
|
|
|
/** |
|
201
|
|
|
* @var bool |
|
202
|
|
|
*/ |
|
203
|
|
|
private $ldapAds = false; |
|
204
|
|
|
/** |
|
205
|
|
|
* @var int |
|
206
|
|
|
*/ |
|
207
|
|
|
private $ldapType; |
|
208
|
|
|
/** |
|
209
|
|
|
* @var string |
|
210
|
|
|
*/ |
|
211
|
|
|
private $ldapGroup; |
|
212
|
|
|
/** |
|
213
|
|
|
* @var string |
|
214
|
|
|
*/ |
|
215
|
|
|
private $ldapServer; |
|
216
|
|
|
/** |
|
217
|
|
|
* @var bool |
|
218
|
|
|
*/ |
|
219
|
|
|
private $logEnabled = true; |
|
220
|
|
|
/** |
|
221
|
|
|
* @var array |
|
222
|
|
|
*/ |
|
223
|
|
|
private $logEvents = []; |
|
224
|
|
|
/** |
|
225
|
|
|
* @var bool |
|
226
|
|
|
*/ |
|
227
|
|
|
private $mailAuthenabled = false; |
|
228
|
|
|
/** |
|
229
|
|
|
* @var bool |
|
230
|
|
|
*/ |
|
231
|
|
|
private $mailEnabled = false; |
|
232
|
|
|
/** |
|
233
|
|
|
* @var string |
|
234
|
|
|
*/ |
|
235
|
|
|
private $mailFrom; |
|
236
|
|
|
/** |
|
237
|
|
|
* @var string |
|
238
|
|
|
*/ |
|
239
|
|
|
private $mailPass; |
|
240
|
|
|
/** |
|
241
|
|
|
* @var int |
|
242
|
|
|
*/ |
|
243
|
|
|
private $mailPort = 25; |
|
244
|
|
|
/** |
|
245
|
|
|
* @var bool |
|
246
|
|
|
*/ |
|
247
|
|
|
private $mailRequestsEnabled = false; |
|
248
|
|
|
/** |
|
249
|
|
|
* @var string |
|
250
|
|
|
*/ |
|
251
|
|
|
private $mailSecurity; |
|
252
|
|
|
/** |
|
253
|
|
|
* @var string |
|
254
|
|
|
*/ |
|
255
|
|
|
private $mailServer; |
|
256
|
|
|
/** |
|
257
|
|
|
* @var string |
|
258
|
|
|
*/ |
|
259
|
|
|
private $mailUser; |
|
260
|
|
|
/** |
|
261
|
|
|
* @var array |
|
262
|
|
|
*/ |
|
263
|
|
|
private $mailRecipients = []; |
|
264
|
|
|
/** |
|
265
|
|
|
* @var array |
|
266
|
|
|
*/ |
|
267
|
|
|
private $mailEvents = []; |
|
268
|
|
|
/** |
|
269
|
|
|
* @var bool |
|
270
|
|
|
*/ |
|
271
|
|
|
private $maintenance = false; |
|
272
|
|
|
/** |
|
273
|
|
|
* @var string |
|
274
|
|
|
*/ |
|
275
|
|
|
private $passwordSalt; |
|
276
|
|
|
/** |
|
277
|
|
|
* @var bool |
|
278
|
|
|
*/ |
|
279
|
|
|
private $resultsAsCards = false; |
|
280
|
|
|
/** |
|
281
|
|
|
* @var int |
|
282
|
|
|
*/ |
|
283
|
|
|
private $sessionTimeout = 300; |
|
284
|
|
|
/** |
|
285
|
|
|
* @var string |
|
286
|
|
|
*/ |
|
287
|
|
|
private $siteLang; |
|
288
|
|
|
/** |
|
289
|
|
|
* @var string |
|
290
|
|
|
*/ |
|
291
|
|
|
private $siteTheme = 'material-blue'; |
|
292
|
|
|
/** |
|
293
|
|
|
* @var string |
|
294
|
|
|
*/ |
|
295
|
|
|
private $configVersion; |
|
296
|
|
|
/** |
|
297
|
|
|
* @var string |
|
298
|
|
|
*/ |
|
299
|
|
|
private $appVersion; |
|
300
|
|
|
/** |
|
301
|
|
|
* @var string |
|
302
|
|
|
*/ |
|
303
|
|
|
private $databaseVersion; |
|
304
|
|
|
/** |
|
305
|
|
|
* @var bool |
|
306
|
|
|
*/ |
|
307
|
|
|
private $wikiEnabled = false; |
|
308
|
|
|
/** |
|
309
|
|
|
* @var array |
|
310
|
|
|
*/ |
|
311
|
|
|
private $wikiFilter = []; |
|
312
|
|
|
/** |
|
313
|
|
|
* @var string |
|
314
|
|
|
*/ |
|
315
|
|
|
private $wikiPageurl; |
|
316
|
|
|
/** |
|
317
|
|
|
* @var string |
|
318
|
|
|
*/ |
|
319
|
|
|
private $wikiSearchurl; |
|
320
|
|
|
/** |
|
321
|
|
|
* @var int |
|
322
|
|
|
*/ |
|
323
|
|
|
private $configDate = 0; |
|
324
|
|
|
/** |
|
325
|
|
|
* @var bool |
|
326
|
|
|
*/ |
|
327
|
|
|
private $publinksImageEnabled = false; |
|
328
|
|
|
/** |
|
329
|
|
|
* @var string |
|
330
|
|
|
*/ |
|
331
|
|
|
private $backup_hash; |
|
332
|
|
|
/** |
|
333
|
|
|
* @var string |
|
334
|
|
|
*/ |
|
335
|
|
|
private $export_hash; |
|
336
|
|
|
/** |
|
337
|
|
|
* @var bool |
|
338
|
|
|
*/ |
|
339
|
|
|
private $httpsEnabled = false; |
|
340
|
|
|
/** |
|
341
|
|
|
* @var bool |
|
342
|
|
|
*/ |
|
343
|
|
|
private $syslogEnabled = false; |
|
344
|
|
|
/** |
|
345
|
|
|
* @var bool |
|
346
|
|
|
*/ |
|
347
|
|
|
private $syslogRemoteEnabled = false; |
|
348
|
|
|
/** |
|
349
|
|
|
* @var string |
|
350
|
|
|
*/ |
|
351
|
|
|
private $syslogServer; |
|
352
|
|
|
/** |
|
353
|
|
|
* @var int |
|
354
|
|
|
*/ |
|
355
|
|
|
private $syslogPort = 514; |
|
356
|
|
|
/** |
|
357
|
|
|
* @var bool |
|
358
|
|
|
*/ |
|
359
|
|
|
private $accountPassToImage = false; |
|
360
|
|
|
/** |
|
361
|
|
|
* @var string |
|
362
|
|
|
*/ |
|
363
|
|
|
private $configSaver; |
|
364
|
|
|
/** |
|
365
|
|
|
* @var bool |
|
366
|
|
|
*/ |
|
367
|
|
|
private $encryptSession = false; |
|
368
|
|
|
/** |
|
369
|
|
|
* @var bool |
|
370
|
|
|
*/ |
|
371
|
|
|
private $accountFullGroupAccess = false; |
|
372
|
|
|
/** |
|
373
|
|
|
* @var bool |
|
374
|
|
|
*/ |
|
375
|
|
|
private $authBasicEnabled = true; |
|
376
|
|
|
/** |
|
377
|
|
|
* @var bool |
|
378
|
|
|
*/ |
|
379
|
|
|
private $authBasicAutoLoginEnabled = true; |
|
380
|
|
|
/** |
|
381
|
|
|
* @var string |
|
382
|
|
|
*/ |
|
383
|
|
|
private $authBasicDomain; |
|
384
|
|
|
/** |
|
385
|
|
|
* @var int |
|
386
|
|
|
*/ |
|
387
|
|
|
private $ssoDefaultGroup; |
|
388
|
|
|
/** |
|
389
|
|
|
* @var int |
|
390
|
|
|
*/ |
|
391
|
|
|
private $ssoDefaultProfile; |
|
392
|
|
|
/** |
|
393
|
|
|
* @var bool |
|
394
|
|
|
*/ |
|
395
|
|
|
private $accountExpireEnabled = false; |
|
396
|
|
|
/** |
|
397
|
|
|
* @var int |
|
398
|
|
|
*/ |
|
399
|
|
|
private $accountExpireTime = 10368000; |
|
400
|
|
|
/** |
|
401
|
|
|
* @var bool |
|
402
|
|
|
*/ |
|
403
|
|
|
private $ldapTlsEnabled = false; |
|
404
|
|
|
|
|
405
|
|
|
/** |
|
406
|
|
|
* @return array |
|
407
|
|
|
*/ |
|
408
|
|
|
public function getLogEvents() |
|
409
|
|
|
{ |
|
410
|
|
|
return is_array($this->logEvents) ? $this->logEvents : []; |
|
|
|
|
|
|
411
|
|
|
} |
|
412
|
|
|
|
|
413
|
|
|
/** |
|
414
|
|
|
* @param array $logEvents |
|
415
|
|
|
*/ |
|
416
|
|
|
public function setLogEvents(array $logEvents) |
|
417
|
|
|
{ |
|
418
|
|
|
$this->logEvents = $logEvents; |
|
419
|
|
|
} |
|
420
|
|
|
|
|
421
|
|
|
/** |
|
422
|
|
|
* @return boolean |
|
423
|
|
|
*/ |
|
424
|
|
|
public function isDokuwikiEnabled() |
|
425
|
|
|
{ |
|
426
|
|
|
return $this->dokuwikiEnabled; |
|
427
|
|
|
} |
|
428
|
|
|
|
|
429
|
|
|
/** |
|
430
|
|
|
* @param boolean $dokuwikiEnabled |
|
431
|
|
|
* |
|
432
|
|
|
* @return $this |
|
433
|
|
|
*/ |
|
434
|
|
|
public function setDokuwikiEnabled($dokuwikiEnabled) |
|
435
|
|
|
{ |
|
436
|
|
|
$this->dokuwikiEnabled = (bool)$dokuwikiEnabled; |
|
437
|
|
|
|
|
438
|
|
|
return $this; |
|
439
|
|
|
} |
|
440
|
|
|
|
|
441
|
|
|
/** |
|
442
|
|
|
* @return string |
|
443
|
|
|
*/ |
|
444
|
|
|
public function getDokuwikiUrl() |
|
445
|
|
|
{ |
|
446
|
|
|
return $this->dokuwikiUrl; |
|
447
|
|
|
} |
|
448
|
|
|
|
|
449
|
|
|
/** |
|
450
|
|
|
* @param string $dokuwikiUrl |
|
451
|
|
|
* |
|
452
|
|
|
* @return $this |
|
453
|
|
|
*/ |
|
454
|
|
|
public function setDokuwikiUrl($dokuwikiUrl) |
|
455
|
|
|
{ |
|
456
|
|
|
$this->dokuwikiUrl = $dokuwikiUrl; |
|
457
|
|
|
|
|
458
|
|
|
return $this; |
|
459
|
|
|
} |
|
460
|
|
|
|
|
461
|
|
|
/** |
|
462
|
|
|
* @return string |
|
463
|
|
|
*/ |
|
464
|
|
|
public function getDokuwikiUrlBase() |
|
465
|
|
|
{ |
|
466
|
|
|
return $this->dokuwikiUrlBase; |
|
467
|
|
|
} |
|
468
|
|
|
|
|
469
|
|
|
/** |
|
470
|
|
|
* @param string $dokuwikiUrlBase |
|
471
|
|
|
* |
|
472
|
|
|
* @return $this |
|
473
|
|
|
*/ |
|
474
|
|
|
public function setDokuwikiUrlBase($dokuwikiUrlBase) |
|
475
|
|
|
{ |
|
476
|
|
|
$this->dokuwikiUrlBase = $dokuwikiUrlBase; |
|
477
|
|
|
|
|
478
|
|
|
return $this; |
|
479
|
|
|
} |
|
480
|
|
|
|
|
481
|
|
|
/** |
|
482
|
|
|
* @return string |
|
483
|
|
|
*/ |
|
484
|
|
|
public function getDokuwikiUser() |
|
485
|
|
|
{ |
|
486
|
|
|
return $this->dokuwikiUser; |
|
487
|
|
|
} |
|
488
|
|
|
|
|
489
|
|
|
/** |
|
490
|
|
|
* @param string $dokuwikiUser |
|
491
|
|
|
* |
|
492
|
|
|
* @return $this |
|
493
|
|
|
*/ |
|
494
|
|
|
public function setDokuwikiUser($dokuwikiUser) |
|
495
|
|
|
{ |
|
496
|
|
|
$this->dokuwikiUser = $dokuwikiUser; |
|
497
|
|
|
|
|
498
|
|
|
return $this; |
|
499
|
|
|
} |
|
500
|
|
|
|
|
501
|
|
|
/** |
|
502
|
|
|
* @return string |
|
503
|
|
|
*/ |
|
504
|
|
|
public function getDokuwikiPass() |
|
505
|
|
|
{ |
|
506
|
|
|
return $this->dokuwikiPass; |
|
507
|
|
|
} |
|
508
|
|
|
|
|
509
|
|
|
/** |
|
510
|
|
|
* @param string $dokuwikiPass |
|
511
|
|
|
* |
|
512
|
|
|
* @return $this |
|
513
|
|
|
*/ |
|
514
|
|
|
public function setDokuwikiPass($dokuwikiPass) |
|
515
|
|
|
{ |
|
516
|
|
|
$this->dokuwikiPass = $dokuwikiPass; |
|
517
|
|
|
|
|
518
|
|
|
return $this; |
|
519
|
|
|
} |
|
520
|
|
|
|
|
521
|
|
|
/** |
|
522
|
|
|
* @return string |
|
523
|
|
|
*/ |
|
524
|
|
|
public function getDokuwikiNamespace() |
|
525
|
|
|
{ |
|
526
|
|
|
return $this->dokuwikiNamespace; |
|
527
|
|
|
} |
|
528
|
|
|
|
|
529
|
|
|
/** |
|
530
|
|
|
* @param string $dokuwikiNamespace |
|
531
|
|
|
* |
|
532
|
|
|
* @return $this |
|
533
|
|
|
*/ |
|
534
|
|
|
public function setDokuwikiNamespace($dokuwikiNamespace) |
|
535
|
|
|
{ |
|
536
|
|
|
$this->dokuwikiNamespace = $dokuwikiNamespace; |
|
537
|
|
|
|
|
538
|
|
|
return $this; |
|
539
|
|
|
} |
|
540
|
|
|
|
|
541
|
|
|
/** |
|
542
|
|
|
* @return int |
|
543
|
|
|
*/ |
|
544
|
|
|
public function getLdapDefaultGroup() |
|
545
|
|
|
{ |
|
546
|
|
|
return (int)$this->ldapDefaultGroup; |
|
547
|
|
|
} |
|
548
|
|
|
|
|
549
|
|
|
/** |
|
550
|
|
|
* @param int $ldapDefaultGroup |
|
551
|
|
|
* |
|
552
|
|
|
* @return $this |
|
553
|
|
|
*/ |
|
554
|
|
|
public function setLdapDefaultGroup($ldapDefaultGroup) |
|
555
|
|
|
{ |
|
556
|
|
|
$this->ldapDefaultGroup = (int)$ldapDefaultGroup; |
|
557
|
|
|
|
|
558
|
|
|
return $this; |
|
559
|
|
|
} |
|
560
|
|
|
|
|
561
|
|
|
/** |
|
562
|
|
|
* @return int |
|
563
|
|
|
*/ |
|
564
|
|
|
public function getLdapDefaultProfile() |
|
565
|
|
|
{ |
|
566
|
|
|
return (int)$this->ldapDefaultProfile; |
|
567
|
|
|
} |
|
568
|
|
|
|
|
569
|
|
|
/** |
|
570
|
|
|
* @param int $ldapDefaultProfile |
|
571
|
|
|
* |
|
572
|
|
|
* @return $this |
|
573
|
|
|
*/ |
|
574
|
|
|
public function setLdapDefaultProfile($ldapDefaultProfile) |
|
575
|
|
|
{ |
|
576
|
|
|
$this->ldapDefaultProfile = (int)$ldapDefaultProfile; |
|
577
|
|
|
|
|
578
|
|
|
return $this; |
|
579
|
|
|
} |
|
580
|
|
|
|
|
581
|
|
|
/** |
|
582
|
|
|
* @return boolean |
|
583
|
|
|
*/ |
|
584
|
|
|
public function isProxyEnabled() |
|
585
|
|
|
{ |
|
586
|
|
|
return $this->proxyEnabled; |
|
587
|
|
|
} |
|
588
|
|
|
|
|
589
|
|
|
/** |
|
590
|
|
|
* @param boolean $proxyEnabled |
|
591
|
|
|
* |
|
592
|
|
|
* @return $this |
|
593
|
|
|
*/ |
|
594
|
|
|
public function setProxyEnabled($proxyEnabled) |
|
595
|
|
|
{ |
|
596
|
|
|
$this->proxyEnabled = (bool)$proxyEnabled; |
|
597
|
|
|
|
|
598
|
|
|
return $this; |
|
599
|
|
|
} |
|
600
|
|
|
|
|
601
|
|
|
/** |
|
602
|
|
|
* @return string |
|
603
|
|
|
*/ |
|
604
|
|
|
public function getProxyServer() |
|
605
|
|
|
{ |
|
606
|
|
|
return $this->proxyServer; |
|
607
|
|
|
} |
|
608
|
|
|
|
|
609
|
|
|
/** |
|
610
|
|
|
* @param string $proxyServer |
|
611
|
|
|
* |
|
612
|
|
|
* @return $this |
|
613
|
|
|
*/ |
|
614
|
|
|
public function setProxyServer($proxyServer) |
|
615
|
|
|
{ |
|
616
|
|
|
$this->proxyServer = $proxyServer; |
|
617
|
|
|
|
|
618
|
|
|
return $this; |
|
619
|
|
|
} |
|
620
|
|
|
|
|
621
|
|
|
/** |
|
622
|
|
|
* @return int |
|
623
|
|
|
*/ |
|
624
|
|
|
public function getProxyPort() |
|
625
|
|
|
{ |
|
626
|
|
|
return $this->proxyPort; |
|
627
|
|
|
} |
|
628
|
|
|
|
|
629
|
|
|
/** |
|
630
|
|
|
* @param int $proxyPort |
|
631
|
|
|
* |
|
632
|
|
|
* @return $this |
|
633
|
|
|
*/ |
|
634
|
|
|
public function setProxyPort($proxyPort) |
|
635
|
|
|
{ |
|
636
|
|
|
$this->proxyPort = (int)$proxyPort; |
|
637
|
|
|
|
|
638
|
|
|
return $this; |
|
639
|
|
|
} |
|
640
|
|
|
|
|
641
|
|
|
/** |
|
642
|
|
|
* @return string |
|
643
|
|
|
*/ |
|
644
|
|
|
public function getProxyUser() |
|
645
|
|
|
{ |
|
646
|
|
|
return $this->proxyUser; |
|
647
|
|
|
} |
|
648
|
|
|
|
|
649
|
|
|
/** |
|
650
|
|
|
* @param string $proxyUser |
|
651
|
|
|
* |
|
652
|
|
|
* @return $this |
|
653
|
|
|
*/ |
|
654
|
|
|
public function setProxyUser($proxyUser) |
|
655
|
|
|
{ |
|
656
|
|
|
$this->proxyUser = $proxyUser; |
|
657
|
|
|
|
|
658
|
|
|
return $this; |
|
659
|
|
|
} |
|
660
|
|
|
|
|
661
|
|
|
/** |
|
662
|
|
|
* @return string |
|
663
|
|
|
*/ |
|
664
|
|
|
public function getProxyPass() |
|
665
|
|
|
{ |
|
666
|
|
|
return $this->proxyPass; |
|
667
|
|
|
} |
|
668
|
|
|
|
|
669
|
|
|
/** |
|
670
|
|
|
* @param string $proxyPass |
|
671
|
|
|
* |
|
672
|
|
|
* @return $this |
|
673
|
|
|
*/ |
|
674
|
|
|
public function setProxyPass($proxyPass) |
|
675
|
|
|
{ |
|
676
|
|
|
$this->proxyPass = $proxyPass; |
|
677
|
|
|
|
|
678
|
|
|
return $this; |
|
679
|
|
|
} |
|
680
|
|
|
|
|
681
|
|
|
/** |
|
682
|
|
|
* @return int |
|
683
|
|
|
*/ |
|
684
|
|
|
public function getPublinksMaxViews() |
|
685
|
|
|
{ |
|
686
|
|
|
return $this->publinksMaxViews; |
|
687
|
|
|
} |
|
688
|
|
|
|
|
689
|
|
|
|
|
690
|
|
|
/** |
|
691
|
|
|
* @param int $publinksMaxViews |
|
692
|
|
|
* |
|
693
|
|
|
* @return $this |
|
694
|
|
|
*/ |
|
695
|
|
|
public function setPublinksMaxViews($publinksMaxViews) |
|
696
|
|
|
{ |
|
697
|
|
|
$this->publinksMaxViews = (int)$publinksMaxViews; |
|
698
|
|
|
|
|
699
|
|
|
return $this; |
|
700
|
|
|
} |
|
701
|
|
|
|
|
702
|
|
|
/** |
|
703
|
|
|
* @return int |
|
704
|
|
|
*/ |
|
705
|
|
|
public function getPublinksMaxTime() |
|
706
|
|
|
{ |
|
707
|
|
|
return $this->publinksMaxTime; |
|
708
|
|
|
} |
|
709
|
|
|
|
|
710
|
|
|
/** |
|
711
|
|
|
* @param int $publinksMaxTime |
|
712
|
|
|
* |
|
713
|
|
|
* @return $this |
|
714
|
|
|
*/ |
|
715
|
|
|
public function setPublinksMaxTime($publinksMaxTime) |
|
716
|
|
|
{ |
|
717
|
|
|
$this->publinksMaxTime = (int)$publinksMaxTime; |
|
718
|
|
|
|
|
719
|
|
|
return $this; |
|
720
|
|
|
} |
|
721
|
|
|
|
|
722
|
|
|
/** |
|
723
|
|
|
* @return boolean |
|
724
|
|
|
*/ |
|
725
|
|
|
public function isSyslogEnabled() |
|
726
|
|
|
{ |
|
727
|
|
|
return $this->syslogEnabled; |
|
728
|
|
|
} |
|
729
|
|
|
|
|
730
|
|
|
/** |
|
731
|
|
|
* @param boolean $syslogEnabled |
|
732
|
|
|
* |
|
733
|
|
|
* @return $this |
|
734
|
|
|
*/ |
|
735
|
|
|
public function setSyslogEnabled($syslogEnabled) |
|
736
|
|
|
{ |
|
737
|
|
|
$this->syslogEnabled = (bool)$syslogEnabled; |
|
738
|
|
|
|
|
739
|
|
|
return $this; |
|
740
|
|
|
} |
|
741
|
|
|
|
|
742
|
|
|
/** |
|
743
|
|
|
* @return boolean |
|
744
|
|
|
*/ |
|
745
|
|
|
public function isSyslogRemoteEnabled() |
|
746
|
|
|
{ |
|
747
|
|
|
return $this->syslogRemoteEnabled; |
|
748
|
|
|
} |
|
749
|
|
|
|
|
750
|
|
|
/** |
|
751
|
|
|
* @param boolean $syslogRemoteEnabled |
|
752
|
|
|
* |
|
753
|
|
|
* @return $this |
|
754
|
|
|
*/ |
|
755
|
|
|
public function setSyslogRemoteEnabled($syslogRemoteEnabled) |
|
756
|
|
|
{ |
|
757
|
|
|
$this->syslogRemoteEnabled = (bool)$syslogRemoteEnabled; |
|
758
|
|
|
|
|
759
|
|
|
return $this; |
|
760
|
|
|
} |
|
761
|
|
|
|
|
762
|
|
|
/** |
|
763
|
|
|
* @return string |
|
764
|
|
|
*/ |
|
765
|
|
|
public function getSyslogServer() |
|
766
|
|
|
{ |
|
767
|
|
|
return $this->syslogServer; |
|
768
|
|
|
} |
|
769
|
|
|
|
|
770
|
|
|
/** |
|
771
|
|
|
* @param string $syslogServer |
|
772
|
|
|
* |
|
773
|
|
|
* @return $this |
|
774
|
|
|
*/ |
|
775
|
|
|
public function setSyslogServer($syslogServer) |
|
776
|
|
|
{ |
|
777
|
|
|
$this->syslogServer = $syslogServer; |
|
778
|
|
|
|
|
779
|
|
|
return $this; |
|
780
|
|
|
} |
|
781
|
|
|
|
|
782
|
|
|
/** |
|
783
|
|
|
* @return int |
|
784
|
|
|
*/ |
|
785
|
|
|
public function getSyslogPort() |
|
786
|
|
|
{ |
|
787
|
|
|
return $this->syslogPort; |
|
788
|
|
|
} |
|
789
|
|
|
|
|
790
|
|
|
/** |
|
791
|
|
|
* @param int $syslogPort |
|
792
|
|
|
* |
|
793
|
|
|
* @return $this |
|
794
|
|
|
*/ |
|
795
|
|
|
public function setSyslogPort($syslogPort) |
|
796
|
|
|
{ |
|
797
|
|
|
$this->syslogPort = (int)$syslogPort; |
|
798
|
|
|
|
|
799
|
|
|
return $this; |
|
800
|
|
|
} |
|
801
|
|
|
|
|
802
|
|
|
/** |
|
803
|
|
|
* @return string |
|
804
|
|
|
*/ |
|
805
|
|
|
public function getBackupHash() |
|
806
|
|
|
{ |
|
807
|
|
|
return $this->backup_hash; |
|
808
|
|
|
} |
|
809
|
|
|
|
|
810
|
|
|
/** |
|
811
|
|
|
* @param string $backup_hash |
|
812
|
|
|
* |
|
813
|
|
|
* @return $this |
|
814
|
|
|
*/ |
|
815
|
|
|
public function setBackupHash($backup_hash) |
|
816
|
|
|
{ |
|
817
|
|
|
$this->backup_hash = $backup_hash; |
|
818
|
|
|
|
|
819
|
|
|
return $this; |
|
820
|
|
|
} |
|
821
|
|
|
|
|
822
|
|
|
/** |
|
823
|
|
|
* @return string |
|
824
|
|
|
*/ |
|
825
|
|
|
public function getExportHash() |
|
826
|
|
|
{ |
|
827
|
|
|
return $this->export_hash; |
|
828
|
|
|
} |
|
829
|
|
|
|
|
830
|
|
|
/** |
|
831
|
|
|
* @param string $export_hash |
|
832
|
|
|
* |
|
833
|
|
|
* @return $this |
|
834
|
|
|
*/ |
|
835
|
|
|
public function setExportHash($export_hash) |
|
836
|
|
|
{ |
|
837
|
|
|
$this->export_hash = $export_hash; |
|
838
|
|
|
|
|
839
|
|
|
return $this; |
|
840
|
|
|
} |
|
841
|
|
|
|
|
842
|
|
|
/** |
|
843
|
|
|
* @return string |
|
844
|
|
|
*/ |
|
845
|
|
|
public function getLdapBindUser() |
|
846
|
|
|
{ |
|
847
|
|
|
return $this->ldapBindUser; |
|
848
|
|
|
} |
|
849
|
|
|
|
|
850
|
|
|
/** |
|
851
|
|
|
* @param string $ldapBindUser |
|
852
|
|
|
* |
|
853
|
|
|
* @return $this |
|
854
|
|
|
*/ |
|
855
|
|
|
public function setLdapBindUser($ldapBindUser) |
|
856
|
|
|
{ |
|
857
|
|
|
$this->ldapBindUser = $ldapBindUser; |
|
858
|
|
|
|
|
859
|
|
|
return $this; |
|
860
|
|
|
} |
|
861
|
|
|
|
|
862
|
|
|
/** |
|
863
|
|
|
* @return string |
|
864
|
|
|
*/ |
|
865
|
|
|
public function getLdapProxyUser() |
|
866
|
|
|
{ |
|
867
|
|
|
return $this->ldapProxyUser; |
|
868
|
|
|
} |
|
869
|
|
|
|
|
870
|
|
|
/** |
|
871
|
|
|
* @param string $ldapProxyUser |
|
872
|
|
|
* |
|
873
|
|
|
* @return $this |
|
874
|
|
|
*/ |
|
875
|
|
|
public function setLdapProxyUser($ldapProxyUser) |
|
876
|
|
|
{ |
|
877
|
|
|
$this->ldapProxyUser = $ldapProxyUser; |
|
878
|
|
|
|
|
879
|
|
|
return $this; |
|
880
|
|
|
} |
|
881
|
|
|
|
|
882
|
|
|
/** |
|
883
|
|
|
* @return int |
|
884
|
|
|
*/ |
|
885
|
|
|
public function getAccountCount() |
|
886
|
|
|
{ |
|
887
|
|
|
return $this->accountCount; |
|
888
|
|
|
} |
|
889
|
|
|
|
|
890
|
|
|
/** |
|
891
|
|
|
* @param int $accountCount |
|
892
|
|
|
* |
|
893
|
|
|
* @return $this |
|
894
|
|
|
*/ |
|
895
|
|
|
public function setAccountCount($accountCount) |
|
896
|
|
|
{ |
|
897
|
|
|
$this->accountCount = (int)$accountCount; |
|
898
|
|
|
|
|
899
|
|
|
return $this; |
|
900
|
|
|
} |
|
901
|
|
|
|
|
902
|
|
|
/** |
|
903
|
|
|
* @return boolean |
|
904
|
|
|
*/ |
|
905
|
|
|
public function isAccountLink() |
|
906
|
|
|
{ |
|
907
|
|
|
return $this->accountLink; |
|
908
|
|
|
} |
|
909
|
|
|
|
|
910
|
|
|
/** |
|
911
|
|
|
* @param boolean $accountLink |
|
912
|
|
|
* |
|
913
|
|
|
* @return $this |
|
914
|
|
|
*/ |
|
915
|
|
|
public function setAccountLink($accountLink) |
|
916
|
|
|
{ |
|
917
|
|
|
$this->accountLink = (bool)$accountLink; |
|
918
|
|
|
|
|
919
|
|
|
return $this; |
|
920
|
|
|
} |
|
921
|
|
|
|
|
922
|
|
|
/** |
|
923
|
|
|
* @return boolean |
|
924
|
|
|
*/ |
|
925
|
|
|
public function isCheckUpdates() |
|
926
|
|
|
{ |
|
927
|
|
|
return $this->checkUpdates; |
|
928
|
|
|
} |
|
929
|
|
|
|
|
930
|
|
|
/** |
|
931
|
|
|
* @param boolean $checkUpdates |
|
932
|
|
|
* |
|
933
|
|
|
* @return $this |
|
934
|
|
|
*/ |
|
935
|
|
|
public function setCheckUpdates($checkUpdates) |
|
936
|
|
|
{ |
|
937
|
|
|
$this->checkUpdates = (bool)$checkUpdates; |
|
938
|
|
|
|
|
939
|
|
|
return $this; |
|
940
|
|
|
} |
|
941
|
|
|
|
|
942
|
|
|
/** |
|
943
|
|
|
* @return string |
|
944
|
|
|
*/ |
|
945
|
|
|
public function getConfigHash() |
|
946
|
|
|
{ |
|
947
|
|
|
return $this->configHash; |
|
948
|
|
|
} |
|
949
|
|
|
|
|
950
|
|
|
/** |
|
951
|
|
|
* Generates a hash from current config options |
|
952
|
|
|
*/ |
|
953
|
|
|
public function setConfigHash() |
|
954
|
|
|
{ |
|
955
|
|
|
$this->configHash = sha1(serialize($this)); |
|
956
|
|
|
|
|
957
|
|
|
return $this; |
|
958
|
|
|
} |
|
959
|
|
|
|
|
960
|
|
|
/** |
|
961
|
|
|
* @return string |
|
962
|
|
|
*/ |
|
963
|
|
|
public function getDbHost() |
|
964
|
|
|
{ |
|
965
|
|
|
return $this->dbHost; |
|
966
|
|
|
} |
|
967
|
|
|
|
|
968
|
|
|
/** |
|
969
|
|
|
* @param string $dbHost |
|
970
|
|
|
* |
|
971
|
|
|
* @return $this |
|
972
|
|
|
*/ |
|
973
|
|
|
public function setDbHost($dbHost) |
|
974
|
|
|
{ |
|
975
|
|
|
$this->dbHost = $dbHost; |
|
976
|
|
|
|
|
977
|
|
|
return $this; |
|
978
|
|
|
} |
|
979
|
|
|
|
|
980
|
|
|
/** |
|
981
|
|
|
* @return string |
|
982
|
|
|
*/ |
|
983
|
|
|
public function getDbName() |
|
984
|
|
|
{ |
|
985
|
|
|
return $this->dbName; |
|
986
|
|
|
} |
|
987
|
|
|
|
|
988
|
|
|
/** |
|
989
|
|
|
* @param string $dbName |
|
990
|
|
|
* |
|
991
|
|
|
* @return $this |
|
992
|
|
|
*/ |
|
993
|
|
|
public function setDbName($dbName) |
|
994
|
|
|
{ |
|
995
|
|
|
$this->dbName = $dbName; |
|
996
|
|
|
|
|
997
|
|
|
return $this; |
|
998
|
|
|
} |
|
999
|
|
|
|
|
1000
|
|
|
/** |
|
1001
|
|
|
* @return string |
|
1002
|
|
|
*/ |
|
1003
|
|
|
public function getDbPass() |
|
1004
|
|
|
{ |
|
1005
|
|
|
return $this->dbPass; |
|
1006
|
|
|
} |
|
1007
|
|
|
|
|
1008
|
|
|
/** |
|
1009
|
|
|
* @param string $dbPass |
|
1010
|
|
|
* |
|
1011
|
|
|
* @return $this |
|
1012
|
|
|
*/ |
|
1013
|
|
|
public function setDbPass($dbPass) |
|
1014
|
|
|
{ |
|
1015
|
|
|
$this->dbPass = $dbPass; |
|
1016
|
|
|
|
|
1017
|
|
|
return $this; |
|
1018
|
|
|
} |
|
1019
|
|
|
|
|
1020
|
|
|
/** |
|
1021
|
|
|
* @return string |
|
1022
|
|
|
*/ |
|
1023
|
|
|
public function getDbUser() |
|
1024
|
|
|
{ |
|
1025
|
|
|
return $this->dbUser; |
|
1026
|
|
|
} |
|
1027
|
|
|
|
|
1028
|
|
|
/** |
|
1029
|
|
|
* @param string $dbUser |
|
1030
|
|
|
* |
|
1031
|
|
|
* @return $this |
|
1032
|
|
|
*/ |
|
1033
|
|
|
public function setDbUser($dbUser) |
|
1034
|
|
|
{ |
|
1035
|
|
|
$this->dbUser = $dbUser; |
|
1036
|
|
|
|
|
1037
|
|
|
return $this; |
|
1038
|
|
|
} |
|
1039
|
|
|
|
|
1040
|
|
|
/** |
|
1041
|
|
|
* @return boolean |
|
1042
|
|
|
*/ |
|
1043
|
|
|
public function isDebug() |
|
1044
|
|
|
{ |
|
1045
|
|
|
return $this->debug; |
|
1046
|
|
|
} |
|
1047
|
|
|
|
|
1048
|
|
|
/** |
|
1049
|
|
|
* @param boolean $debug |
|
1050
|
|
|
* |
|
1051
|
|
|
* @return $this |
|
1052
|
|
|
*/ |
|
1053
|
|
|
public function setDebug($debug) |
|
1054
|
|
|
{ |
|
1055
|
|
|
$this->debug = (bool)$debug; |
|
1056
|
|
|
|
|
1057
|
|
|
return $this; |
|
1058
|
|
|
} |
|
1059
|
|
|
|
|
1060
|
|
|
/** |
|
1061
|
|
|
* @return boolean |
|
1062
|
|
|
*/ |
|
1063
|
|
|
public function isDemoEnabled() |
|
1064
|
|
|
{ |
|
1065
|
|
|
return $this->demoEnabled; |
|
1066
|
|
|
} |
|
1067
|
|
|
|
|
1068
|
|
|
/** |
|
1069
|
|
|
* @param boolean $demoEnabled |
|
1070
|
|
|
* |
|
1071
|
|
|
* @return $this |
|
1072
|
|
|
*/ |
|
1073
|
|
|
public function setDemoEnabled($demoEnabled) |
|
1074
|
|
|
{ |
|
1075
|
|
|
$this->demoEnabled = (bool)$demoEnabled; |
|
1076
|
|
|
|
|
1077
|
|
|
return $this; |
|
1078
|
|
|
} |
|
1079
|
|
|
|
|
1080
|
|
|
/** |
|
1081
|
|
|
* @return array |
|
1082
|
|
|
*/ |
|
1083
|
|
|
public function getFilesAllowedExts() |
|
1084
|
|
|
{ |
|
1085
|
|
|
return (array)$this->filesAllowedExts; |
|
1086
|
|
|
} |
|
1087
|
|
|
|
|
1088
|
|
|
/** |
|
1089
|
|
|
* @return int |
|
1090
|
|
|
*/ |
|
1091
|
|
|
public function getFilesAllowedSize() |
|
1092
|
|
|
{ |
|
1093
|
|
|
return $this->filesAllowedSize; |
|
1094
|
|
|
} |
|
1095
|
|
|
|
|
1096
|
|
|
/** |
|
1097
|
|
|
* @param int $filesAllowedSize |
|
1098
|
|
|
* |
|
1099
|
|
|
* @return $this |
|
1100
|
|
|
*/ |
|
1101
|
|
|
public function setFilesAllowedSize($filesAllowedSize) |
|
1102
|
|
|
{ |
|
1103
|
|
|
$this->filesAllowedSize = (int)$filesAllowedSize; |
|
1104
|
|
|
|
|
1105
|
|
|
return $this; |
|
1106
|
|
|
} |
|
1107
|
|
|
|
|
1108
|
|
|
/** |
|
1109
|
|
|
* @return boolean |
|
1110
|
|
|
*/ |
|
1111
|
|
|
public function isFilesEnabled() |
|
1112
|
|
|
{ |
|
1113
|
|
|
return $this->filesEnabled; |
|
1114
|
|
|
} |
|
1115
|
|
|
|
|
1116
|
|
|
/** |
|
1117
|
|
|
* @param boolean $filesEnabled |
|
1118
|
|
|
* |
|
1119
|
|
|
* @return $this |
|
1120
|
|
|
*/ |
|
1121
|
|
|
public function setFilesEnabled($filesEnabled) |
|
1122
|
|
|
{ |
|
1123
|
|
|
$this->filesEnabled = (bool)$filesEnabled; |
|
1124
|
|
|
|
|
1125
|
|
|
return $this; |
|
1126
|
|
|
} |
|
1127
|
|
|
|
|
1128
|
|
|
/** |
|
1129
|
|
|
* @return boolean |
|
1130
|
|
|
*/ |
|
1131
|
|
|
public function isGlobalSearch() |
|
1132
|
|
|
{ |
|
1133
|
|
|
return $this->globalSearch; |
|
1134
|
|
|
} |
|
1135
|
|
|
|
|
1136
|
|
|
/** |
|
1137
|
|
|
* @param boolean $globalSearch |
|
1138
|
|
|
* |
|
1139
|
|
|
* @return $this |
|
1140
|
|
|
*/ |
|
1141
|
|
|
public function setGlobalSearch($globalSearch) |
|
1142
|
|
|
{ |
|
1143
|
|
|
$this->globalSearch = (bool)$globalSearch; |
|
1144
|
|
|
|
|
1145
|
|
|
return $this; |
|
1146
|
|
|
} |
|
1147
|
|
|
|
|
1148
|
|
|
/** |
|
1149
|
|
|
* @return boolean |
|
1150
|
|
|
*/ |
|
1151
|
|
|
public function isInstalled() |
|
1152
|
|
|
{ |
|
1153
|
|
|
return $this->installed; |
|
1154
|
|
|
} |
|
1155
|
|
|
|
|
1156
|
|
|
/** |
|
1157
|
|
|
* @param boolean $installed |
|
1158
|
|
|
* |
|
1159
|
|
|
* @return $this |
|
1160
|
|
|
*/ |
|
1161
|
|
|
public function setInstalled($installed) |
|
1162
|
|
|
{ |
|
1163
|
|
|
$this->installed = (bool)$installed; |
|
1164
|
|
|
|
|
1165
|
|
|
return $this; |
|
1166
|
|
|
} |
|
1167
|
|
|
|
|
1168
|
|
|
/** |
|
1169
|
|
|
* @return string |
|
1170
|
|
|
*/ |
|
1171
|
|
|
public function getLdapBase() |
|
1172
|
|
|
{ |
|
1173
|
|
|
return $this->ldapBase; |
|
1174
|
|
|
} |
|
1175
|
|
|
|
|
1176
|
|
|
/** |
|
1177
|
|
|
* @param string $ldapBase |
|
1178
|
|
|
* |
|
1179
|
|
|
* @return $this |
|
1180
|
|
|
*/ |
|
1181
|
|
|
public function setLdapBase($ldapBase) |
|
1182
|
|
|
{ |
|
1183
|
|
|
$this->ldapBase = $ldapBase; |
|
1184
|
|
|
|
|
1185
|
|
|
return $this; |
|
1186
|
|
|
} |
|
1187
|
|
|
|
|
1188
|
|
|
/** |
|
1189
|
|
|
* @return boolean |
|
1190
|
|
|
*/ |
|
1191
|
|
|
public function isLdapEnabled() |
|
1192
|
|
|
{ |
|
1193
|
|
|
return $this->ldapEnabled; |
|
1194
|
|
|
} |
|
1195
|
|
|
|
|
1196
|
|
|
/** |
|
1197
|
|
|
* @param boolean $ldapEnabled |
|
1198
|
|
|
* |
|
1199
|
|
|
* @return $this |
|
1200
|
|
|
*/ |
|
1201
|
|
|
public function setLdapEnabled($ldapEnabled) |
|
1202
|
|
|
{ |
|
1203
|
|
|
$this->ldapEnabled = (bool)$ldapEnabled; |
|
1204
|
|
|
|
|
1205
|
|
|
return $this; |
|
1206
|
|
|
} |
|
1207
|
|
|
|
|
1208
|
|
|
/** |
|
1209
|
|
|
* @return string |
|
1210
|
|
|
*/ |
|
1211
|
|
|
public function getLdapGroup() |
|
1212
|
|
|
{ |
|
1213
|
|
|
return $this->ldapGroup; |
|
1214
|
|
|
} |
|
1215
|
|
|
|
|
1216
|
|
|
/** |
|
1217
|
|
|
* @param string $ldapGroup |
|
1218
|
|
|
* |
|
1219
|
|
|
* @return $this |
|
1220
|
|
|
*/ |
|
1221
|
|
|
public function setLdapGroup($ldapGroup) |
|
1222
|
|
|
{ |
|
1223
|
|
|
$this->ldapGroup = $ldapGroup; |
|
1224
|
|
|
|
|
1225
|
|
|
return $this; |
|
1226
|
|
|
} |
|
1227
|
|
|
|
|
1228
|
|
|
/** |
|
1229
|
|
|
* @return string |
|
1230
|
|
|
*/ |
|
1231
|
|
|
public function getLdapServer() |
|
1232
|
|
|
{ |
|
1233
|
|
|
return $this->ldapServer; |
|
1234
|
|
|
} |
|
1235
|
|
|
|
|
1236
|
|
|
/** |
|
1237
|
|
|
* @param string $ldapServer |
|
1238
|
|
|
* |
|
1239
|
|
|
* @return $this |
|
1240
|
|
|
*/ |
|
1241
|
|
|
public function setLdapServer($ldapServer) |
|
1242
|
|
|
{ |
|
1243
|
|
|
$this->ldapServer = $ldapServer; |
|
1244
|
|
|
|
|
1245
|
|
|
return $this; |
|
1246
|
|
|
} |
|
1247
|
|
|
|
|
1248
|
|
|
/** |
|
1249
|
|
|
* @return boolean |
|
1250
|
|
|
*/ |
|
1251
|
|
|
public function isLogEnabled() |
|
1252
|
|
|
{ |
|
1253
|
|
|
return $this->logEnabled; |
|
1254
|
|
|
} |
|
1255
|
|
|
|
|
1256
|
|
|
/** |
|
1257
|
|
|
* @param boolean $logEnabled |
|
1258
|
|
|
* |
|
1259
|
|
|
* @return $this |
|
1260
|
|
|
*/ |
|
1261
|
|
|
public function setLogEnabled($logEnabled) |
|
1262
|
|
|
{ |
|
1263
|
|
|
$this->logEnabled = (bool)$logEnabled; |
|
1264
|
|
|
|
|
1265
|
|
|
return $this; |
|
1266
|
|
|
} |
|
1267
|
|
|
|
|
1268
|
|
|
/** |
|
1269
|
|
|
* @return boolean |
|
1270
|
|
|
*/ |
|
1271
|
|
|
public function isMailAuthenabled() |
|
1272
|
|
|
{ |
|
1273
|
|
|
return $this->mailAuthenabled; |
|
1274
|
|
|
} |
|
1275
|
|
|
|
|
1276
|
|
|
/** |
|
1277
|
|
|
* @param boolean $mailAuthenabled |
|
1278
|
|
|
* |
|
1279
|
|
|
* @return $this |
|
1280
|
|
|
*/ |
|
1281
|
|
|
public function setMailAuthenabled($mailAuthenabled) |
|
1282
|
|
|
{ |
|
1283
|
|
|
$this->mailAuthenabled = (bool)$mailAuthenabled; |
|
1284
|
|
|
|
|
1285
|
|
|
return $this; |
|
1286
|
|
|
} |
|
1287
|
|
|
|
|
1288
|
|
|
/** |
|
1289
|
|
|
* @return boolean |
|
1290
|
|
|
*/ |
|
1291
|
|
|
public function isMailEnabled() |
|
1292
|
|
|
{ |
|
1293
|
|
|
return $this->mailEnabled; |
|
1294
|
|
|
} |
|
1295
|
|
|
|
|
1296
|
|
|
/** |
|
1297
|
|
|
* @param boolean $mailEnabled |
|
1298
|
|
|
* |
|
1299
|
|
|
* @return $this |
|
1300
|
|
|
*/ |
|
1301
|
|
|
public function setMailEnabled($mailEnabled) |
|
1302
|
|
|
{ |
|
1303
|
|
|
$this->mailEnabled = (bool)$mailEnabled; |
|
1304
|
|
|
|
|
1305
|
|
|
return $this; |
|
1306
|
|
|
} |
|
1307
|
|
|
|
|
1308
|
|
|
/** |
|
1309
|
|
|
* @return string |
|
1310
|
|
|
*/ |
|
1311
|
|
|
public function getMailFrom() |
|
1312
|
|
|
{ |
|
1313
|
|
|
return $this->mailFrom; |
|
1314
|
|
|
} |
|
1315
|
|
|
|
|
1316
|
|
|
/** |
|
1317
|
|
|
* @param string $mailFrom |
|
1318
|
|
|
* |
|
1319
|
|
|
* @return $this |
|
1320
|
|
|
*/ |
|
1321
|
|
|
public function setMailFrom($mailFrom) |
|
1322
|
|
|
{ |
|
1323
|
|
|
$this->mailFrom = $mailFrom; |
|
1324
|
|
|
|
|
1325
|
|
|
return $this; |
|
1326
|
|
|
} |
|
1327
|
|
|
|
|
1328
|
|
|
/** |
|
1329
|
|
|
* @return string |
|
1330
|
|
|
*/ |
|
1331
|
|
|
public function getMailPass() |
|
1332
|
|
|
{ |
|
1333
|
|
|
return $this->mailPass; |
|
1334
|
|
|
} |
|
1335
|
|
|
|
|
1336
|
|
|
/** |
|
1337
|
|
|
* @param string $mailPass |
|
1338
|
|
|
* |
|
1339
|
|
|
* @return $this |
|
1340
|
|
|
*/ |
|
1341
|
|
|
public function setMailPass($mailPass) |
|
1342
|
|
|
{ |
|
1343
|
|
|
$this->mailPass = $mailPass; |
|
1344
|
|
|
|
|
1345
|
|
|
return $this; |
|
1346
|
|
|
} |
|
1347
|
|
|
|
|
1348
|
|
|
/** |
|
1349
|
|
|
* @return int |
|
1350
|
|
|
*/ |
|
1351
|
|
|
public function getMailPort() |
|
1352
|
|
|
{ |
|
1353
|
|
|
return $this->mailPort; |
|
1354
|
|
|
} |
|
1355
|
|
|
|
|
1356
|
|
|
/** |
|
1357
|
|
|
* @param int $mailPort |
|
1358
|
|
|
* |
|
1359
|
|
|
* @return $this |
|
1360
|
|
|
*/ |
|
1361
|
|
|
public function setMailPort($mailPort) |
|
1362
|
|
|
{ |
|
1363
|
|
|
$this->mailPort = (int)$mailPort; |
|
1364
|
|
|
|
|
1365
|
|
|
return $this; |
|
1366
|
|
|
} |
|
1367
|
|
|
|
|
1368
|
|
|
/** |
|
1369
|
|
|
* @return boolean |
|
1370
|
|
|
*/ |
|
1371
|
|
|
public function isMailRequestsEnabled() |
|
1372
|
|
|
{ |
|
1373
|
|
|
return $this->mailRequestsEnabled; |
|
1374
|
|
|
} |
|
1375
|
|
|
|
|
1376
|
|
|
/** |
|
1377
|
|
|
* @param boolean $mailRequestsEnabled |
|
1378
|
|
|
* |
|
1379
|
|
|
* @return $this |
|
1380
|
|
|
*/ |
|
1381
|
|
|
public function setMailRequestsEnabled($mailRequestsEnabled) |
|
1382
|
|
|
{ |
|
1383
|
|
|
$this->mailRequestsEnabled = (bool)$mailRequestsEnabled; |
|
1384
|
|
|
|
|
1385
|
|
|
return $this; |
|
1386
|
|
|
} |
|
1387
|
|
|
|
|
1388
|
|
|
/** |
|
1389
|
|
|
* @return string |
|
1390
|
|
|
*/ |
|
1391
|
|
|
public function getMailSecurity() |
|
1392
|
|
|
{ |
|
1393
|
|
|
return $this->mailSecurity; |
|
1394
|
|
|
} |
|
1395
|
|
|
|
|
1396
|
|
|
/** |
|
1397
|
|
|
* @param string $mailSecurity |
|
1398
|
|
|
* |
|
1399
|
|
|
* @return $this |
|
1400
|
|
|
*/ |
|
1401
|
|
|
public function setMailSecurity($mailSecurity) |
|
1402
|
|
|
{ |
|
1403
|
|
|
$this->mailSecurity = $mailSecurity; |
|
1404
|
|
|
|
|
1405
|
|
|
return $this; |
|
1406
|
|
|
} |
|
1407
|
|
|
|
|
1408
|
|
|
/** |
|
1409
|
|
|
* @return string |
|
1410
|
|
|
*/ |
|
1411
|
|
|
public function getMailServer() |
|
1412
|
|
|
{ |
|
1413
|
|
|
return $this->mailServer; |
|
1414
|
|
|
} |
|
1415
|
|
|
|
|
1416
|
|
|
/** |
|
1417
|
|
|
* @param string $mailServer |
|
1418
|
|
|
* |
|
1419
|
|
|
* @return $this |
|
1420
|
|
|
*/ |
|
1421
|
|
|
public function setMailServer($mailServer) |
|
1422
|
|
|
{ |
|
1423
|
|
|
$this->mailServer = $mailServer; |
|
1424
|
|
|
|
|
1425
|
|
|
return $this; |
|
1426
|
|
|
} |
|
1427
|
|
|
|
|
1428
|
|
|
/** |
|
1429
|
|
|
* @return string |
|
1430
|
|
|
*/ |
|
1431
|
|
|
public function getMailUser() |
|
1432
|
|
|
{ |
|
1433
|
|
|
return $this->mailUser; |
|
1434
|
|
|
} |
|
1435
|
|
|
|
|
1436
|
|
|
/** |
|
1437
|
|
|
* @param string $mailUser |
|
1438
|
|
|
* |
|
1439
|
|
|
* @return $this |
|
1440
|
|
|
*/ |
|
1441
|
|
|
public function setMailUser($mailUser) |
|
1442
|
|
|
{ |
|
1443
|
|
|
$this->mailUser = $mailUser; |
|
1444
|
|
|
|
|
1445
|
|
|
return $this; |
|
1446
|
|
|
} |
|
1447
|
|
|
|
|
1448
|
|
|
/** |
|
1449
|
|
|
* @return boolean |
|
1450
|
|
|
*/ |
|
1451
|
|
|
public function isMaintenance() |
|
1452
|
|
|
{ |
|
1453
|
|
|
return (bool)$this->maintenance; |
|
1454
|
|
|
} |
|
1455
|
|
|
|
|
1456
|
|
|
/** |
|
1457
|
|
|
* @param boolean $maintenance |
|
1458
|
|
|
* |
|
1459
|
|
|
* @return $this |
|
1460
|
|
|
*/ |
|
1461
|
|
|
public function setMaintenance($maintenance) |
|
1462
|
|
|
{ |
|
1463
|
|
|
$this->maintenance = (bool)$maintenance; |
|
1464
|
|
|
|
|
1465
|
|
|
return $this; |
|
1466
|
|
|
} |
|
1467
|
|
|
|
|
1468
|
|
|
/** |
|
1469
|
|
|
* @return string |
|
1470
|
|
|
*/ |
|
1471
|
|
|
public function getPasswordSalt() |
|
1472
|
|
|
{ |
|
1473
|
|
|
return $this->passwordSalt; |
|
1474
|
|
|
} |
|
1475
|
|
|
|
|
1476
|
|
|
/** |
|
1477
|
|
|
* @param string $passwordSalt |
|
1478
|
|
|
* |
|
1479
|
|
|
* @return $this |
|
1480
|
|
|
*/ |
|
1481
|
|
|
public function setPasswordSalt($passwordSalt) |
|
1482
|
|
|
{ |
|
1483
|
|
|
$this->passwordSalt = $passwordSalt; |
|
1484
|
|
|
|
|
1485
|
|
|
return $this; |
|
1486
|
|
|
} |
|
1487
|
|
|
|
|
1488
|
|
|
/** |
|
1489
|
|
|
* @return boolean |
|
1490
|
|
|
*/ |
|
1491
|
|
|
public function isResultsAsCards() |
|
1492
|
|
|
{ |
|
1493
|
|
|
return $this->resultsAsCards; |
|
1494
|
|
|
} |
|
1495
|
|
|
|
|
1496
|
|
|
/** |
|
1497
|
|
|
* @param boolean $resultsAsCards |
|
1498
|
|
|
* |
|
1499
|
|
|
* @return $this |
|
1500
|
|
|
*/ |
|
1501
|
|
|
public function setResultsAsCards($resultsAsCards) |
|
1502
|
|
|
{ |
|
1503
|
|
|
$this->resultsAsCards = (bool)$resultsAsCards; |
|
1504
|
|
|
|
|
1505
|
|
|
return $this; |
|
1506
|
|
|
} |
|
1507
|
|
|
|
|
1508
|
|
|
/** |
|
1509
|
|
|
* @return int |
|
1510
|
|
|
*/ |
|
1511
|
|
|
public function getSessionTimeout() |
|
1512
|
|
|
{ |
|
1513
|
|
|
return $this->sessionTimeout; |
|
1514
|
|
|
} |
|
1515
|
|
|
|
|
1516
|
|
|
/** |
|
1517
|
|
|
* @param int $sessionTimeout |
|
1518
|
|
|
* |
|
1519
|
|
|
* @return $this |
|
1520
|
|
|
*/ |
|
1521
|
|
|
public function setSessionTimeout($sessionTimeout) |
|
1522
|
|
|
{ |
|
1523
|
|
|
$this->sessionTimeout = (int)$sessionTimeout; |
|
1524
|
|
|
|
|
1525
|
|
|
return $this; |
|
1526
|
|
|
} |
|
1527
|
|
|
|
|
1528
|
|
|
/** |
|
1529
|
|
|
* @return string |
|
1530
|
|
|
*/ |
|
1531
|
|
|
public function getSiteLang() |
|
1532
|
|
|
{ |
|
1533
|
|
|
return $this->siteLang; |
|
1534
|
|
|
} |
|
1535
|
|
|
|
|
1536
|
|
|
/** |
|
1537
|
|
|
* @param string $siteLang |
|
1538
|
|
|
* |
|
1539
|
|
|
* @return $this |
|
1540
|
|
|
*/ |
|
1541
|
|
|
public function setSiteLang($siteLang) |
|
1542
|
|
|
{ |
|
1543
|
|
|
$this->siteLang = $siteLang; |
|
1544
|
|
|
|
|
1545
|
|
|
return $this; |
|
1546
|
|
|
} |
|
1547
|
|
|
|
|
1548
|
|
|
/** |
|
1549
|
|
|
* @return string |
|
1550
|
|
|
*/ |
|
1551
|
|
|
public function getSiteTheme() |
|
1552
|
|
|
{ |
|
1553
|
|
|
return $this->siteTheme; |
|
1554
|
|
|
} |
|
1555
|
|
|
|
|
1556
|
|
|
/** |
|
1557
|
|
|
* @param string $siteTheme |
|
1558
|
|
|
* |
|
1559
|
|
|
* @return $this |
|
1560
|
|
|
*/ |
|
1561
|
|
|
public function setSiteTheme($siteTheme) |
|
1562
|
|
|
{ |
|
1563
|
|
|
$this->siteTheme = $siteTheme; |
|
1564
|
|
|
|
|
1565
|
|
|
return $this; |
|
1566
|
|
|
} |
|
1567
|
|
|
|
|
1568
|
|
|
/** |
|
1569
|
|
|
* @return int |
|
1570
|
|
|
*/ |
|
1571
|
|
|
public function getConfigVersion() |
|
1572
|
|
|
{ |
|
1573
|
|
|
return (string)$this->configVersion; |
|
|
|
|
|
|
1574
|
|
|
} |
|
1575
|
|
|
|
|
1576
|
|
|
/** |
|
1577
|
|
|
* @param string $configVersion |
|
1578
|
|
|
* |
|
1579
|
|
|
* @return $this |
|
1580
|
|
|
*/ |
|
1581
|
|
|
public function setConfigVersion($configVersion) |
|
1582
|
|
|
{ |
|
1583
|
|
|
$this->configVersion = $configVersion; |
|
1584
|
|
|
|
|
1585
|
|
|
return $this; |
|
1586
|
|
|
} |
|
1587
|
|
|
|
|
1588
|
|
|
/** |
|
1589
|
|
|
* @return boolean |
|
1590
|
|
|
*/ |
|
1591
|
|
|
public function isWikiEnabled() |
|
1592
|
|
|
{ |
|
1593
|
|
|
return $this->wikiEnabled; |
|
1594
|
|
|
} |
|
1595
|
|
|
|
|
1596
|
|
|
/** |
|
1597
|
|
|
* @param boolean $wikiEnabled |
|
1598
|
|
|
* |
|
1599
|
|
|
* @return $this |
|
1600
|
|
|
*/ |
|
1601
|
|
|
public function setWikiEnabled($wikiEnabled) |
|
1602
|
|
|
{ |
|
1603
|
|
|
$this->wikiEnabled = (bool)$wikiEnabled; |
|
1604
|
|
|
|
|
1605
|
|
|
return $this; |
|
1606
|
|
|
} |
|
1607
|
|
|
|
|
1608
|
|
|
/** |
|
1609
|
|
|
* @return array |
|
1610
|
|
|
*/ |
|
1611
|
|
|
public function getWikiFilter() |
|
1612
|
|
|
{ |
|
1613
|
|
|
return is_array($this->wikiFilter) ? $this->wikiFilter : []; |
|
|
|
|
|
|
1614
|
|
|
} |
|
1615
|
|
|
|
|
1616
|
|
|
/** |
|
1617
|
|
|
* @param array $wikiFilter |
|
1618
|
|
|
* |
|
1619
|
|
|
* @return $this |
|
1620
|
|
|
*/ |
|
1621
|
|
|
public function setWikiFilter($wikiFilter) |
|
1622
|
|
|
{ |
|
1623
|
|
|
$this->wikiFilter = $wikiFilter; |
|
1624
|
|
|
|
|
1625
|
|
|
return $this; |
|
1626
|
|
|
} |
|
1627
|
|
|
|
|
1628
|
|
|
/** |
|
1629
|
|
|
* @return string |
|
1630
|
|
|
*/ |
|
1631
|
|
|
public function getWikiPageurl() |
|
1632
|
|
|
{ |
|
1633
|
|
|
return $this->wikiPageurl; |
|
1634
|
|
|
} |
|
1635
|
|
|
|
|
1636
|
|
|
/** |
|
1637
|
|
|
* @param string $wikiPageurl |
|
1638
|
|
|
* |
|
1639
|
|
|
* @return $this |
|
1640
|
|
|
*/ |
|
1641
|
|
|
public function setWikiPageurl($wikiPageurl) |
|
1642
|
|
|
{ |
|
1643
|
|
|
$this->wikiPageurl = $wikiPageurl; |
|
1644
|
|
|
|
|
1645
|
|
|
return $this; |
|
1646
|
|
|
} |
|
1647
|
|
|
|
|
1648
|
|
|
/** |
|
1649
|
|
|
* @return string |
|
1650
|
|
|
*/ |
|
1651
|
|
|
public function getWikiSearchurl() |
|
1652
|
|
|
{ |
|
1653
|
|
|
return $this->wikiSearchurl; |
|
1654
|
|
|
} |
|
1655
|
|
|
|
|
1656
|
|
|
/** |
|
1657
|
|
|
* @param string $wikiSearchurl |
|
1658
|
|
|
* |
|
1659
|
|
|
* @return $this |
|
1660
|
|
|
*/ |
|
1661
|
|
|
public function setWikiSearchurl($wikiSearchurl) |
|
1662
|
|
|
{ |
|
1663
|
|
|
$this->wikiSearchurl = $wikiSearchurl; |
|
1664
|
|
|
|
|
1665
|
|
|
return $this; |
|
1666
|
|
|
} |
|
1667
|
|
|
|
|
1668
|
|
|
/** |
|
1669
|
|
|
* @return boolean |
|
1670
|
|
|
*/ |
|
1671
|
|
|
public function isLdapAds() |
|
1672
|
|
|
{ |
|
1673
|
|
|
return $this->ldapAds; |
|
1674
|
|
|
} |
|
1675
|
|
|
|
|
1676
|
|
|
/** |
|
1677
|
|
|
* @param boolean $ldapAds |
|
1678
|
|
|
* |
|
1679
|
|
|
* @return $this |
|
1680
|
|
|
*/ |
|
1681
|
|
|
public function setLdapAds($ldapAds) |
|
1682
|
|
|
{ |
|
1683
|
|
|
$this->ldapAds = (bool)$ldapAds; |
|
1684
|
|
|
|
|
1685
|
|
|
return $this; |
|
1686
|
|
|
} |
|
1687
|
|
|
|
|
1688
|
|
|
/** |
|
1689
|
|
|
* @return string |
|
1690
|
|
|
*/ |
|
1691
|
|
|
public function getLdapBindPass() |
|
1692
|
|
|
{ |
|
1693
|
|
|
return $this->ldapBindPass; |
|
1694
|
|
|
} |
|
1695
|
|
|
|
|
1696
|
|
|
/** |
|
1697
|
|
|
* @param string $ldapBindPass |
|
1698
|
|
|
* |
|
1699
|
|
|
* @return $this |
|
1700
|
|
|
*/ |
|
1701
|
|
|
public function setLdapBindPass($ldapBindPass) |
|
1702
|
|
|
{ |
|
1703
|
|
|
$this->ldapBindPass = $ldapBindPass; |
|
1704
|
|
|
|
|
1705
|
|
|
return $this; |
|
1706
|
|
|
} |
|
1707
|
|
|
|
|
1708
|
|
|
/** |
|
1709
|
|
|
* @return boolean |
|
1710
|
|
|
*/ |
|
1711
|
|
|
public function isPublinksImageEnabled() |
|
1712
|
|
|
{ |
|
1713
|
|
|
return $this->publinksImageEnabled; |
|
1714
|
|
|
} |
|
1715
|
|
|
|
|
1716
|
|
|
/** |
|
1717
|
|
|
* @param boolean $publinksImageEnabled |
|
1718
|
|
|
* |
|
1719
|
|
|
* @return $this |
|
1720
|
|
|
*/ |
|
1721
|
|
|
public function setPublinksImageEnabled($publinksImageEnabled) |
|
1722
|
|
|
{ |
|
1723
|
|
|
$this->publinksImageEnabled = (bool)$publinksImageEnabled; |
|
1724
|
|
|
|
|
1725
|
|
|
return $this; |
|
1726
|
|
|
} |
|
1727
|
|
|
|
|
1728
|
|
|
/** |
|
1729
|
|
|
* @return boolean |
|
1730
|
|
|
*/ |
|
1731
|
|
|
public function isHttpsEnabled() |
|
1732
|
|
|
{ |
|
1733
|
|
|
return $this->httpsEnabled; |
|
1734
|
|
|
} |
|
1735
|
|
|
|
|
1736
|
|
|
/** |
|
1737
|
|
|
* @param boolean $httpsEnabled |
|
1738
|
|
|
* |
|
1739
|
|
|
* @return $this |
|
1740
|
|
|
*/ |
|
1741
|
|
|
public function setHttpsEnabled($httpsEnabled) |
|
1742
|
|
|
{ |
|
1743
|
|
|
$this->httpsEnabled = (bool)$httpsEnabled; |
|
1744
|
|
|
|
|
1745
|
|
|
return $this; |
|
1746
|
|
|
} |
|
1747
|
|
|
|
|
1748
|
|
|
/** |
|
1749
|
|
|
* @return boolean |
|
1750
|
|
|
*/ |
|
1751
|
|
|
public function isChecknotices() |
|
1752
|
|
|
{ |
|
1753
|
|
|
return $this->checknotices; |
|
1754
|
|
|
} |
|
1755
|
|
|
|
|
1756
|
|
|
/** |
|
1757
|
|
|
* @param boolean $checknotices |
|
1758
|
|
|
* |
|
1759
|
|
|
* @return $this |
|
1760
|
|
|
*/ |
|
1761
|
|
|
public function setChecknotices($checknotices) |
|
1762
|
|
|
{ |
|
1763
|
|
|
$this->checknotices = $checknotices; |
|
1764
|
|
|
|
|
1765
|
|
|
return $this; |
|
1766
|
|
|
} |
|
1767
|
|
|
|
|
1768
|
|
|
/** |
|
1769
|
|
|
* @return boolean |
|
1770
|
|
|
*/ |
|
1771
|
|
|
public function isAccountPassToImage() |
|
1772
|
|
|
{ |
|
1773
|
|
|
return $this->accountPassToImage; |
|
1774
|
|
|
} |
|
1775
|
|
|
|
|
1776
|
|
|
/** |
|
1777
|
|
|
* @param boolean $accountPassToImage |
|
1778
|
|
|
* |
|
1779
|
|
|
* @return $this |
|
1780
|
|
|
*/ |
|
1781
|
|
|
public function setAccountPassToImage($accountPassToImage) |
|
1782
|
|
|
{ |
|
1783
|
|
|
$this->accountPassToImage = (bool)$accountPassToImage; |
|
1784
|
|
|
|
|
1785
|
|
|
return $this; |
|
1786
|
|
|
} |
|
1787
|
|
|
|
|
1788
|
|
|
/** |
|
1789
|
|
|
* @return string |
|
1790
|
|
|
*/ |
|
1791
|
|
|
public function getUpgradeKey() |
|
1792
|
|
|
{ |
|
1793
|
|
|
return $this->upgradeKey; |
|
1794
|
|
|
} |
|
1795
|
|
|
|
|
1796
|
|
|
/** |
|
1797
|
|
|
* @param string $upgradeKey |
|
1798
|
|
|
* |
|
1799
|
|
|
* @return $this |
|
1800
|
|
|
*/ |
|
1801
|
|
|
public function setUpgradeKey($upgradeKey) |
|
1802
|
|
|
{ |
|
1803
|
|
|
$this->upgradeKey = $upgradeKey; |
|
1804
|
|
|
|
|
1805
|
|
|
return $this; |
|
1806
|
|
|
} |
|
1807
|
|
|
|
|
1808
|
|
|
/** |
|
1809
|
|
|
* @return int |
|
1810
|
|
|
*/ |
|
1811
|
|
|
public function getDbPort() |
|
1812
|
|
|
{ |
|
1813
|
|
|
return $this->dbPort; |
|
1814
|
|
|
} |
|
1815
|
|
|
|
|
1816
|
|
|
/** |
|
1817
|
|
|
* @param int $dbPort |
|
1818
|
|
|
* |
|
1819
|
|
|
* @return $this |
|
1820
|
|
|
*/ |
|
1821
|
|
|
public function setDbPort($dbPort) |
|
1822
|
|
|
{ |
|
1823
|
|
|
$this->dbPort = (int)$dbPort; |
|
1824
|
|
|
|
|
1825
|
|
|
return $this; |
|
1826
|
|
|
} |
|
1827
|
|
|
|
|
1828
|
|
|
/** |
|
1829
|
|
|
* @return boolean |
|
1830
|
|
|
*/ |
|
1831
|
|
|
public function isPublinksEnabled() |
|
1832
|
|
|
{ |
|
1833
|
|
|
return $this->publinksEnabled; |
|
1834
|
|
|
} |
|
1835
|
|
|
|
|
1836
|
|
|
/** |
|
1837
|
|
|
* @param boolean $publinksEnabled |
|
1838
|
|
|
* |
|
1839
|
|
|
* @return $this |
|
1840
|
|
|
*/ |
|
1841
|
|
|
public function setPublinksEnabled($publinksEnabled) |
|
1842
|
|
|
{ |
|
1843
|
|
|
$this->publinksEnabled = (bool)$publinksEnabled; |
|
1844
|
|
|
|
|
1845
|
|
|
return $this; |
|
1846
|
|
|
} |
|
1847
|
|
|
|
|
1848
|
|
|
/** |
|
1849
|
|
|
* Specify data which should be serialized to JSON |
|
1850
|
|
|
* |
|
1851
|
|
|
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
|
1852
|
|
|
* @return mixed data which can be serialized by <b>json_encode</b>, |
|
1853
|
|
|
* which is a value of any type other than a resource. |
|
1854
|
|
|
* @since 5.4.0 |
|
1855
|
|
|
*/ |
|
1856
|
|
|
public function jsonSerialize() |
|
1857
|
|
|
{ |
|
1858
|
|
|
return get_object_vars($this); |
|
1859
|
|
|
} |
|
1860
|
|
|
|
|
1861
|
|
|
/** |
|
1862
|
|
|
* @return string |
|
1863
|
|
|
*/ |
|
1864
|
|
|
public function getConfigSaver() |
|
1865
|
|
|
{ |
|
1866
|
|
|
return $this->configSaver; |
|
1867
|
|
|
} |
|
1868
|
|
|
|
|
1869
|
|
|
/** |
|
1870
|
|
|
* @param string $configSaver |
|
1871
|
|
|
* |
|
1872
|
|
|
* @return $this |
|
1873
|
|
|
*/ |
|
1874
|
|
|
public function setConfigSaver($configSaver) |
|
1875
|
|
|
{ |
|
1876
|
|
|
$this->configSaver = $configSaver; |
|
1877
|
|
|
|
|
1878
|
|
|
return $this; |
|
1879
|
|
|
} |
|
1880
|
|
|
|
|
1881
|
|
|
/** |
|
1882
|
|
|
* @return string |
|
1883
|
|
|
*/ |
|
1884
|
|
|
public function getDbSocket() |
|
1885
|
|
|
{ |
|
1886
|
|
|
return $this->dbSocket; |
|
1887
|
|
|
} |
|
1888
|
|
|
|
|
1889
|
|
|
/** |
|
1890
|
|
|
* @param string $dbSocket |
|
1891
|
|
|
*/ |
|
1892
|
|
|
public function setDbSocket($dbSocket) |
|
1893
|
|
|
{ |
|
1894
|
|
|
$this->dbSocket = $dbSocket; |
|
1895
|
|
|
} |
|
1896
|
|
|
|
|
1897
|
|
|
/** |
|
1898
|
|
|
* @return bool |
|
1899
|
|
|
*/ |
|
1900
|
|
|
public function isEncryptSession() |
|
1901
|
|
|
{ |
|
1902
|
|
|
return (bool)$this->encryptSession; |
|
1903
|
|
|
} |
|
1904
|
|
|
|
|
1905
|
|
|
/** |
|
1906
|
|
|
* @param bool $encryptSession |
|
1907
|
|
|
* |
|
1908
|
|
|
* @return $this |
|
1909
|
|
|
*/ |
|
1910
|
|
|
public function setEncryptSession($encryptSession) |
|
1911
|
|
|
{ |
|
1912
|
|
|
$this->encryptSession = (bool)$encryptSession; |
|
1913
|
|
|
|
|
1914
|
|
|
return $this; |
|
1915
|
|
|
} |
|
1916
|
|
|
|
|
1917
|
|
|
/** |
|
1918
|
|
|
* @return bool |
|
1919
|
|
|
*/ |
|
1920
|
|
|
public function isAccountFullGroupAccess() |
|
1921
|
|
|
{ |
|
1922
|
|
|
return (bool)$this->accountFullGroupAccess; |
|
1923
|
|
|
} |
|
1924
|
|
|
|
|
1925
|
|
|
/** |
|
1926
|
|
|
* @param bool $accountFullGroupAccess |
|
1927
|
|
|
* |
|
1928
|
|
|
* @return $this |
|
1929
|
|
|
*/ |
|
1930
|
|
|
public function setAccountFullGroupAccess($accountFullGroupAccess) |
|
1931
|
|
|
{ |
|
1932
|
|
|
$this->accountFullGroupAccess = (bool)$accountFullGroupAccess; |
|
1933
|
|
|
|
|
1934
|
|
|
return $this; |
|
1935
|
|
|
} |
|
1936
|
|
|
|
|
1937
|
|
|
/** |
|
1938
|
|
|
* @return bool |
|
1939
|
|
|
*/ |
|
1940
|
|
|
public function isAuthBasicEnabled() |
|
1941
|
|
|
{ |
|
1942
|
|
|
return (bool)$this->authBasicEnabled; |
|
1943
|
|
|
} |
|
1944
|
|
|
|
|
1945
|
|
|
/** |
|
1946
|
|
|
* @param bool $authBasicEnabled |
|
1947
|
|
|
*/ |
|
1948
|
|
|
public function setAuthBasicEnabled($authBasicEnabled) |
|
1949
|
|
|
{ |
|
1950
|
|
|
$this->authBasicEnabled = $authBasicEnabled; |
|
1951
|
|
|
} |
|
1952
|
|
|
|
|
1953
|
|
|
/** |
|
1954
|
|
|
* @return string |
|
1955
|
|
|
*/ |
|
1956
|
|
|
public function getAuthBasicDomain() |
|
1957
|
|
|
{ |
|
1958
|
|
|
return $this->authBasicDomain; |
|
1959
|
|
|
} |
|
1960
|
|
|
|
|
1961
|
|
|
/** |
|
1962
|
|
|
* @param string $authBasicDomain |
|
1963
|
|
|
*/ |
|
1964
|
|
|
public function setAuthBasicDomain($authBasicDomain) |
|
1965
|
|
|
{ |
|
1966
|
|
|
$this->authBasicDomain = $authBasicDomain; |
|
1967
|
|
|
} |
|
1968
|
|
|
|
|
1969
|
|
|
/** |
|
1970
|
|
|
* @return bool |
|
1971
|
|
|
*/ |
|
1972
|
|
|
public function isAuthBasicAutoLoginEnabled() |
|
1973
|
|
|
{ |
|
1974
|
|
|
return (bool)$this->authBasicAutoLoginEnabled; |
|
1975
|
|
|
} |
|
1976
|
|
|
|
|
1977
|
|
|
/** |
|
1978
|
|
|
* @param bool $authBasicAutoLoginEnabled |
|
1979
|
|
|
*/ |
|
1980
|
|
|
public function setAuthBasicAutoLoginEnabled($authBasicAutoLoginEnabled) |
|
1981
|
|
|
{ |
|
1982
|
|
|
$this->authBasicAutoLoginEnabled = $authBasicAutoLoginEnabled; |
|
1983
|
|
|
} |
|
1984
|
|
|
|
|
1985
|
|
|
/** |
|
1986
|
|
|
* @return int |
|
1987
|
|
|
*/ |
|
1988
|
|
|
public function getSsoDefaultGroup() |
|
1989
|
|
|
{ |
|
1990
|
|
|
return $this->ssoDefaultGroup; |
|
1991
|
|
|
} |
|
1992
|
|
|
|
|
1993
|
|
|
/** |
|
1994
|
|
|
* @param int $ssoDefaultGroup |
|
1995
|
|
|
*/ |
|
1996
|
|
|
public function setSsoDefaultGroup($ssoDefaultGroup) |
|
1997
|
|
|
{ |
|
1998
|
|
|
$this->ssoDefaultGroup = $ssoDefaultGroup; |
|
1999
|
|
|
} |
|
2000
|
|
|
|
|
2001
|
|
|
/** |
|
2002
|
|
|
* @return int |
|
2003
|
|
|
*/ |
|
2004
|
|
|
public function getSsoDefaultProfile() |
|
2005
|
|
|
{ |
|
2006
|
|
|
return $this->ssoDefaultProfile; |
|
2007
|
|
|
} |
|
2008
|
|
|
|
|
2009
|
|
|
/** |
|
2010
|
|
|
* @param int $ssoDefaultProfile |
|
2011
|
|
|
*/ |
|
2012
|
|
|
public function setSsoDefaultProfile($ssoDefaultProfile) |
|
2013
|
|
|
{ |
|
2014
|
|
|
$this->ssoDefaultProfile = $ssoDefaultProfile; |
|
2015
|
|
|
} |
|
2016
|
|
|
|
|
2017
|
|
|
/** |
|
2018
|
|
|
* @return array |
|
2019
|
|
|
*/ |
|
2020
|
|
|
public function getMailRecipients() |
|
2021
|
|
|
{ |
|
2022
|
|
|
return (array)$this->mailRecipients; |
|
2023
|
|
|
} |
|
2024
|
|
|
|
|
2025
|
|
|
/** |
|
2026
|
|
|
* @param array $mailRecipients |
|
2027
|
|
|
*/ |
|
2028
|
|
|
public function setMailRecipients(array $mailRecipients) |
|
2029
|
|
|
{ |
|
2030
|
|
|
$this->mailRecipients = $mailRecipients; |
|
2031
|
|
|
} |
|
2032
|
|
|
|
|
2033
|
|
|
/** |
|
2034
|
|
|
* @return array |
|
2035
|
|
|
*/ |
|
2036
|
|
|
public function getMailEvents() |
|
2037
|
|
|
{ |
|
2038
|
|
|
return is_array($this->mailEvents) ? $this->mailEvents : []; |
|
|
|
|
|
|
2039
|
|
|
} |
|
2040
|
|
|
|
|
2041
|
|
|
/** |
|
2042
|
|
|
* @param array $mailEvents |
|
2043
|
|
|
*/ |
|
2044
|
|
|
public function setMailEvents(array $mailEvents) |
|
2045
|
|
|
{ |
|
2046
|
|
|
$this->mailEvents = $mailEvents; |
|
2047
|
|
|
} |
|
2048
|
|
|
|
|
2049
|
|
|
/** |
|
2050
|
|
|
* @return string |
|
2051
|
|
|
*/ |
|
2052
|
|
|
public function getDatabaseVersion() |
|
2053
|
|
|
{ |
|
2054
|
|
|
return (string)$this->databaseVersion; |
|
2055
|
|
|
} |
|
2056
|
|
|
|
|
2057
|
|
|
/** |
|
2058
|
|
|
* @param string $databaseVersion |
|
2059
|
|
|
* |
|
2060
|
|
|
* @return ConfigData |
|
2061
|
|
|
*/ |
|
2062
|
|
|
public function setDatabaseVersion($databaseVersion) |
|
2063
|
|
|
{ |
|
2064
|
|
|
$this->databaseVersion = $databaseVersion; |
|
2065
|
|
|
|
|
2066
|
|
|
return $this; |
|
2067
|
|
|
} |
|
2068
|
|
|
|
|
2069
|
|
|
/** |
|
2070
|
|
|
* @return int |
|
2071
|
|
|
*/ |
|
2072
|
|
|
public function getConfigDate() |
|
2073
|
|
|
{ |
|
2074
|
|
|
return $this->configDate; |
|
2075
|
|
|
} |
|
2076
|
|
|
|
|
2077
|
|
|
/** |
|
2078
|
|
|
* @param int $configDate |
|
2079
|
|
|
* |
|
2080
|
|
|
* @return $this |
|
2081
|
|
|
*/ |
|
2082
|
|
|
public function setConfigDate($configDate) |
|
2083
|
|
|
{ |
|
2084
|
|
|
$this->configDate = (int)$configDate; |
|
2085
|
|
|
|
|
2086
|
|
|
return $this; |
|
2087
|
|
|
} |
|
2088
|
|
|
|
|
2089
|
|
|
/** |
|
2090
|
|
|
* @return bool |
|
2091
|
|
|
*/ |
|
2092
|
|
|
public function isAccountExpireEnabled() |
|
2093
|
|
|
{ |
|
2094
|
|
|
return (int)$this->accountExpireEnabled; |
|
|
|
|
|
|
2095
|
|
|
} |
|
2096
|
|
|
|
|
2097
|
|
|
/** |
|
2098
|
|
|
* @param bool $accountExpireEnabled |
|
2099
|
|
|
* |
|
2100
|
|
|
* @return ConfigData |
|
2101
|
|
|
*/ |
|
2102
|
|
|
public function setAccountExpireEnabled($accountExpireEnabled) |
|
2103
|
|
|
{ |
|
2104
|
|
|
$this->accountExpireEnabled = $accountExpireEnabled; |
|
2105
|
|
|
|
|
2106
|
|
|
return $this; |
|
2107
|
|
|
} |
|
2108
|
|
|
|
|
2109
|
|
|
/** |
|
2110
|
|
|
* @return int |
|
2111
|
|
|
*/ |
|
2112
|
|
|
public function getAccountExpireTime() |
|
2113
|
|
|
{ |
|
2114
|
|
|
return $this->accountExpireTime; |
|
2115
|
|
|
} |
|
2116
|
|
|
|
|
2117
|
|
|
/** |
|
2118
|
|
|
* @param int $accountExpireTime |
|
2119
|
|
|
* |
|
2120
|
|
|
* @return ConfigData |
|
2121
|
|
|
*/ |
|
2122
|
|
|
public function setAccountExpireTime($accountExpireTime) |
|
2123
|
|
|
{ |
|
2124
|
|
|
$this->accountExpireTime = (int)$accountExpireTime; |
|
2125
|
|
|
|
|
2126
|
|
|
return $this; |
|
2127
|
|
|
} |
|
2128
|
|
|
|
|
2129
|
|
|
/** |
|
2130
|
|
|
* @return bool |
|
2131
|
|
|
*/ |
|
2132
|
|
|
public function isLdapTlsEnabled(): bool |
|
2133
|
|
|
{ |
|
2134
|
|
|
return (bool)$this->ldapTlsEnabled; |
|
2135
|
|
|
} |
|
2136
|
|
|
|
|
2137
|
|
|
/** |
|
2138
|
|
|
* @param bool $ldapTlsEnabled |
|
2139
|
|
|
*/ |
|
2140
|
|
|
public function setLdapTlsEnabled(bool $ldapTlsEnabled) |
|
2141
|
|
|
{ |
|
2142
|
|
|
$this->ldapTlsEnabled = (int)$ldapTlsEnabled; |
|
|
|
|
|
|
2143
|
|
|
} |
|
2144
|
|
|
|
|
2145
|
|
|
/** |
|
2146
|
|
|
* @return array |
|
2147
|
|
|
*/ |
|
2148
|
|
|
public function getFilesAllowedMime(): array |
|
2149
|
|
|
{ |
|
2150
|
|
|
return (array)$this->filesAllowedMime; |
|
2151
|
|
|
} |
|
2152
|
|
|
|
|
2153
|
|
|
/** |
|
2154
|
|
|
* @param array $filesAllowedMime |
|
2155
|
|
|
*/ |
|
2156
|
|
|
public function setFilesAllowedMime(array $filesAllowedMime) |
|
2157
|
|
|
{ |
|
2158
|
|
|
$this->filesAllowedMime = $filesAllowedMime; |
|
2159
|
|
|
} |
|
2160
|
|
|
|
|
2161
|
|
|
/** |
|
2162
|
|
|
* @return int |
|
2163
|
|
|
*/ |
|
2164
|
|
|
public function getLdapType() |
|
2165
|
|
|
{ |
|
2166
|
|
|
return (int)$this->ldapType; |
|
2167
|
|
|
} |
|
2168
|
|
|
|
|
2169
|
|
|
/** |
|
2170
|
|
|
* @param int $ldapType |
|
2171
|
|
|
*/ |
|
2172
|
|
|
public function setLdapType(int $ldapType) |
|
2173
|
|
|
{ |
|
2174
|
|
|
$this->ldapType = $ldapType; |
|
2175
|
|
|
} |
|
2176
|
|
|
|
|
2177
|
|
|
/** |
|
2178
|
|
|
* @return string |
|
2179
|
|
|
*/ |
|
2180
|
|
|
public function getAppVersion() |
|
2181
|
|
|
{ |
|
2182
|
|
|
return $this->appVersion; |
|
2183
|
|
|
} |
|
2184
|
|
|
|
|
2185
|
|
|
/** |
|
2186
|
|
|
* @param string $appVersion |
|
2187
|
|
|
*/ |
|
2188
|
|
|
public function setAppVersion(string $appVersion) |
|
2189
|
|
|
{ |
|
2190
|
|
|
$this->appVersion = $appVersion; |
|
2191
|
|
|
} |
|
2192
|
|
|
} |
|
2193
|
|
|
|