ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
ilRPCServerSettings
Definition:
class.ilRPCServerSettings.php:37
ilCertificateActiveValidator\$setting
$setting
Definition:
class.ilCertificateActiveValidator.php:12
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 Sat Apr 5 2025 21:01:16 for ILIAS by
1.8.13 (using
Doxyfile
)