ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestParticipantScoring Class Reference
+ Collaboration diagram for ilTestParticipantScoring:

Public Member Functions

 __construct ()
 ilTestParticipantScoring constructor. More...
 
 getActiveId ()
 
 setActiveId (int $activeId)
 
 getScoredPass ()
 
 setScoredPass (int $scoredPass)
 
 getAnsweredQuestions ()
 
 setAnsweredQuestions (int $answeredQuestions)
 
 getTotalQuestions ()
 
 setTotalQuestions (int $totalQuestions)
 
 getReachedPoints ()
 
 setReachedPoints (float $reachedPoints)
 
 getMaxPoints ()
 
 setMaxPoints (float $maxPoints)
 
 isPassed ()
 
 setPassed (bool $passed)
 
 getFinalMark ()
 
 setFinalMark (string $finalMark)
 
 getPercentResult ()
 

Protected Attributes

 $activeId
 
 $scoredPass
 
 $answeredQuestions
 
 $totalQuestions
 
 $reachedPoints
 
 $maxPoints
 
 $passed
 
 $finalMark
 

Detailed Description

Definition at line 28 of file class.ilTestParticipantScoring.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestParticipantScoring::__construct ( )

ilTestParticipantScoring constructor.

Definition at line 73 of file class.ilTestParticipantScoring.php.

74  {
75  $this->activeId = 0;
76  $this->scoredPass = 0;
77  $this->answeredQuestions = 0;
78  $this->totalQuestions = 0;
79  $this->reachedPoints = 0.0;
80  $this->maxPoints = 0.0;
81  $this->passed = false;
82  $this->finalMark = '';
83  }

Member Function Documentation

◆ getActiveId()

ilTestParticipantScoring::getActiveId ( )
Returns
int

Definition at line 89 of file class.ilTestParticipantScoring.php.

References $activeId.

89  : int
90  {
91  return $this->activeId;
92  }

◆ getAnsweredQuestions()

ilTestParticipantScoring::getAnsweredQuestions ( )
Returns
int

Definition at line 121 of file class.ilTestParticipantScoring.php.

References $answeredQuestions.

121  : int
122  {
124  }

◆ getFinalMark()

ilTestParticipantScoring::getFinalMark ( )
Returns
string

Definition at line 201 of file class.ilTestParticipantScoring.php.

References $finalMark.

201  : string
202  {
203  return $this->finalMark;
204  }

◆ getMaxPoints()

ilTestParticipantScoring::getMaxPoints ( )
Returns
float

Definition at line 169 of file class.ilTestParticipantScoring.php.

References $maxPoints.

Referenced by getPercentResult().

169  : float
170  {
171  return $this->maxPoints;
172  }
+ Here is the caller graph for this function:

◆ getPercentResult()

ilTestParticipantScoring::getPercentResult ( )
Returns
int

Definition at line 217 of file class.ilTestParticipantScoring.php.

References getMaxPoints(), and getReachedPoints().

218  {
219  if ($this->getMaxPoints() > 0) {
220  return $this->getReachedPoints() / $this->getMaxPoints();
221  }
222 
223  return 0;
224  }
+ Here is the call graph for this function:

◆ getReachedPoints()

ilTestParticipantScoring::getReachedPoints ( )
Returns
float

Definition at line 153 of file class.ilTestParticipantScoring.php.

References $reachedPoints.

Referenced by getPercentResult().

153  : float
154  {
155  return $this->reachedPoints;
156  }
+ Here is the caller graph for this function:

◆ getScoredPass()

ilTestParticipantScoring::getScoredPass ( )
Returns
int

Definition at line 105 of file class.ilTestParticipantScoring.php.

References $scoredPass.

105  : int
106  {
107  return $this->scoredPass;
108  }

◆ getTotalQuestions()

ilTestParticipantScoring::getTotalQuestions ( )
Returns
int

Definition at line 137 of file class.ilTestParticipantScoring.php.

References $totalQuestions.

137  : int
138  {
139  return $this->totalQuestions;
140  }

◆ isPassed()

ilTestParticipantScoring::isPassed ( )
Returns
bool

Definition at line 185 of file class.ilTestParticipantScoring.php.

References $passed.

185  : bool
186  {
187  return $this->passed;
188  }

◆ setActiveId()

ilTestParticipantScoring::setActiveId ( int  $activeId)
Parameters
int$activeId

Definition at line 97 of file class.ilTestParticipantScoring.php.

References $activeId.

98  {
99  $this->activeId = $activeId;
100  }

◆ setAnsweredQuestions()

ilTestParticipantScoring::setAnsweredQuestions ( int  $answeredQuestions)
Parameters
int$answeredQuestions

Definition at line 129 of file class.ilTestParticipantScoring.php.

References $answeredQuestions.

130  {
131  $this->answeredQuestions = $answeredQuestions;
132  }

◆ setFinalMark()

ilTestParticipantScoring::setFinalMark ( string  $finalMark)
Parameters
string$finalMark

Definition at line 209 of file class.ilTestParticipantScoring.php.

References $finalMark.

210  {
211  $this->finalMark = $finalMark;
212  }

◆ setMaxPoints()

ilTestParticipantScoring::setMaxPoints ( float  $maxPoints)
Parameters
float$maxPoints

Definition at line 177 of file class.ilTestParticipantScoring.php.

References $maxPoints.

178  {
179  $this->maxPoints = $maxPoints;
180  }

◆ setPassed()

ilTestParticipantScoring::setPassed ( bool  $passed)
Parameters
bool$passed

Definition at line 193 of file class.ilTestParticipantScoring.php.

References $passed.

194  {
195  $this->passed = $passed;
196  }

◆ setReachedPoints()

ilTestParticipantScoring::setReachedPoints ( float  $reachedPoints)
Parameters
float$reachedPoints

Definition at line 161 of file class.ilTestParticipantScoring.php.

References $reachedPoints.

162  {
163  $this->reachedPoints = $reachedPoints;
164  }

◆ setScoredPass()

ilTestParticipantScoring::setScoredPass ( int  $scoredPass)
Parameters
int$scoredPass

Definition at line 113 of file class.ilTestParticipantScoring.php.

References $scoredPass.

114  {
115  $this->scoredPass = $scoredPass;
116  }

◆ setTotalQuestions()

ilTestParticipantScoring::setTotalQuestions ( int  $totalQuestions)
Parameters
int$totalQuestions

Definition at line 145 of file class.ilTestParticipantScoring.php.

References $totalQuestions.

146  {
147  $this->totalQuestions = $totalQuestions;
148  }

Field Documentation

◆ $activeId

ilTestParticipantScoring::$activeId
protected

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

Referenced by getActiveId(), and setActiveId().

◆ $answeredQuestions

ilTestParticipantScoring::$answeredQuestions
protected

◆ $finalMark

ilTestParticipantScoring::$finalMark
protected

Definition at line 68 of file class.ilTestParticipantScoring.php.

Referenced by getFinalMark(), and setFinalMark().

◆ $maxPoints

ilTestParticipantScoring::$maxPoints
protected

Definition at line 58 of file class.ilTestParticipantScoring.php.

Referenced by getMaxPoints(), and setMaxPoints().

◆ $passed

ilTestParticipantScoring::$passed
protected

Definition at line 63 of file class.ilTestParticipantScoring.php.

Referenced by isPassed(), and setPassed().

◆ $reachedPoints

ilTestParticipantScoring::$reachedPoints
protected

Definition at line 53 of file class.ilTestParticipantScoring.php.

Referenced by getReachedPoints(), and setReachedPoints().

◆ $scoredPass

ilTestParticipantScoring::$scoredPass
protected

Definition at line 38 of file class.ilTestParticipantScoring.php.

Referenced by getScoredPass(), and setScoredPass().

◆ $totalQuestions

ilTestParticipantScoring::$totalQuestions
protected

Definition at line 48 of file class.ilTestParticipantScoring.php.

Referenced by getTotalQuestions(), and setTotalQuestions().


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