ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilTestSkillPointAccount.php
Go to the documentation of this file.
1
<?php
2
25
class
ilTestSkillPointAccount
26
{
27
private
$totalMaxSkillPoints
;
28
29
private
$totalReachedSkillPoints
;
30
31
private
$numBookings
;
32
33
public
function
__construct
()
34
{
35
$this->totalMaxSkillPoints = 0;
36
$this->totalReachedSkillPoints = 0;
37
38
$this->numBookings = 0;
39
}
40
41
public
function
addBooking
($maxSkillPoints, $reachedSkillPoints)
42
{
43
$this->totalMaxSkillPoints += $maxSkillPoints;
44
$this->totalReachedSkillPoints += $reachedSkillPoints;
45
46
$this->numBookings++;
47
}
48
49
public
function
getTotalMaxSkillPoints
():
int
50
{
51
return
$this->totalMaxSkillPoints
;
52
}
53
54
public
function
getTotalReachedSkillPoints
():
int
55
{
56
return
$this->totalReachedSkillPoints
;
57
}
58
59
public
function
getNumBookings
():
int
60
{
61
return
$this->numBookings
;
62
}
63
64
public
function
getTotalReachedSkillPercent
()
65
{
66
return
(
67
($this->
getTotalReachedSkillPoints
() * 100) / $this->
getTotalMaxSkillPoints
()
68
);
69
}
70
}
ilTestSkillPointAccount\$totalReachedSkillPoints
$totalReachedSkillPoints
Definition:
class.ilTestSkillPointAccount.php:29
ilTestSkillPointAccount\__construct
__construct()
Definition:
class.ilTestSkillPointAccount.php:33
ilTestSkillPointAccount\$totalMaxSkillPoints
$totalMaxSkillPoints
Definition:
class.ilTestSkillPointAccount.php:27
ilTestSkillPointAccount\getTotalReachedSkillPoints
getTotalReachedSkillPoints()
Definition:
class.ilTestSkillPointAccount.php:54
ilTestSkillPointAccount\getNumBookings
getNumBookings()
Definition:
class.ilTestSkillPointAccount.php:59
ilTestSkillPointAccount\getTotalMaxSkillPoints
getTotalMaxSkillPoints()
Definition:
class.ilTestSkillPointAccount.php:49
ilTestSkillPointAccount\addBooking
addBooking($maxSkillPoints, $reachedSkillPoints)
Definition:
class.ilTestSkillPointAccount.php:41
ilTestSkillPointAccount\getTotalReachedSkillPercent
getTotalReachedSkillPercent()
Definition:
class.ilTestSkillPointAccount.php:64
ilTestSkillPointAccount
Definition:
class.ilTestSkillPointAccount.php:25
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilTestSkillPointAccount\$numBookings
$numBookings
Definition:
class.ilTestSkillPointAccount.php:31
Modules
Test
classes
class.ilTestSkillPointAccount.php
Generated on Tue Apr 1 2025 22:01:39 for ILIAS by
1.8.13 (using
Doxyfile
)