ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilCertificateActiveValidator.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
7
class
ilCertificateActiveValidator
8
{
12
private
$setting
;
13
17
private
$rpcSettings
;
18
23
public
function
__construct
(
ilSetting
$setting
= null,
ilRPCServerSettings
$rpcSettings
= null)
24
{
25
if
(null ===
$setting
) {
26
$setting
=
new
ilSetting
(
"certificate"
);
27
}
28
$this->setting =
$setting
;
29
30
if
(null ==
$rpcSettings
) {
31
$rpcSettings
=
ilRPCServerSettings::getInstance
();
32
}
33
$this->rpcSettings =
$rpcSettings
;
34
}
35
36
public
function
validate
()
37
{
38
$globalCertificateActive = (bool) $this->setting->get(
'active'
);
39
40
if
(
false
=== $globalCertificateActive) {
41
return
false
;
42
}
43
44
$serverActive = (bool) $this->rpcSettings->isEnabled();
45
46
if
(
false
=== $serverActive) {
47
return
false
;
48
}
49
50
return
true
;
51
}
52
}
ilCertificateActiveValidator
Definition:
class.ilCertificateActiveValidator.php:7
ilRPCServerSettings
Definition:
class.ilRPCServerSettings.php:37
ilCertificateActiveValidator\$setting
$setting
Definition:
class.ilCertificateActiveValidator.php:12
php
ilCertificateActiveValidator\validate
validate()
Definition:
class.ilCertificateActiveValidator.php:36
ilCertificateActiveValidator\$rpcSettings
$rpcSettings
Definition:
class.ilCertificateActiveValidator.php:17
ilCertificateActiveValidator\__construct
__construct(ilSetting $setting=null, ilRPCServerSettings $rpcSettings=null)
Definition:
class.ilCertificateActiveValidator.php:23
ilSetting
ilRPCServerSettings\getInstance
static getInstance()
Get singelton instance.
Definition:
class.ilRPCServerSettings.php:71
Services
Certificate
classes
User
Validator
class.ilCertificateActiveValidator.php
Generated on Thu Jan 16 2025 19:02:19 for ILIAS by
1.8.13 (using
Doxyfile
)