ILIAS  release_8 Revision v8.24
ilTestEvaluationUserData Class Reference
+ Collaboration diagram for ilTestEvaluationUserData:

Public Member Functions

 __sleep ()
 
 __construct ($passScoring)
 Constructor. More...
 
 getPassScoring ()
 
 setPassScoring ($passScoring)
 
 getPassed ()
 
 setPassed ($a_passed)
 
 getName ()
 
 setName ($a_name)
 
 getLogin ()
 
 setLogin ($a_login)
 
 isSubmitted ()
 
 setSubmitted ($submitted)
 
 getReached ()
 
 setReached ($a_reached)
 
 getMaxpoints ()
 
 setMaxpoints ($a_max_points)
 
 getReachedPointsInPercent ()
 
 getMark ()
 
 setMark ($a_mark)
 
 getECTSMark ()
 
 setECTSMark ($a_mark_ects)
 
 getQuestionsWorkedThrough ()
 
 setQuestionsWorkedThrough ($a_nr)
 
 getNumberOfQuestions ()
 
 setNumberOfQuestions ($a_nr)
 
 getQuestionsWorkedThroughInPercent ()
 
 getTimeOfWork ()
 
 setTimeOfWork ($a_time_of_work)
 
 getFirstVisit ()
 
 setFirstVisit ($a_time)
 
 getLastVisit ()
 
 setLastVisit ($a_time)
 
 getPasses ()
 
 addPass ($pass_nr, $pass)
 
 getPass ($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 ($pass=null)
 
 addQuestionTitle ($question_id, $question_title)
 
 getQuestionTitles ()
 
 getQuestions ($pass=0)
 
 addQuestion ($original_id, $question_id, $max_points, $sequence=null, $pass=0)
 
 getQuestion ($index, $pass=0)
 
 getQuestionCount ($pass=0)
 
 getReachedPoints ($pass=0)
 
 getAvailablePoints ($pass=0)
 
 getReachedPointsInPercentForPass ($pass=0)
 
 setUserID ($a_usr_id)
 
 getUserID ()
 
 setMarkOfficial ($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 ($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

 $name
 
 $login
 
 $user_id
 
 $reached
 
 $maxpoints
 
 $mark
 
 $mark_official
 
 $markECTS
 
 $questionsWorkedThrough
 
 $numberOfQuestions
 
 $timeOfWork
 
 $firstVisit
 
 $lastVisit
 
 $passed
 
 $passes
 
 $lastFinishedPass
 
 $questions
 

Protected Attributes

 $submitted
 

Private Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilTestEvaluationUserData::__construct (   $passScoring)

Constructor.

@access public

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

175 {
176 $this->passes = array();
177 $this->questions = array();
178 $this->passed = false;
179 $this->passScoring = $passScoring;
180 }
$passScoring
Pass Scoring (Last pass = 0, Best pass = 1)

References $passScoring.

Member Function Documentation

◆ __sleep()

ilTestEvaluationUserData::__sleep ( )

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

163 {
164 return array('questions', 'passes', 'passed', 'lastVisit', 'firstVisit', 'timeOfWork', 'numberOfQuestions',
165 'questionsWorkedThrough', 'markECTS', 'mark_official', 'mark', 'maxpoints', 'reached', 'user_id', 'login',
166 'name', 'passScoring');
167 }

◆ addPass()

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

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

367 {
368 $this->passes[$pass_nr] = $pass;
369 }

◆ addQuestion()

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

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

475 {
476 if (!isset($this->questions[$pass])) {
477 $this->questions[$pass] = array();
478 }
479
480 $this->questions[$pass][] = array(
481 "id" => $question_id, // the so called "aid" from any historical time
482 "o_id" => $original_id, // when the "aid" was valid this was the "id"
483 "points" => $max_points,
484 "sequence" => $sequence
485 );
486 }

◆ addQuestionTitle()

ilTestEvaluationUserData::addQuestionTitle (   $question_id,
  $question_title 
)

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

456 {
457 $this->questionTitles[$question_id] = $question_title;
458 }

◆ areObligationsAnswered()

ilTestEvaluationUserData::areObligationsAnswered ( )

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

Returns
boolean

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

686 : bool
687 {
688 return $this->getScoredPassObject()->areObligationsAnswered();
689 }
getScoredPassObject()
returns the object of class ilTestEvaluationPassData that relates to the the scored test pass (best p...

References getScoredPassObject().

+ 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

Returns
boolean

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

669 : bool
670 {
671 foreach ($this->passes as $pass) {
672 if ($pass->areObligationsAnswered()) {
673 return true;
674 }
675 }
676
677 return false;
678 }

Referenced by getBestPass(), and getBestPassObject().

+ Here is the caller graph for this function:

◆ getAvailablePoints()

ilTestEvaluationUserData::getAvailablePoints (   $pass = 0)

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

518 {
519 $available = 0;
520 if (!is_object($this->passes[$pass])) {
521 $pass = 0;
522 }
523 if (!is_object($this->passes[$pass])) {
524 return 0;
525 }
526 $available = $this->passes[$pass]->getMaxPoints();
527 $available = round($available, 2);
528 return $available;
529 }

Referenced by getMaxpoints(), and getReachedPointsInPercentForPass().

+ 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 401 of file class.ilTestEvaluationUserData.php.

402 {
403 $bestpoints = 0;
404 $bestpass = null;
405
406 $obligationsAnsweredPassExists = $this->doesObligationsAnsweredPassExist();
407
408 foreach ($this->passes as $pass) {
409 $reached = $this->getReachedPointsInPercentForPass($pass->getPass());
410
411 if (($reached > $bestpoints
412 && ($pass->areObligationsAnswered() || !$obligationsAnsweredPassExists))
413 || !isset($bestpass)) {
414 $bestpoints = $reached;
415 $bestpass = $pass->getPass();
416 }
417 }
418
419 return (int) $bestpass;
420 }
doesObligationsAnsweredPassExist()
returns the fact wether a test pass with all obligations answered exists or not

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

Referenced by getScoredPass().

+ 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

Returns
ilTestEvaluationPassData $passDataObject

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

624 {
625 $bestpoints = 0;
626 $bestpassObject = 0;
627
628 $obligationsAnsweredPassExists = $this->doesObligationsAnsweredPassExist();
629
630 foreach ($this->passes as $pass) {
631 $reached = $this->getReachedPointsInPercentForPass($pass->getPass());
632
633 if ($reached >= $bestpoints && ($pass->areObligationsAnswered() || !$obligationsAnsweredPassExists)) {
634 $bestpoints = $reached;
635 $bestpassObject = $pass;
636 }
637 }
638
639 return $bestpassObject;
640 }

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

Referenced by getScoredPassObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getECTSMark()

ilTestEvaluationUserData::getECTSMark ( )

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

273 : ?string
274 {
275 return $this->markECTS;
276 }

References $markECTS.

◆ getExamIdFromScoredPass()

ilTestEvaluationUserData::getExamIdFromScoredPass ( )
Returns
string

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

587 : string
588 {
589 $examId = '';
590 $scoredPass = $this->getScoredPass();
591
592 if (isset($this->passes[$scoredPass]) && $this->passes[$scoredPass] instanceof ilTestEvaluationPassData) {
593 $examId = $this->passes[$scoredPass]->getExamId();
594 }
595
596 return $examId;
597 }

References getScoredPass().

+ Here is the call graph for this function:

◆ getFinishedPasses()

ilTestEvaluationUserData::getFinishedPasses ( )
Returns
int

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

436 {
437 return $this->getLastFinishedPass() === null ? 0 : $this->getLastFinishedPass() + 1;
438 }

References getLastFinishedPass().

+ Here is the call graph for this function:

◆ getFirstVisit()

ilTestEvaluationUserData::getFirstVisit ( )

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

337 : string
338 {
339 return $this->firstVisit;
340 }

References $firstVisit.

◆ getLastFinishedPass()

ilTestEvaluationUserData::getLastFinishedPass ( )
Returns
?int

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

References $lastFinishedPass.

Referenced by getFinishedPasses().

+ Here is the caller graph for this function:

◆ getLastPass()

ilTestEvaluationUserData::getLastPass ( )

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

423 {
424 $lastpass = 0;
425 foreach (array_keys($this->passes) as $pass) {
426 if ($pass > $lastpass) {
427 $lastpass = $pass;
428 }
429 }
430 return $lastpass;
431 }

Referenced by getScoredPass().

+ 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

Returns
ilTestEvaluationPassData $passDataObject

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

649 {
650 $lastpassIndex = 0;
651
652 foreach (array_keys($this->passes) as $passIndex) {
653 if ($passIndex > $lastpassIndex) {
654 $lastpassIndex = $passIndex;
655 }
656 }
657
658 $lastpassObject = $this->passes[$lastpassIndex];
659
660 return $lastpassObject;
661 }

Referenced by getScoredPassObject().

+ Here is the caller graph for this function:

◆ getLastVisit()

ilTestEvaluationUserData::getLastVisit ( )

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

347 : string
348 {
349 return $this->lastVisit;
350 }

References $lastVisit.

◆ getLogin()

ilTestEvaluationUserData::getLogin ( )

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

212 : string
213 {
214 return $this->login ?? '';
215 }

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

+ Here is the call graph for this function:

◆ getMark()

ilTestEvaluationUserData::getMark ( )

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

263 : string
264 {
265 return $this->mark;
266 }

References $mark.

◆ getMarkOfficial()

ilTestEvaluationUserData::getMarkOfficial ( )

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

554 : string
555 {
557 }

References $mark_official.

◆ getMaxpoints()

ilTestEvaluationUserData::getMaxpoints ( )

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

249 {
250 return $this->getAvailablePoints($this->getScoredPass());
251 }

References getAvailablePoints(), and getScoredPass().

+ Here is the call graph for this function:

◆ getName()

ilTestEvaluationUserData::getName ( )

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

202 : string
203 {
204 return $this->name;
205 }

References $name.

Referenced by ilTestScoringByQuestionsGUI\appendUserNameToModal().

+ Here is the caller graph for this function:

◆ getNumberOfQuestions()

ilTestEvaluationUserData::getNumberOfQuestions ( )

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

300 : int
301 {
302 $questionpass = $this->getScoredPass();
303 if (!is_object($this->passes[$questionpass])) {
304 $questionpass = 0;
305 }
306 if (is_object($this->passes[$questionpass])) {
307 return $this->passes[$questionpass]->getQuestionCount();
308 }
309 return 0;
310 // return $this->numberOfQuestions;
311 }

References getScoredPass().

Referenced by getQuestionsWorkedThroughInPercent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPass()

ilTestEvaluationUserData::getPass (   $pass_nr)
Parameters
$pass_nr
Returns
ilTestEvaluationPassData|null

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

376 {
377 if (array_key_exists($pass_nr, $this->passes)) {
378 return $this->passes[$pass_nr];
379 } else {
380 return null;
381 }
382 }

◆ getPassCount()

ilTestEvaluationUserData::getPassCount ( )

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

384 : int
385 {
386 return count($this->passes);
387 }

◆ getPassed()

ilTestEvaluationUserData::getPassed ( )

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

192 : bool
193 {
194 return $this->passed;
195 }

References $passed.

◆ getPasses()

ilTestEvaluationUserData::getPasses ( )

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

357 : array
358 {
359 return $this->passes;
360 }

References $passes.

◆ getPassScoring()

ilTestEvaluationUserData::getPassScoring ( )

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

183 {
184 return $this->passScoring;
185 }

References $passScoring.

Referenced by getScoredPass(), and getScoredPassObject().

+ Here is the caller graph for this function:

◆ getQuestion()

ilTestEvaluationUserData::getQuestion (   $index,
  $pass = 0 
)

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

489 {
490 if (array_key_exists($index, $this->questions[$pass])) {
491 return $this->questions[$pass][$index];
492 } else {
493 return null;
494 }
495 }
$index
Definition: metadata.php:145

References $index.

◆ getQuestionCount()

ilTestEvaluationUserData::getQuestionCount (   $pass = 0)

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

497 : int
498 {
499 $count = 0;
500 if (array_key_exists($pass, $this->passes)) {
501 $count = $this->passes[$pass]->getQuestionCount();
502 }
503 return $count;
504 }

◆ getQuestions()

ilTestEvaluationUserData::getQuestions (   $pass = 0)

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

466 {
467 if (array_key_exists($pass, $this->questions)) {
468 return $this->questions[$pass];
469 } else {
470 return null;
471 }
472 }

◆ getQuestionsWorkedThrough()

ilTestEvaluationUserData::getQuestionsWorkedThrough ( )

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

283 : int
284 {
285 $questionpass = $this->getScoredPass();
286 if (!is_object($this->passes[$questionpass])) {
287 $questionpass = 0;
288 }
289 if (is_object($this->passes[$questionpass])) {
290 return $this->passes[$questionpass]->getNrOfAnsweredQuestions();
291 }
292 return 0;
293 }

References getScoredPass().

Referenced by getQuestionsWorkedThroughInPercent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionsWorkedThroughInPercent()

ilTestEvaluationUserData::getQuestionsWorkedThroughInPercent ( )

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

References getNumberOfQuestions(), and getQuestionsWorkedThrough().

+ Here is the call graph for this function:

◆ getQuestionTitles()

ilTestEvaluationUserData::getQuestionTitles ( )

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

461 {
462 return $this->questionTitles;
463 }

◆ getReached()

ilTestEvaluationUserData::getReached ( )

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

238 : float
239 {
240 return $this->getReachedPoints($this->getScoredPass());
241 }

References getReachedPoints(), and getScoredPass().

Referenced by getReachedPointsInPercent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getReachedPoints()

ilTestEvaluationUserData::getReachedPoints (   $pass = 0)

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

506 : float
507 {
508 $reached = 0;
509 if (array_key_exists($pass, $this->passes)) {
510 $reached = $this->passes[$pass]->getReachedPoints();
511 }
512 $reached = ($reached < 0) ? 0 : $reached;
513 $reached = round($reached, 2);
514 return $reached;
515 }

References $reached.

Referenced by getReached(), and getReachedPointsInPercentForPass().

+ Here is the caller graph for this function:

◆ getReachedPointsInPercent()

ilTestEvaluationUserData::getReachedPointsInPercent ( )

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

259 {
260 return $this->getMaxPoints() ? $this->getReached() / $this->getMaxPoints() * 100.0 : 0;
261 }

References getReached().

+ Here is the call graph for this function:

◆ getReachedPointsInPercentForPass()

ilTestEvaluationUserData::getReachedPointsInPercentForPass (   $pass = 0)

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

532 {
533 $reached = $this->getReachedPoints($pass);
534 $available = $this->getAvailablePoints($pass);
535 $percent = ($available > 0) ? $reached / $available : 0;
536 return $percent;
537 }

References $reached, getAvailablePoints(), and getReachedPoints().

Referenced by getBestPass(), and getBestPassObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequestedHintsCount()

ilTestEvaluationUserData::getRequestedHintsCount (   $pass)

returns the count of hints requested by participant for given testpass

Parameters
integer$pass
Returns
integer $requestedHintsCount
Exceptions
ilTestException

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

606 : int
607 {
608 if (!isset($this->passes[$pass]) || !($this->passes[$pass] instanceof ilTestEvaluationPassData)) {
609 throw new ilTestException("invalid pass index given: $pass");
610 }
611
612 $requestedHintsCount = $this->passes[$pass]->getRequestedHintsCount();
613
614 return $requestedHintsCount;
615 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Referenced by getRequestedHintsCountFromScoredPass().

+ Here is the caller graph for this function:

◆ getRequestedHintsCountFromScoredPass()

ilTestEvaluationUserData::getRequestedHintsCountFromScoredPass ( )

returns the count of hints requested by participant for scored testpass

Returns
integer $requestedHintsCount

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

579 : int
580 {
581 return $this->getRequestedHintsCount($this->getScoredPass());
582 }
getRequestedHintsCount($pass)
returns the count of hints requested by participant for given testpass

References getRequestedHintsCount(), and getScoredPass().

+ Here is the call graph for this function:

◆ getScoredPass()

ilTestEvaluationUserData::getScoredPass ( )

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

390 {
391 if ($this->getPassScoring() == 1) {
392 return $this->getBestPass();
393 } else {
394 return $this->getLastPass();
395 }
396 }
getBestPass()
This is used in the export of test results Aligned with ilObjTest::_getBestPass: from passes with equ...

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

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

+ 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)

Returns
ilTestEvaluationPassData $passDataObject

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

566 {
567 if ($this->getPassScoring() == 1) {
568 return $this->getBestPassObject();
569 } else {
570 return $this->getLastPassObject();
571 }
572 }
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

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

Referenced by areObligationsAnswered().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTimeOfWork()

ilTestEvaluationUserData::getTimeOfWork ( )

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

323 : int
324 {
325 $time = 0;
326 foreach ($this->passes as $pass) {
327 $time += $pass->getWorkingTime();
328 }
329 return $time;
330 }

◆ getUserID()

ilTestEvaluationUserData::getUserID ( )

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

544 : ?int
545 {
546 return $this->user_id;
547 }

References $user_id.

◆ isSubmitted()

ilTestEvaluationUserData::isSubmitted ( )
Returns
bool

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

225 : bool
226 {
227 return $this->submitted;
228 }

References $submitted.

◆ setECTSMark()

ilTestEvaluationUserData::setECTSMark (   $a_mark_ects)

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

278 : void
279 {
280 $this->markECTS = $a_mark_ects;
281 }

◆ setFirstVisit()

ilTestEvaluationUserData::setFirstVisit (   $a_time)

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

343 {
344 $this->firstVisit = $a_time;
345 }

◆ setLastFinishedPass()

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

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

452 {
453 $this->lastFinishedPass = $pass;
454 }

◆ setLastVisit()

ilTestEvaluationUserData::setLastVisit (   $a_time)

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

353 {
354 $this->lastVisit = $a_time;
355 }

◆ setLogin()

ilTestEvaluationUserData::setLogin (   $a_login)

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

217 : void
218 {
219 $this->login = $a_login;
220 }

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

+ Here is the call graph for this function:

◆ setMark()

ilTestEvaluationUserData::setMark (   $a_mark)

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

268 : void
269 {
270 $this->mark = $a_mark;
271 }

◆ setMarkOfficial()

ilTestEvaluationUserData::setMarkOfficial (   $a_mark_official)

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

550 {
551 $this->mark_official = $a_mark_official;
552 }

◆ setMaxpoints()

ilTestEvaluationUserData::setMaxpoints (   $a_max_points)

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

253 : void
254 {
255 $this->maxpoints = $a_max_points;
256 }

◆ setName()

ilTestEvaluationUserData::setName (   $a_name)

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

207 : void
208 {
209 $this->name = $a_name;
210 }

◆ setNumberOfQuestions()

ilTestEvaluationUserData::setNumberOfQuestions (   $a_nr)

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

314 {
315 $this->numberOfQuestions = $a_nr;
316 }

◆ setPassed()

ilTestEvaluationUserData::setPassed (   $a_passed)

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

197 : void
198 {
199 $this->passed = ($a_passed ? true : false);
200 }
return true

References true.

◆ setPassScoring()

ilTestEvaluationUserData::setPassScoring (   $passScoring)

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

187 : void
188 {
189 $this->passScoring = $passScoring;
190 }

References $passScoring.

◆ setQuestionsWorkedThrough()

ilTestEvaluationUserData::setQuestionsWorkedThrough (   $a_nr)

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

296 {
297 $this->questionsWorkedThrough = $a_nr;
298 }

◆ setReached()

ilTestEvaluationUserData::setReached (   $a_reached)

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

244 {
245 $this->reached = $a_reached;
246 }

◆ setSubmitted()

ilTestEvaluationUserData::setSubmitted (   $submitted)
Parameters
bool$submitted

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

233 : void
234 {
235 $this->submitted = $submitted;
236 }

References $submitted.

◆ setTimeOfWork()

ilTestEvaluationUserData::setTimeOfWork (   $a_time_of_work)

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

333 {
334 $this->timeOfWork = $a_time_of_work;
335 }

◆ setUserID()

ilTestEvaluationUserData::setUserID (   $a_usr_id)

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

540 {
541 $this->user_id = $a_usr_id;
542 }

Field Documentation

◆ $firstVisit

ilTestEvaluationUserData::$firstVisit

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

Referenced by getFirstVisit().

◆ $lastFinishedPass

ilTestEvaluationUserData::$lastFinishedPass

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

Referenced by getLastFinishedPass().

◆ $lastVisit

ilTestEvaluationUserData::$lastVisit

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

Referenced by getLastVisit().

◆ $login

ilTestEvaluationUserData::$login

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

◆ $mark

ilTestEvaluationUserData::$mark

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

Referenced by getMark().

◆ $mark_official

ilTestEvaluationUserData::$mark_official

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

Referenced by getMarkOfficial().

◆ $markECTS

ilTestEvaluationUserData::$markECTS

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

Referenced by getECTSMark().

◆ $maxpoints

ilTestEvaluationUserData::$maxpoints

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

◆ $name

ilTestEvaluationUserData::$name

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

Referenced by getName().

◆ $numberOfQuestions

ilTestEvaluationUserData::$numberOfQuestions

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

◆ $passed

ilTestEvaluationUserData::$passed

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

Referenced by getPassed().

◆ $passes

ilTestEvaluationUserData::$passes

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

Referenced by getPasses().

◆ $passScoring

ilTestEvaluationUserData::$passScoring
private

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

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

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

◆ $questions

ilTestEvaluationUserData::$questions

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

◆ $questionsWorkedThrough

ilTestEvaluationUserData::$questionsWorkedThrough

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

◆ $reached

ilTestEvaluationUserData::$reached

◆ $submitted

ilTestEvaluationUserData::$submitted
protected

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

Referenced by isSubmitted(), and setSubmitted().

◆ $timeOfWork

ilTestEvaluationUserData::$timeOfWork

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

◆ $user_id

ilTestEvaluationUserData::$user_id

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

Referenced by getUserID().


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