ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestEvaluationUserData Class Reference
+ Collaboration diagram for ilTestEvaluationUserData:

Public Member Functions

 __sleep ()
 
 __construct (int $passScoring)
 
 getPassScoring ()
 
 setPassScoring (int $passScoring)
 
 getPassed ()
 
 setPassed (bool $passed)
 
 getName ()
 
 setName ($name)
 
 getLogin ()
 
 setLogin (string $login)
 
 isSubmitted ()
 
 setSubmitted (bool $submitted)
 
 getReached ()
 
 setReached (float $reached)
 
 getMaxpoints ()
 
 setMaxpoints (float $max_points)
 
 getReachedPointsInPercent ()
 
 getMark ()
 
 setMark (string $a_mark)
 
 getQuestionsWorkedThrough ()
 
 setQuestionsWorkedThrough (int $nr)
 
 getNumberOfQuestions ()
 
 setNumberOfQuestions (int $nr)
 
 getQuestionsWorkedThroughInPercent ()
 
 getTimeOfWork ()
 
 setTimeOfWork (string $time_of_work)
 
 getFirstVisit ()
 
 setFirstVisit (int $time)
 
 getLastVisit ()
 
 setLastVisit (int $time)
 
 getPasses ()
 
 addPass (int $pass_nr, ilTestEvaluationPassData $pass)
 
 getPass (int $pass_nr)
 
 getPassCount ()
 
 getScoredPass ()
 
 getBestPass ()
 This is used in the export of test results Aligned with ilObjTest::_getBestPass: from passes with equal points the first one wins. More...
 
 getLastPass ()
 
 getFinishedPasses ()
 
 getLastFinishedPass ()
 
 setLastFinishedPass (?int $pass=null)
 
 addQuestionTitle (int $question_id, string $question_title)
 
 getQuestionTitles ()
 
 getQuestions (int $pass=0)
 
 addQuestion (int $original_id, int $question_id, float $max_points, int $sequence=null, int $pass=0)
 
 getQuestion (int $index, int $pass=0)
 
 getQuestionCount (int $pass=0)
 
 getReachedPoints (int $pass=0)
 
 getAvailablePoints (int $pass=0)
 
 getReachedPointsInPercentForPass (int $pass=0)
 
 setUserID (int $user_id)
 
 getUserID ()
 
 setMarkOfficial (string $a_mark_official)
 
 getMarkOfficial ()
 
 getScoredPassObject ()
 returns the object of class ilTestEvaluationPassData that relates to the the scored test pass (best pass / last pass) More...
 
 getRequestedHintsCountFromScoredPass ()
 returns the count of hints requested by participant for scored testpass More...
 
 getExamIdFromScoredPass ()
 
 getRequestedHintsCount (int $pass)
 returns the count of hints requested by participant for given testpass More...
 
 getBestPassObject ()
 returns the object of class ilTestEvaluationPassData that relates to the the best test pass More...
 
 getLastPassObject ()
 returns the object of class ilTestEvaluationPassData that relates to the the last test pass More...
 
 doesObligationsAnsweredPassExist ()
 returns the fact wether a test pass with all obligations answered exists or not More...
 
 areObligationsAnswered ()
 returns the fact wether all obligations in the scored test pass are answered or not More...
 

Data Fields

string $name
 
string $login = ''
 
int $user_id = null
 
float $reached
 
float $maxpoints
 
string $mark
 
string $mark_official
 
int $questionsWorkedThrough
 
int $numberOfQuestions
 
string $timeOfWork
 
int $firstVisit
 
int $lastVisit
 
bool $passed
 
array $passes
 
int $lastFinishedPass
 
array $questions
 

Protected Attributes

bool $submitted
 

Private Attributes

 $questionTitles
 
int $passScoring
 Pass Scoring (Last pass = 0, Best pass = 1) More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilTestEvaluationUserData::__construct ( int  $passScoring)

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

References $passScoring.

74  {
75  $this->passes = [];
76  $this->questions = [];
77  $this->passed = false;
78  $this->passScoring = $passScoring;
79  }
int $passScoring
Pass Scoring (Last pass = 0, Best pass = 1)

Member Function Documentation

◆ __sleep()

ilTestEvaluationUserData::__sleep ( )

Definition at line 66 of file class.ilTestEvaluationUserData.php.

67  {
68  return array('questions', 'passes', 'passed', 'lastVisit', 'firstVisit', 'timeOfWork', 'numberOfQuestions',
69  'questionsWorkedThrough', 'mark_official', 'mark', 'maxpoints', 'reached', 'user_id', 'login',
70  'name', 'passScoring');
71  }

◆ addPass()

ilTestEvaluationUserData::addPass ( int  $pass_nr,
ilTestEvaluationPassData  $pass 
)

Definition at line 251 of file class.ilTestEvaluationUserData.php.

251  : void
252  {
253  $this->passes[$pass_nr] = $pass;
254  }

◆ addQuestion()

ilTestEvaluationUserData::addQuestion ( int  $original_id,
int  $question_id,
float  $max_points,
int  $sequence = null,
int  $pass = 0 
)

Definition at line 346 of file class.ilTestEvaluationUserData.php.

346  : void
347  {
348  if (!isset($this->questions[$pass])) {
349  $this->questions[$pass] = [];
350  }
351 
352  $this->questions[$pass][] = [
353  'id' => $question_id, // the so called "aid" from any historical time
354  'o_id' => $original_id, // when the "aid" was valid this was the "id"
355  'points' => $max_points,
356  'sequence' => $sequence
357  ];
358  }

◆ addQuestionTitle()

ilTestEvaluationUserData::addQuestionTitle ( int  $question_id,
string  $question_title 
)

Definition at line 324 of file class.ilTestEvaluationUserData.php.

324  : void
325  {
326  $this->questionTitles[$question_id] = $question_title;
327  }

◆ areObligationsAnswered()

ilTestEvaluationUserData::areObligationsAnswered ( )

returns the fact wether all obligations in the scored test pass are answered or not

Definition at line 542 of file class.ilTestEvaluationUserData.php.

References getScoredPassObject().

542  : bool
543  {
544  return $this->getScoredPassObject()->areObligationsAnswered();
545  }
getScoredPassObject()
returns the object of class ilTestEvaluationPassData that relates to the the scored test pass (best p...
+ Here is the call graph for this function:

◆ doesObligationsAnsweredPassExist()

ilTestEvaluationUserData::doesObligationsAnsweredPassExist ( )

returns the fact wether a test pass with all obligations answered exists or not

Definition at line 527 of file class.ilTestEvaluationUserData.php.

Referenced by getBestPass(), and getBestPassObject().

527  : bool
528  {
529  foreach ($this->passes as $pass) {
530  if ($pass->areObligationsAnswered()) {
531  return true;
532  }
533  }
534 
535  return false;
536  }
+ Here is the caller graph for this function:

◆ getAvailablePoints()

ilTestEvaluationUserData::getAvailablePoints ( int  $pass = 0)

Definition at line 388 of file class.ilTestEvaluationUserData.php.

Referenced by getMaxpoints(), and getReachedPointsInPercentForPass().

388  : float
389  {
390  if (!isset($this->passes[$pass])) {
391  $pass = 0;
392  }
393 
394  if (!isset($this->passes[$pass])) {
395  return 0;
396  }
397 
398  $available = $this->passes[$pass]->getMaxPoints();
399  $available = round($available, 2);
400 
401  return $available;
402  }
+ Here is the caller graph for this function:

◆ getBestPass()

ilTestEvaluationUserData::getBestPass ( )

This is used in the export of test results Aligned with ilObjTest::_getBestPass: from passes with equal points the first one wins.

Definition at line 278 of file class.ilTestEvaluationUserData.php.

References $reached, doesObligationsAnsweredPassExist(), and getReachedPointsInPercentForPass().

Referenced by getScoredPass().

278  : int
279  {
280  $bestpoints = 0;
281  $bestpass = null;
282 
283  $obligationsAnsweredPassExists = $this->doesObligationsAnsweredPassExist();
284 
285  foreach ($this->passes as $pass) {
286  $reached = $this->getReachedPointsInPercentForPass($pass->getPass());
287 
288  if (($reached > $bestpoints
289  && ($pass->areObligationsAnswered() || !$obligationsAnsweredPassExists))
290  || !isset($bestpass)) {
291  $bestpoints = $reached;
292  $bestpass = $pass->getPass();
293  }
294  }
295 
296  return (int) $bestpass;
297  }
doesObligationsAnsweredPassExist()
returns the fact wether a test pass with all obligations answered exists or not
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBestPassObject()

ilTestEvaluationUserData::getBestPassObject ( )

returns the object of class ilTestEvaluationPassData that relates to the the best test pass

Definition at line 485 of file class.ilTestEvaluationUserData.php.

References $reached, doesObligationsAnsweredPassExist(), and getReachedPointsInPercentForPass().

Referenced by getScoredPassObject().

486  {
487  $bestpoints = 0;
488  $bestpassObject = 0;
489 
490  $obligationsAnsweredPassExists = $this->doesObligationsAnsweredPassExist();
491 
492  foreach ($this->passes as $pass) {
493  $reached = $this->getReachedPointsInPercentForPass($pass->getPass());
494 
495  if ($reached >= $bestpoints && ($pass->areObligationsAnswered() || !$obligationsAnsweredPassExists)) {
496  $bestpoints = $reached;
497  $bestpassObject = $pass;
498  }
499  }
500 
501  return $bestpassObject;
502  }
doesObligationsAnsweredPassExist()
returns the fact wether a test pass with all obligations answered exists or not
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getExamIdFromScoredPass()

ilTestEvaluationUserData::getExamIdFromScoredPass ( )

Definition at line 453 of file class.ilTestEvaluationUserData.php.

References getScoredPass().

453  : string
454  {
455  $examId = '';
456  $scoredPass = $this->getScoredPass();
457 
458  if (isset($this->passes[$scoredPass]) && $this->passes[$scoredPass] instanceof ilTestEvaluationPassData) {
459  $examId = $this->passes[$scoredPass]->getExamId();
460  }
461 
462  return $examId;
463  }
+ Here is the call graph for this function:

◆ getFinishedPasses()

ilTestEvaluationUserData::getFinishedPasses ( )

Definition at line 310 of file class.ilTestEvaluationUserData.php.

References getLastFinishedPass().

310  : int
311  {
312  return $this->getLastFinishedPass() === null ? 0 : $this->getLastFinishedPass() + 1;
313  }
+ Here is the call graph for this function:

◆ getFirstVisit()

ilTestEvaluationUserData::getFirstVisit ( )

Definition at line 223 of file class.ilTestEvaluationUserData.php.

References $firstVisit.

223  : int
224  {
225  return $this->firstVisit;
226  }

◆ getLastFinishedPass()

ilTestEvaluationUserData::getLastFinishedPass ( )

Definition at line 315 of file class.ilTestEvaluationUserData.php.

References $lastFinishedPass.

Referenced by getFinishedPasses().

315  : ?int
316  {
318  }
+ Here is the caller graph for this function:

◆ getLastPass()

ilTestEvaluationUserData::getLastPass ( )

Definition at line 299 of file class.ilTestEvaluationUserData.php.

Referenced by ilTestEvaluationFactory\getQuestionsForParticipantPassesForRandomTests(), and getScoredPass().

299  : int
300  {
301  $lastpass = 0;
302  foreach (array_keys($this->passes) as $pass) {
303  if ($pass > $lastpass) {
304  $lastpass = $pass;
305  }
306  }
307  return $lastpass;
308  }
+ Here is the caller graph for this function:

◆ getLastPassObject()

ilTestEvaluationUserData::getLastPassObject ( )

returns the object of class ilTestEvaluationPassData that relates to the the last test pass

Definition at line 508 of file class.ilTestEvaluationUserData.php.

Referenced by getScoredPassObject().

509  {
510  $lastpassIndex = 0;
511 
512  foreach (array_keys($this->passes) as $passIndex) {
513  if ($passIndex > $lastpassIndex) {
514  $lastpassIndex = $passIndex;
515  }
516  }
517 
518  $lastpassObject = $this->passes[$lastpassIndex];
519 
520  return $lastpassObject;
521  }
+ Here is the caller graph for this function:

◆ getLastVisit()

ilTestEvaluationUserData::getLastVisit ( )

Definition at line 233 of file class.ilTestEvaluationUserData.php.

References $lastVisit.

233  : int
234  {
235  return $this->lastVisit;
236  }

◆ getLogin()

ilTestEvaluationUserData::getLogin ( )

Definition at line 111 of file class.ilTestEvaluationUserData.php.

References $login.

111  : string
112  {
113  return $this->login;
114  }

◆ getMark()

ilTestEvaluationUserData::getMark ( )

Definition at line 156 of file class.ilTestEvaluationUserData.php.

References $mark.

156  : string
157  {
158  return $this->mark;
159  }

◆ getMarkOfficial()

ilTestEvaluationUserData::getMarkOfficial ( )

Definition at line 427 of file class.ilTestEvaluationUserData.php.

References $mark_official.

427  : string
428  {
429  return $this->mark_official;
430  }

◆ getMaxpoints()

ilTestEvaluationUserData::getMaxpoints ( )

Definition at line 141 of file class.ilTestEvaluationUserData.php.

References getAvailablePoints(), and getScoredPass().

141  : float
142  {
143  return $this->getAvailablePoints($this->getScoredPass());
144  }
+ Here is the call graph for this function:

◆ getName()

ilTestEvaluationUserData::getName ( )

Definition at line 101 of file class.ilTestEvaluationUserData.php.

References $name.

Referenced by ilTestScoringByQuestionsGUI\appendUserNameToModal().

101  : string
102  {
103  return $this->name;
104  }
+ Here is the caller graph for this function:

◆ getNumberOfQuestions()

ilTestEvaluationUserData::getNumberOfQuestions ( )

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

References getScoredPass().

Referenced by getQuestionsWorkedThroughInPercent().

185  : int
186  {
187  $questionpass = $this->getScoredPass();
188  if (!isset($this->passes[$questionpass])) {
189  $questionpass = 0;
190  }
191 
192  if (isset($this->passes[$questionpass])) {
193  return $this->passes[$questionpass]->getQuestionCount();
194  }
195 
196  return 0;
197  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPass()

ilTestEvaluationUserData::getPass ( int  $pass_nr)

Definition at line 256 of file class.ilTestEvaluationUserData.php.

257  {
258  return $this->passes[$pass_nr] ?? null;
259  }

◆ getPassCount()

ilTestEvaluationUserData::getPassCount ( )

Definition at line 261 of file class.ilTestEvaluationUserData.php.

261  : int
262  {
263  return count($this->passes);
264  }

◆ getPassed()

ilTestEvaluationUserData::getPassed ( )

Definition at line 91 of file class.ilTestEvaluationUserData.php.

References $passed.

91  : bool
92  {
93  return $this->passed;
94  }

◆ getPasses()

ilTestEvaluationUserData::getPasses ( )
Returns
array<int, ilTestEvaluationPassData>

Definition at line 246 of file class.ilTestEvaluationUserData.php.

References $passes.

Referenced by ilTestScoring\recalculatePasses().

246  : array
247  {
248  return $this->passes;
249  }
+ Here is the caller graph for this function:

◆ getPassScoring()

ilTestEvaluationUserData::getPassScoring ( )

Definition at line 81 of file class.ilTestEvaluationUserData.php.

References $passScoring.

Referenced by getScoredPass(), and getScoredPassObject().

81  : int
82  {
83  return $this->passScoring;
84  }
int $passScoring
Pass Scoring (Last pass = 0, Best pass = 1)
+ Here is the caller graph for this function:

◆ getQuestion()

ilTestEvaluationUserData::getQuestion ( int  $index,
int  $pass = 0 
)
Returns
array{id: int, o_id: int, points: float, sequenence: ?int}|null

Definition at line 363 of file class.ilTestEvaluationUserData.php.

363  : ?array
364  {
365  return $this->questions[$pass][$index] ?? null;
366  }

◆ getQuestionCount()

ilTestEvaluationUserData::getQuestionCount ( int  $pass = 0)

Definition at line 368 of file class.ilTestEvaluationUserData.php.

368  : int
369  {
370  $count = 0;
371  if (array_key_exists($pass, $this->passes)) {
372  $count = $this->passes[$pass]->getQuestionCount();
373  }
374  return $count;
375  }

◆ getQuestions()

ilTestEvaluationUserData::getQuestions ( int  $pass = 0)
Returns
null|list<array{id: int, o_id: int, points: float, sequenence: ?int}>

Definition at line 341 of file class.ilTestEvaluationUserData.php.

341  : ?array
342  {
343  return $this->questions[$pass] ?? null;
344  }

◆ getQuestionsWorkedThrough()

ilTestEvaluationUserData::getQuestionsWorkedThrough ( )

Definition at line 166 of file class.ilTestEvaluationUserData.php.

References getScoredPass().

Referenced by getQuestionsWorkedThroughInPercent().

166  : int
167  {
168  $questionpass = $this->getScoredPass();
169  if (!isset($this->passes[$questionpass])) {
170  $questionpass = 0;
171  }
172 
173  if (isset($this->passes[$questionpass])) {
174  return $this->passes[$questionpass]->getNrOfAnsweredQuestions();
175  }
176 
177  return 0;
178  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionsWorkedThroughInPercent()

ilTestEvaluationUserData::getQuestionsWorkedThroughInPercent ( )

Definition at line 204 of file class.ilTestEvaluationUserData.php.

References getNumberOfQuestions(), and getQuestionsWorkedThrough().

204  : float
205  {
206  return $this->getNumberOfQuestions() ? $this->getQuestionsWorkedThrough() / $this->getNumberOfQuestions() * 100.0 : 0;
207  }
+ Here is the call graph for this function:

◆ getQuestionTitles()

ilTestEvaluationUserData::getQuestionTitles ( )
Returns
array<string>

Definition at line 333 of file class.ilTestEvaluationUserData.php.

References $questionTitles.

333  : array
334  {
335  return $this->questionTitles;
336  }

◆ getReached()

ilTestEvaluationUserData::getReached ( )

Definition at line 131 of file class.ilTestEvaluationUserData.php.

References getReachedPoints(), and getScoredPass().

Referenced by getReachedPointsInPercent().

131  : float
132  {
133  return $this->getReachedPoints($this->getScoredPass());
134  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getReachedPoints()

ilTestEvaluationUserData::getReachedPoints ( int  $pass = 0)

Definition at line 377 of file class.ilTestEvaluationUserData.php.

References $reached.

Referenced by getReached(), and getReachedPointsInPercentForPass().

377  : float
378  {
379  $reached = 0;
380  if (array_key_exists($pass, $this->passes)) {
381  $reached = $this->passes[$pass]->getReachedPoints();
382  }
383  $reached = ($reached < 0) ? 0 : $reached;
384  $reached = round($reached, 2);
385  return $reached;
386  }
+ Here is the caller graph for this function:

◆ getReachedPointsInPercent()

ilTestEvaluationUserData::getReachedPointsInPercent ( )

Definition at line 151 of file class.ilTestEvaluationUserData.php.

References getReached().

151  : float
152  {
153  return $this->getMaxPoints() ? $this->getReached() / $this->getMaxPoints() * 100.0 : 0;
154  }
+ Here is the call graph for this function:

◆ getReachedPointsInPercentForPass()

ilTestEvaluationUserData::getReachedPointsInPercentForPass ( int  $pass = 0)

Definition at line 404 of file class.ilTestEvaluationUserData.php.

References getAvailablePoints(), and getReachedPoints().

Referenced by getBestPass(), and getBestPassObject().

404  : float
405  {
406  $reached = $this->getReachedPoints($pass);
407  $available = $this->getAvailablePoints($pass);
408  $percent = ($available > 0) ? $reached / $available : 0;
409  return $percent;
410  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequestedHintsCount()

ilTestEvaluationUserData::getRequestedHintsCount ( int  $pass)

returns the count of hints requested by participant for given testpass

Exceptions
ilTestException

Definition at line 470 of file class.ilTestEvaluationUserData.php.

Referenced by getRequestedHintsCountFromScoredPass().

470  : int
471  {
472  if (!isset($this->passes[$pass]) || !($this->passes[$pass] instanceof ilTestEvaluationPassData)) {
473  throw new ilTestException("invalid pass index given: $pass");
474  }
475 
476  $requestedHintsCount = $this->passes[$pass]->getRequestedHintsCount();
477 
478  return $requestedHintsCount;
479  }
Base Exception for all Exceptions relating to Modules/Test.
+ Here is the caller graph for this function:

◆ getRequestedHintsCountFromScoredPass()

ilTestEvaluationUserData::getRequestedHintsCountFromScoredPass ( )

returns the count of hints requested by participant for scored testpass

Definition at line 448 of file class.ilTestEvaluationUserData.php.

References getRequestedHintsCount(), and getScoredPass().

448  : int
449  {
450  return $this->getRequestedHintsCount($this->getScoredPass());
451  }
getRequestedHintsCount(int $pass)
returns the count of hints requested by participant for given testpass
+ Here is the call graph for this function:

◆ getScoredPass()

ilTestEvaluationUserData::getScoredPass ( )

Definition at line 266 of file class.ilTestEvaluationUserData.php.

References getBestPass(), getLastPass(), and getPassScoring().

Referenced by getExamIdFromScoredPass(), getMaxpoints(), getNumberOfQuestions(), getQuestionsWorkedThrough(), getReached(), and getRequestedHintsCountFromScoredPass().

266  : int
267  {
268  if ($this->getPassScoring() === 1) {
269  return $this->getBestPass();
270  }
271 
272  return $this->getLastPass();
273  }
getBestPass()
This is used in the export of test results Aligned with ilObjTest::_getBestPass: from passes with equ...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getScoredPassObject()

ilTestEvaluationUserData::getScoredPassObject ( )

returns the object of class ilTestEvaluationPassData that relates to the the scored test pass (best pass / last pass)

Definition at line 436 of file class.ilTestEvaluationUserData.php.

References getBestPassObject(), getLastPassObject(), and getPassScoring().

Referenced by areObligationsAnswered().

437  {
438  if ($this->getPassScoring() === 1) {
439  return $this->getBestPassObject();
440  }
441 
442  return $this->getLastPassObject();
443  }
getBestPassObject()
returns the object of class ilTestEvaluationPassData that relates to the the best test pass ...
getLastPassObject()
returns the object of class ilTestEvaluationPassData that relates to the the last test pass ...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTimeOfWork()

ilTestEvaluationUserData::getTimeOfWork ( )

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

209  : int
210  {
211  $time = 0;
212  foreach ($this->passes as $pass) {
213  $time += $pass->getWorkingTime();
214  }
215  return $time;
216  }

◆ getUserID()

ilTestEvaluationUserData::getUserID ( )

Definition at line 417 of file class.ilTestEvaluationUserData.php.

References $user_id.

417  : ?int
418  {
419  return $this->user_id;
420  }

◆ isSubmitted()

ilTestEvaluationUserData::isSubmitted ( )

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

References $submitted.

121  : bool
122  {
123  return $this->submitted;
124  }

◆ setFirstVisit()

ilTestEvaluationUserData::setFirstVisit ( int  $time)

Definition at line 228 of file class.ilTestEvaluationUserData.php.

Referenced by ilTestEvaluationFactory\addVisitingTimeToUserEvalData().

228  : void
229  {
230  $this->firstVisit = $time;
231  }
+ Here is the caller graph for this function:

◆ setLastFinishedPass()

ilTestEvaluationUserData::setLastFinishedPass ( ?int  $pass = null)

Definition at line 320 of file class.ilTestEvaluationUserData.php.

320  : void
321  {
322  $this->lastFinishedPass = $pass;
323  }

◆ setLastVisit()

ilTestEvaluationUserData::setLastVisit ( int  $time)

Definition at line 238 of file class.ilTestEvaluationUserData.php.

Referenced by ilTestEvaluationFactory\addVisitingTimeToUserEvalData().

238  : void
239  {
240  $this->lastVisit = $time;
241  }
+ Here is the caller graph for this function:

◆ setLogin()

ilTestEvaluationUserData::setLogin ( string  $login)

Definition at line 116 of file class.ilTestEvaluationUserData.php.

References $login, and ILIAS\UI\examples\Symbol\Glyph\Login\login().

116  : void
117  {
118  $this->login = $login;
119  }
+ Here is the call graph for this function:

◆ setMark()

ilTestEvaluationUserData::setMark ( string  $a_mark)

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

161  : void
162  {
163  $this->mark = $a_mark;
164  }

◆ setMarkOfficial()

ilTestEvaluationUserData::setMarkOfficial ( string  $a_mark_official)

Definition at line 422 of file class.ilTestEvaluationUserData.php.

422  : void
423  {
424  $this->mark_official = $a_mark_official;
425  }

◆ setMaxpoints()

ilTestEvaluationUserData::setMaxpoints ( float  $max_points)

Definition at line 146 of file class.ilTestEvaluationUserData.php.

146  : void
147  {
148  $this->maxpoints = $max_points;
149  }

◆ setName()

ilTestEvaluationUserData::setName (   $name)

Definition at line 106 of file class.ilTestEvaluationUserData.php.

References $name.

106  : void
107  {
108  $this->name = $name;
109  }

◆ setNumberOfQuestions()

ilTestEvaluationUserData::setNumberOfQuestions ( int  $nr)

Definition at line 199 of file class.ilTestEvaluationUserData.php.

199  : void
200  {
201  $this->numberOfQuestions = $nr;
202  }

◆ setPassed()

ilTestEvaluationUserData::setPassed ( bool  $passed)

Definition at line 96 of file class.ilTestEvaluationUserData.php.

References $passed.

96  : void
97  {
98  $this->passed = $passed;
99  }

◆ setPassScoring()

ilTestEvaluationUserData::setPassScoring ( int  $passScoring)

Definition at line 86 of file class.ilTestEvaluationUserData.php.

References $passScoring.

86  : void
87  {
88  $this->passScoring = $passScoring;
89  }
int $passScoring
Pass Scoring (Last pass = 0, Best pass = 1)

◆ setQuestionsWorkedThrough()

ilTestEvaluationUserData::setQuestionsWorkedThrough ( int  $nr)

Definition at line 180 of file class.ilTestEvaluationUserData.php.

180  : void
181  {
182  $this->questionsWorkedThrough = $nr;
183  }

◆ setReached()

ilTestEvaluationUserData::setReached ( float  $reached)

Definition at line 136 of file class.ilTestEvaluationUserData.php.

References $reached.

136  : void
137  {
138  $this->reached = $reached;
139  }

◆ setSubmitted()

ilTestEvaluationUserData::setSubmitted ( bool  $submitted)

Definition at line 126 of file class.ilTestEvaluationUserData.php.

References $submitted.

126  : void
127  {
128  $this->submitted = $submitted;
129  }

◆ setTimeOfWork()

ilTestEvaluationUserData::setTimeOfWork ( string  $time_of_work)

Definition at line 218 of file class.ilTestEvaluationUserData.php.

218  : void
219  {
220  $this->timeOfWork = $time_of_work;
221  }

◆ setUserID()

ilTestEvaluationUserData::setUserID ( int  $user_id)

Definition at line 412 of file class.ilTestEvaluationUserData.php.

References $user_id.

412  : void
413  {
414  $this->user_id = $user_id;
415  }

Field Documentation

◆ $firstVisit

int ilTestEvaluationUserData::$firstVisit

Definition at line 47 of file class.ilTestEvaluationUserData.php.

Referenced by getFirstVisit().

◆ $lastFinishedPass

int ilTestEvaluationUserData::$lastFinishedPass

Definition at line 55 of file class.ilTestEvaluationUserData.php.

Referenced by getLastFinishedPass().

◆ $lastVisit

int ilTestEvaluationUserData::$lastVisit

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

Referenced by getLastVisit().

◆ $login

string ilTestEvaluationUserData::$login = ''

Definition at line 37 of file class.ilTestEvaluationUserData.php.

Referenced by getLogin(), and setLogin().

◆ $mark

string ilTestEvaluationUserData::$mark

Definition at line 42 of file class.ilTestEvaluationUserData.php.

Referenced by getMark().

◆ $mark_official

string ilTestEvaluationUserData::$mark_official

Definition at line 43 of file class.ilTestEvaluationUserData.php.

Referenced by getMarkOfficial().

◆ $maxpoints

float ilTestEvaluationUserData::$maxpoints

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

◆ $name

string ilTestEvaluationUserData::$name

Definition at line 36 of file class.ilTestEvaluationUserData.php.

Referenced by getName(), and setName().

◆ $numberOfQuestions

int ilTestEvaluationUserData::$numberOfQuestions

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

◆ $passed

bool ilTestEvaluationUserData::$passed

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

Referenced by getPassed(), and setPassed().

◆ $passes

array ilTestEvaluationUserData::$passes

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

Referenced by getPasses().

◆ $passScoring

int ilTestEvaluationUserData::$passScoring
private

Pass Scoring (Last pass = 0, Best pass = 1)

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

Referenced by __construct(), getPassScoring(), and setPassScoring().

◆ $questions

array ilTestEvaluationUserData::$questions

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

◆ $questionsWorkedThrough

int ilTestEvaluationUserData::$questionsWorkedThrough

Definition at line 44 of file class.ilTestEvaluationUserData.php.

◆ $questionTitles

ilTestEvaluationUserData::$questionTitles
private

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

Referenced by getQuestionTitles().

◆ $reached

float ilTestEvaluationUserData::$reached

◆ $submitted

bool ilTestEvaluationUserData::$submitted
protected

Definition at line 39 of file class.ilTestEvaluationUserData.php.

Referenced by isSubmitted(), and setSubmitted().

◆ $timeOfWork

string ilTestEvaluationUserData::$timeOfWork

Definition at line 46 of file class.ilTestEvaluationUserData.php.

◆ $user_id

int ilTestEvaluationUserData::$user_id = null

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

Referenced by getUserID(), and setUserID().


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