ILIAS  release_7 Revision v7.30-3-g800a261c036
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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilTestEvaluationUserData::__construct (   $passScoring)

Constructor.

public

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

References $passScoring.

164  {
165  $this->passes = array();
166  $this->questions = array();
167  $this->passed = false;
168  $this->passScoring = $passScoring;
169  }

Member Function Documentation

◆ __sleep()

ilTestEvaluationUserData::__sleep ( )

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

152  {
153  return array('questions', 'passes', 'passed', 'lastVisit', 'firstVisit', 'timeOfWork', 'numberOfQuestions',
154  'questionsWorkedThrough', 'markECTS', 'mark_official', 'mark', 'maxpoints', 'reached', 'user_id', 'login',
155  'name', 'passScoring');
156  }

◆ addPass()

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

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

References $pass.

356  {
357  $this->passes[$pass_nr] = $pass;
358  }

◆ addQuestion()

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

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

References $pass.

467  {
468  if (!isset($this->questions[$pass])) {
469  $this->questions[$pass] = array();
470  }
471 
472  $this->questions[$pass][] = array(
473  "id" => $question_id, // the so called "aid" from any historical time
474  "o_id" => $original_id, // when the "aid" was valid this was the "id"
475  "points" => $max_points,
476  "sequence" => $sequence
477  );
478  }

◆ addQuestionTitle()

ilTestEvaluationUserData::addQuestionTitle (   $question_id,
  $question_title 
)

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

448  {
449  $this->questionTitles[$question_id] = $question_title;
450  }

◆ areObligationsAnswered()

ilTestEvaluationUserData::areObligationsAnswered ( )

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

Returns
boolean

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

References getScoredPassObject().

679  {
680  return $this->getScoredPassObject()->areObligationsAnswered();
681  }
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

Returns
boolean

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

References $pass.

Referenced by getBestPass(), and getBestPassObject().

662  {
663  foreach ($this->passes as $pass) {
664  if ($pass->areObligationsAnswered()) {
665  return true;
666  }
667  }
668 
669  return false;
670  }
+ Here is the caller graph for this function:

◆ getAvailablePoints()

ilTestEvaluationUserData::getAvailablePoints (   $pass = 0)

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

References $pass.

Referenced by getMaxpoints(), and getReachedPointsInPercentForPass().

510  {
511  $available = 0;
512  if (!is_object($this->passes[$pass])) {
513  $pass = 0;
514  }
515  if (!is_object($this->passes[$pass])) {
516  return 0;
517  }
518  $available = $this->passes[$pass]->getMaxPoints();
519  $available = round($available, 2);
520  return $available;
521  }
+ 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 391 of file class.ilTestEvaluationUserData.php.

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

Referenced by getScoredPass().

392  {
393  $bestpoints = 0;
394  $bestpass = null;
395 
396  $obligationsAnsweredPassExists = $this->doesObligationsAnsweredPassExist();
397 
398  foreach ($this->passes as $pass) {
399  $reached = $this->getReachedPointsInPercentForPass($pass->getPass());
400 
401  if (($reached > $bestpoints
402  && ($pass->areObligationsAnswered() || !$obligationsAnsweredPassExists))
403  || !isset($bestpass)) {
404  $bestpoints = $reached;
405  $bestpass = $pass->getPass();
406  }
407  }
408 
409  return (int) $bestpass;
410  }
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

Returns
ilTestEvaluationPassData $passDataObject

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

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

Referenced by getScoredPassObject().

616  {
617  $bestpoints = 0;
618  $bestpassObject = 0;
619 
620  $obligationsAnsweredPassExists = $this->doesObligationsAnsweredPassExist();
621 
622  foreach ($this->passes as $pass) {
623  $reached = $this->getReachedPointsInPercentForPass($pass->getPass());
624 
625  if ($reached >= $bestpoints && ($pass->areObligationsAnswered() || !$obligationsAnsweredPassExists)) {
626  $bestpoints = $reached;
627  $bestpassObject = $pass;
628  }
629  }
630 
631  return $bestpassObject;
632  }
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:

◆ getECTSMark()

ilTestEvaluationUserData::getECTSMark ( )

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

References $markECTS.

◆ getExamIdFromScoredPass()

ilTestEvaluationUserData::getExamIdFromScoredPass ( )
Returns
string

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

References getScoredPass().

579  : string
580  {
581  $examId = '';
582  $scoredPass = $this->getScoredPass();
583 
584  if (isset($this->passes[$scoredPass]) && $this->passes[$scoredPass] instanceof ilTestEvaluationPassData) {
585  $examId = $this->passes[$scoredPass]->getExamId();
586  }
587 
588  return $examId;
589  }
+ Here is the call graph for this function:

◆ getFinishedPasses()

ilTestEvaluationUserData::getFinishedPasses ( )
Returns
int

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

References getLastFinishedPass().

427  {
428  return $this->getLastFinishedPass() === null ? 0 : $this->getLastFinishedPass() + 1;
429  }
+ Here is the call graph for this function:

◆ getFirstVisit()

ilTestEvaluationUserData::getFirstVisit ( )

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

References $firstVisit.

◆ getLastFinishedPass()

ilTestEvaluationUserData::getLastFinishedPass ( )
Returns
?int

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

References $lastFinishedPass.

Referenced by getFinishedPasses().

+ Here is the caller graph for this function:

◆ getLastPass()

ilTestEvaluationUserData::getLastPass ( )

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

References $pass.

Referenced by getScoredPass().

413  {
414  $lastpass = 0;
415  foreach (array_keys($this->passes) as $pass) {
416  if ($pass > $lastpass) {
417  $lastpass = $pass;
418  }
419  }
420  return $lastpass;
421  }
+ 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 640 of file class.ilTestEvaluationUserData.php.

Referenced by getScoredPassObject().

641  {
642  $lastpassIndex = 0;
643 
644  foreach (array_keys($this->passes) as $passIndex) {
645  if ($passIndex > $lastpassIndex) {
646  $lastpassIndex = $passIndex;
647  }
648  }
649 
650  $lastpassObject = $this->passes[$lastpassIndex];
651 
652  return $lastpassObject;
653  }
+ Here is the caller graph for this function:

◆ getLastVisit()

ilTestEvaluationUserData::getLastVisit ( )

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

References $lastVisit.

◆ getLogin()

ilTestEvaluationUserData::getLogin ( )

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

References $login.

◆ getMark()

ilTestEvaluationUserData::getMark ( )

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

References $mark.

◆ getMarkOfficial()

ilTestEvaluationUserData::getMarkOfficial ( )

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

References $mark_official.

◆ getMaxpoints()

ilTestEvaluationUserData::getMaxpoints ( )

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

References getAvailablePoints(), and getScoredPass().

+ Here is the call graph for this function:

◆ getName()

ilTestEvaluationUserData::getName ( )

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

References $name.

◆ getNumberOfQuestions()

ilTestEvaluationUserData::getNumberOfQuestions ( )

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

References getScoredPass().

Referenced by getQuestionsWorkedThroughInPercent().

290  {
291  $questionpass = $this->getScoredPass();
292  if (!is_object($this->passes[$questionpass])) {
293  $questionpass = 0;
294  }
295  if (is_object($this->passes[$questionpass])) {
296  return $this->passes[$questionpass]->getQuestionCount();
297  }
298  return 0;
299  // return $this->numberOfQuestions;
300  }
+ 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 364 of file class.ilTestEvaluationUserData.php.

365  {
366  if (array_key_exists($pass_nr, $this->passes)) {
367  return $this->passes[$pass_nr];
368  } else {
369  return null;
370  }
371  }

◆ getPassCount()

ilTestEvaluationUserData::getPassCount ( )

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

374  {
375  return count($this->passes);
376  }

◆ getPassed()

ilTestEvaluationUserData::getPassed ( )

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

References $passed.

◆ getPasses()

ilTestEvaluationUserData::getPasses ( )

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

References $passes.

◆ getPassScoring()

ilTestEvaluationUserData::getPassScoring ( )

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

References $passScoring.

Referenced by getScoredPass(), and getScoredPassObject().

+ Here is the caller graph for this function:

◆ getQuestion()

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

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

References $index, and $pass.

481  {
482  if (array_key_exists($index, $this->questions[$pass])) {
483  return $this->questions[$pass][$index];
484  } else {
485  return null;
486  }
487  }
$index
Definition: metadata.php:128

◆ getQuestionCount()

ilTestEvaluationUserData::getQuestionCount (   $pass = 0)

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

References $pass.

490  {
491  $count = 0;
492  if (array_key_exists($pass, $this->passes)) {
493  $count = $this->passes[$pass]->getQuestionCount();
494  }
495  return $count;
496  }

◆ getQuestions()

ilTestEvaluationUserData::getQuestions (   $pass = 0)

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

References $pass.

458  {
459  if (array_key_exists($pass, $this->questions)) {
460  return $this->questions[$pass];
461  } else {
462  return null;
463  }
464  }

◆ getQuestionsWorkedThrough()

ilTestEvaluationUserData::getQuestionsWorkedThrough ( )

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

References getScoredPass().

Referenced by getQuestionsWorkedThroughInPercent().

273  {
274  $questionpass = $this->getScoredPass();
275  if (!is_object($this->passes[$questionpass])) {
276  $questionpass = 0;
277  }
278  if (is_object($this->passes[$questionpass])) {
279  return $this->passes[$questionpass]->getNrOfAnsweredQuestions();
280  }
281  return 0;
282  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionsWorkedThroughInPercent()

ilTestEvaluationUserData::getQuestionsWorkedThroughInPercent ( )

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

References getNumberOfQuestions(), and getQuestionsWorkedThrough().

+ Here is the call graph for this function:

◆ getQuestionTitles()

ilTestEvaluationUserData::getQuestionTitles ( )

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

453  {
454  return $this->questionTitles;
455  }

◆ getReached()

ilTestEvaluationUserData::getReached ( )

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

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

References $pass, and $reached.

Referenced by getReached(), and getReachedPointsInPercentForPass().

499  {
500  $reached = 0;
501  if (array_key_exists($pass, $this->passes)) {
502  $reached = $this->passes[$pass]->getReachedPoints();
503  }
504  $reached = ($reached < 0) ? 0 : $reached;
505  $reached = round($reached, 2);
506  return $reached;
507  }
+ Here is the caller graph for this function:

◆ getReachedPointsInPercent()

ilTestEvaluationUserData::getReachedPointsInPercent ( )

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

References getReached().

248  {
249  return $this->getMaxPoints() ? $this->getReached() / $this->getMaxPoints() * 100.0 : 0;
250  }
+ Here is the call graph for this function:

◆ getReachedPointsInPercentForPass()

ilTestEvaluationUserData::getReachedPointsInPercentForPass (   $pass = 0)

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

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

Referenced by getBestPass(), and getBestPassObject().

524  {
525  $reached = $this->getReachedPoints($pass);
526  $available = $this->getAvailablePoints($pass);
527  $percent = ($available > 0) ? $reached / $available : 0;
528  return $percent;
529  }
+ 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 598 of file class.ilTestEvaluationUserData.php.

References $pass.

Referenced by getRequestedHintsCountFromScoredPass().

599  {
600  if (!isset($this->passes[$pass]) || !($this->passes[$pass] instanceof ilTestEvaluationPassData)) {
601  throw new ilTestException("invalid pass index given: $pass");
602  }
603 
604  $requestedHintsCount = $this->passes[$pass]->getRequestedHintsCount();
605 
606  return $requestedHintsCount;
607  }
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

Returns
integer $requestedHintsCount

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

References getRequestedHintsCount(), and getScoredPass().

572  {
573  return $this->getRequestedHintsCount($this->getScoredPass());
574  }
getRequestedHintsCount($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 378 of file class.ilTestEvaluationUserData.php.

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

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

379  {
380  if ($this->getPassScoring() == 1) {
381  return $this->getBestPass();
382  } else {
383  return $this->getLastPass();
384  }
385  }
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)

Returns
ilTestEvaluationPassData $passDataObject

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

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

Referenced by areObligationsAnswered().

558  {
559  if ($this->getPassScoring() == 1) {
560  return $this->getBestPassObject();
561  } else {
562  return $this->getLastPassObject();
563  }
564  }
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 312 of file class.ilTestEvaluationUserData.php.

References $pass.

313  {
314  $time = 0;
315  foreach ($this->passes as $pass) {
316  $time += $pass->getWorkingTime();
317  }
318  return $time;
319  }

◆ getUserID()

ilTestEvaluationUserData::getUserID ( )

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

References $user_id.

◆ isSubmitted()

ilTestEvaluationUserData::isSubmitted ( )
Returns
bool

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

References $submitted.

◆ setECTSMark()

ilTestEvaluationUserData::setECTSMark (   $a_mark_ects)

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

268  {
269  $this->markECTS = $a_mark_ects;
270  }

◆ setFirstVisit()

ilTestEvaluationUserData::setFirstVisit (   $a_time)

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

332  {
333  $this->firstVisit = $a_time;
334  }

◆ setLastFinishedPass()

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

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

References $pass.

443  {
444  $this->lastFinishedPass = $pass;
445  }

◆ setLastVisit()

ilTestEvaluationUserData::setLastVisit (   $a_time)

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

342  {
343  $this->lastVisit = $a_time;
344  }

◆ setLogin()

ilTestEvaluationUserData::setLogin (   $a_login)

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

References login().

207  {
208  $this->login = $a_login;
209  }
login()
Definition: login.php:2
+ Here is the call graph for this function:

◆ setMark()

ilTestEvaluationUserData::setMark (   $a_mark)

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

258  {
259  $this->mark = $a_mark;
260  }

◆ setMarkOfficial()

ilTestEvaluationUserData::setMarkOfficial (   $a_mark_official)

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

542  {
543  $this->mark_official = $a_mark_official;
544  }

◆ setMaxpoints()

ilTestEvaluationUserData::setMaxpoints (   $a_max_points)

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

243  {
244  $this->maxpoints = $a_max_points;
245  }

◆ setName()

ilTestEvaluationUserData::setName (   $a_name)

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

197  {
198  $this->name = $a_name;
199  }

◆ setNumberOfQuestions()

ilTestEvaluationUserData::setNumberOfQuestions (   $a_nr)

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

303  {
304  $this->numberOfQuestions = $a_nr;
305  }

◆ setPassed()

ilTestEvaluationUserData::setPassed (   $a_passed)

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

187  {
188  $this->passed = ($a_passed ? true : false);
189  }

◆ setPassScoring()

ilTestEvaluationUserData::setPassScoring (   $passScoring)

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

References $passScoring.

177  {
178  $this->passScoring = $passScoring;
179  }

◆ setQuestionsWorkedThrough()

ilTestEvaluationUserData::setQuestionsWorkedThrough (   $a_nr)

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

285  {
286  $this->questionsWorkedThrough = $a_nr;
287  }

◆ setReached()

ilTestEvaluationUserData::setReached (   $a_reached)

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

233  {
234  $this->reached = $a_reached;
235  }

◆ setSubmitted()

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

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

References $submitted.

223  {
224  $this->submitted = $submitted;
225  }

◆ setTimeOfWork()

ilTestEvaluationUserData::setTimeOfWork (   $a_time_of_work)

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

322  {
323  $this->timeOfWork = $a_time_of_work;
324  }

◆ setUserID()

ilTestEvaluationUserData::setUserID (   $a_usr_id)

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

532  {
533  $this->user_id = $a_usr_id;
534  }

Field Documentation

◆ $firstVisit

ilTestEvaluationUserData::$firstVisit

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

Referenced by getFirstVisit().

◆ $lastFinishedPass

ilTestEvaluationUserData::$lastFinishedPass

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

Referenced by getLastFinishedPass().

◆ $lastVisit

ilTestEvaluationUserData::$lastVisit

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

Referenced by getLastVisit().

◆ $login

ilTestEvaluationUserData::$login

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

Referenced by getLogin().

◆ $mark

ilTestEvaluationUserData::$mark

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

Referenced by getMark().

◆ $mark_official

ilTestEvaluationUserData::$mark_official

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

Referenced by getMarkOfficial().

◆ $markECTS

ilTestEvaluationUserData::$markECTS

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

Referenced by getECTSMark().

◆ $maxpoints

ilTestEvaluationUserData::$maxpoints

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

◆ $name

ilTestEvaluationUserData::$name

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

Referenced by getName().

◆ $numberOfQuestions

ilTestEvaluationUserData::$numberOfQuestions

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

◆ $passed

ilTestEvaluationUserData::$passed

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

Referenced by getPassed().

◆ $passes

ilTestEvaluationUserData::$passes

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

Referenced by getPasses().

◆ $passScoring

ilTestEvaluationUserData::$passScoring
private

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

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

◆ $questions

ilTestEvaluationUserData::$questions

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

◆ $questionsWorkedThrough

ilTestEvaluationUserData::$questionsWorkedThrough

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

◆ $reached

ilTestEvaluationUserData::$reached

◆ $submitted

ilTestEvaluationUserData::$submitted
protected

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

Referenced by isSubmitted(), and setSubmitted().

◆ $timeOfWork

ilTestEvaluationUserData::$timeOfWork

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

◆ $user_id

ilTestEvaluationUserData::$user_id

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

Referenced by getUserID().


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