ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestSkillPointAccount Class Reference
+ Collaboration diagram for ilTestSkillPointAccount:

Public Member Functions

 __construct ()
 
 addBooking ($maxSkillPoints, $reachedSkillPoints)
 
 getTotalMaxSkillPoints ()
 
 getTotalReachedSkillPoints ()
 
 getNumBookings ()
 
 getTotalReachedSkillPercent ()
 

Private Attributes

 $totalMaxSkillPoints
 
 $totalReachedSkillPoints
 
 $numBookings
 

Detailed Description

Definition at line 25 of file class.ilTestSkillPointAccount.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestSkillPointAccount::__construct ( )

Definition at line 33 of file class.ilTestSkillPointAccount.php.

34  {
35  $this->totalMaxSkillPoints = 0;
36  $this->totalReachedSkillPoints = 0;
37 
38  $this->numBookings = 0;
39  }

Member Function Documentation

◆ addBooking()

ilTestSkillPointAccount::addBooking (   $maxSkillPoints,
  $reachedSkillPoints 
)

Definition at line 41 of file class.ilTestSkillPointAccount.php.

42  {
43  $this->totalMaxSkillPoints += $maxSkillPoints;
44  $this->totalReachedSkillPoints += $reachedSkillPoints;
45 
46  $this->numBookings++;
47  }

◆ getNumBookings()

ilTestSkillPointAccount::getNumBookings ( )

Definition at line 59 of file class.ilTestSkillPointAccount.php.

References $numBookings.

Referenced by ilTestSkillEvaluation\doesNumBookingsExceedRequiredBookingsBarrier().

59  : int
60  {
61  return $this->numBookings;
62  }
+ Here is the caller graph for this function:

◆ getTotalMaxSkillPoints()

ilTestSkillPointAccount::getTotalMaxSkillPoints ( )

Definition at line 49 of file class.ilTestSkillPointAccount.php.

References $totalMaxSkillPoints.

Referenced by getTotalReachedSkillPercent().

49  : int
50  {
52  }
+ Here is the caller graph for this function:

◆ getTotalReachedSkillPercent()

ilTestSkillPointAccount::getTotalReachedSkillPercent ( )

Definition at line 64 of file class.ilTestSkillPointAccount.php.

References getTotalMaxSkillPoints(), and getTotalReachedSkillPoints().

65  {
66  return (
67  ($this->getTotalReachedSkillPoints() * 100) / $this->getTotalMaxSkillPoints()
68  );
69  }
+ Here is the call graph for this function:

◆ getTotalReachedSkillPoints()

ilTestSkillPointAccount::getTotalReachedSkillPoints ( )

Definition at line 54 of file class.ilTestSkillPointAccount.php.

References $totalReachedSkillPoints.

Referenced by getTotalReachedSkillPercent().

54  : int
55  {
57  }
+ Here is the caller graph for this function:

Field Documentation

◆ $numBookings

ilTestSkillPointAccount::$numBookings
private

Definition at line 31 of file class.ilTestSkillPointAccount.php.

Referenced by getNumBookings().

◆ $totalMaxSkillPoints

ilTestSkillPointAccount::$totalMaxSkillPoints
private

Definition at line 27 of file class.ilTestSkillPointAccount.php.

Referenced by getTotalMaxSkillPoints().

◆ $totalReachedSkillPoints

ilTestSkillPointAccount::$totalReachedSkillPoints
private

Definition at line 29 of file class.ilTestSkillPointAccount.php.

Referenced by getTotalReachedSkillPoints().


The documentation for this class was generated from the following file: