ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 11 of file class.ilTestSkillPointAccount.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestSkillPointAccount::__construct ( )

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

20  {
21  $this->totalMaxSkillPoints = 0;
22  $this->totalReachedSkillPoints = 0;
23 
24  $this->numBookings = 0;
25  }

Member Function Documentation

◆ addBooking()

ilTestSkillPointAccount::addBooking (   $maxSkillPoints,
  $reachedSkillPoints 
)

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

28  {
29  $this->totalMaxSkillPoints += $maxSkillPoints;
30  $this->totalReachedSkillPoints += $reachedSkillPoints;
31 
32  $this->numBookings++;
33  }

◆ getNumBookings()

ilTestSkillPointAccount::getNumBookings ( )

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

References $numBookings.

Referenced by ilTestSkillEvaluation\doesNumBookingsExceedRequiredBookingsBarrier().

+ Here is the caller graph for this function:

◆ getTotalMaxSkillPoints()

ilTestSkillPointAccount::getTotalMaxSkillPoints ( )

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

References $totalMaxSkillPoints.

Referenced by getTotalReachedSkillPercent().

+ Here is the caller graph for this function:

◆ getTotalReachedSkillPercent()

ilTestSkillPointAccount::getTotalReachedSkillPercent ( )

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

References getTotalMaxSkillPoints(), and getTotalReachedSkillPoints().

51  {
52  return (
53  ($this->getTotalReachedSkillPoints() * 100) / $this->getTotalMaxSkillPoints()
54  );
55  }
+ Here is the call graph for this function:

◆ getTotalReachedSkillPoints()

ilTestSkillPointAccount::getTotalReachedSkillPoints ( )

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

References $totalReachedSkillPoints.

Referenced by getTotalReachedSkillPercent().

+ Here is the caller graph for this function:

Field Documentation

◆ $numBookings

ilTestSkillPointAccount::$numBookings
private

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

Referenced by getNumBookings().

◆ $totalMaxSkillPoints

ilTestSkillPointAccount::$totalMaxSkillPoints
private

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

Referenced by getTotalMaxSkillPoints().

◆ $totalReachedSkillPoints

ilTestSkillPointAccount::$totalReachedSkillPoints
private

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

Referenced by getTotalReachedSkillPoints().


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