ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilTestSkillPointAccount.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
11
class
ilTestSkillPointAccount
12
{
13
private
$totalMaxSkillPoints
;
14
15
private
$totalReachedSkillPoints
;
16
17
private
$numBookings
;
18
19
public
function
__construct
()
20
{
21
$this->totalMaxSkillPoints = 0;
22
$this->totalReachedSkillPoints = 0;
23
24
$this->numBookings = 0;
25
}
26
27
public
function
addBooking
($maxSkillPoints, $reachedSkillPoints)
28
{
29
$this->totalMaxSkillPoints += $maxSkillPoints;
30
$this->totalReachedSkillPoints += $reachedSkillPoints;
31
32
$this->numBookings++;
33
}
34
35
public
function
getTotalMaxSkillPoints
()
36
{
37
return
$this->totalMaxSkillPoints
;
38
}
39
40
public
function
getTotalReachedSkillPoints
()
41
{
42
return
$this->totalReachedSkillPoints
;
43
}
44
45
public
function
getNumBookings
()
46
{
47
return
$this->numBookings
;
48
}
49
50
public
function
getTotalReachedSkillPercent
()
51
{
52
return
(
53
($this->
getTotalReachedSkillPoints
() * 100) / $this->
getTotalMaxSkillPoints
()
54
);
55
}
56
}
ilTestSkillPointAccount\$totalReachedSkillPoints
$totalReachedSkillPoints
Definition:
class.ilTestSkillPointAccount.php:15
ilTestSkillPointAccount\__construct
__construct()
Definition:
class.ilTestSkillPointAccount.php:19
ilTestSkillPointAccount\$totalMaxSkillPoints
$totalMaxSkillPoints
Definition:
class.ilTestSkillPointAccount.php:13
ilTestSkillPointAccount\getTotalReachedSkillPoints
getTotalReachedSkillPoints()
Definition:
class.ilTestSkillPointAccount.php:40
ilTestSkillPointAccount\getNumBookings
getNumBookings()
Definition:
class.ilTestSkillPointAccount.php:45
ilTestSkillPointAccount\getTotalMaxSkillPoints
getTotalMaxSkillPoints()
Definition:
class.ilTestSkillPointAccount.php:35
ilTestSkillPointAccount\addBooking
addBooking($maxSkillPoints, $reachedSkillPoints)
Definition:
class.ilTestSkillPointAccount.php:27
ilTestSkillPointAccount\getTotalReachedSkillPercent
getTotalReachedSkillPercent()
Definition:
class.ilTestSkillPointAccount.php:50
ilTestSkillPointAccount
Definition:
class.ilTestSkillPointAccount.php:11
ilTestSkillPointAccount\$numBookings
$numBookings
Definition:
class.ilTestSkillPointAccount.php:17
Modules
Test
classes
class.ilTestSkillPointAccount.php
Generated on Sat Jan 18 2025 19:01:22 for ILIAS by
1.8.13 (using
Doxyfile
)