ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 ()
 
 getLastPass ()
 
 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
 
 $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 156 of file class.ilTestEvaluationUserData.php.

References $passScoring.

157  {
158  $this->passes = array();
159  $this->questions = array();
160  $this->passed = false;
161  $this->passScoring = $passScoring;
162  }

Member Function Documentation

◆ __sleep()

ilTestEvaluationUserData::__sleep ( )

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

145  {
146  return array('questions', 'passes', 'passed', 'lastVisit', 'firstVisit', 'timeOfWork', 'numberOfQuestions',
147  'questionsWorkedThrough', 'markECTS', 'mark_official', 'mark', 'maxpoints', 'reached', 'user_id', 'login',
148  'name', 'passScoring');
149  }

◆ addPass()

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

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

References $pass.

349  {
350  $this->passes[$pass_nr] = $pass;
351  }

◆ addQuestion()

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

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

References $pass.

430  {
431  if (!isset($this->questions[$pass])) {
432  $this->questions[$pass] = array();
433  }
434 
435  $this->questions[$pass][] = array(
436  "id" => $question_id, // the so called "aid" from any historical time
437  "o_id" => $original_id, // when the "aid" was valid this was the "id"
438  "points" => $max_points,
439  "sequence" => $sequence
440  );
441  }

◆ addQuestionTitle()

ilTestEvaluationUserData::addQuestionTitle (   $question_id,
  $question_title 
)

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

411  {
412  $this->questionTitles[$question_id] = $question_title;
413  }

◆ areObligationsAnswered()

ilTestEvaluationUserData::areObligationsAnswered ( )

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

Returns
boolean

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

References getScoredPassObject().

642  {
643  return $this->getScoredPassObject()->areObligationsAnswered();
644  }
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 624 of file class.ilTestEvaluationUserData.php.

References $pass.

Referenced by getBestPass(), and getBestPassObject().

625  {
626  foreach ($this->passes as $pass) {
627  if ($pass->areObligationsAnswered()) {
628  return true;
629  }
630  }
631 
632  return false;
633  }
+ Here is the caller graph for this function:

◆ getAvailablePoints()

ilTestEvaluationUserData::getAvailablePoints (   $pass = 0)

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

References $pass.

Referenced by getMaxpoints(), and getReachedPointsInPercentForPass().

473  {
474  $available = 0;
475  if (!is_object($this->passes[$pass])) {
476  $pass = 0;
477  }
478  if (!is_object($this->passes[$pass])) {
479  return 0;
480  }
481  $available = $this->passes[$pass]->getMaxPoints();
482  $available = round($available, 2);
483  return $available;
484  }
+ Here is the caller graph for this function:

◆ getBestPass()

ilTestEvaluationUserData::getBestPass ( )

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

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

Referenced by getScoredPass().

381  {
382  $bestpoints = 0;
383  $bestpass = 0;
384 
385  $obligationsAnsweredPassExists = $this->doesObligationsAnsweredPassExist();
386 
387  foreach ($this->passes as $pass) {
388  $reached = $this->getReachedPointsInPercentForPass($pass->getPass());
389 
390  if ($reached >= $bestpoints && ($pass->areObligationsAnswered() || !$obligationsAnsweredPassExists)) {
391  $bestpoints = $reached;
392  $bestpass = $pass->getPass();
393  }
394  }
395 
396  return $bestpass;
397  }
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 578 of file class.ilTestEvaluationUserData.php.

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

Referenced by getScoredPassObject().

579  {
580  $bestpoints = 0;
581  $bestpassObject = 0;
582 
583  $obligationsAnsweredPassExists = $this->doesObligationsAnsweredPassExist();
584 
585  foreach ($this->passes as $pass) {
586  $reached = $this->getReachedPointsInPercentForPass($pass->getPass());
587 
588  if ($reached >= $bestpoints && ($pass->areObligationsAnswered() || !$obligationsAnsweredPassExists)) {
589  $bestpoints = $reached;
590  $bestpassObject = $pass;
591  }
592  }
593 
594  return $bestpassObject;
595  }
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 255 of file class.ilTestEvaluationUserData.php.

References $markECTS.

◆ getExamIdFromScoredPass()

ilTestEvaluationUserData::getExamIdFromScoredPass ( )
Returns
string

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

References getScoredPass().

542  : string
543  {
544  $examId = '';
545  $scoredPass = $this->getScoredPass();
546 
547  if (isset($this->passes[$scoredPass]) && $this->passes[$scoredPass] instanceof ilTestEvaluationPassData) {
548  $examId = $this->passes[$scoredPass]->getExamId();
549  }
550 
551  return $examId;
552  }
+ Here is the call graph for this function:

◆ getFirstVisit()

ilTestEvaluationUserData::getFirstVisit ( )

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

References $firstVisit.

◆ getLastPass()

ilTestEvaluationUserData::getLastPass ( )

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

References $pass.

Referenced by getScoredPass().

400  {
401  $lastpass = 0;
402  foreach (array_keys($this->passes) as $pass) {
403  if ($pass > $lastpass) {
404  $lastpass = $pass;
405  }
406  }
407  return $lastpass;
408  }
+ 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 603 of file class.ilTestEvaluationUserData.php.

Referenced by getScoredPassObject().

604  {
605  $lastpassIndex = 0;
606 
607  foreach (array_keys($this->passes) as $passIndex) {
608  if ($passIndex > $lastpassIndex) {
609  $lastpassIndex = $passIndex;
610  }
611  }
612 
613  $lastpassObject = $this->passes[$lastpassIndex];
614 
615  return $lastpassObject;
616  }
+ Here is the caller graph for this function:

◆ getLastVisit()

ilTestEvaluationUserData::getLastVisit ( )

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

References $lastVisit.

◆ getLogin()

ilTestEvaluationUserData::getLogin ( )

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

References $login.

◆ getMark()

ilTestEvaluationUserData::getMark ( )

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

References $mark.

◆ getMarkOfficial()

ilTestEvaluationUserData::getMarkOfficial ( )

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

References $mark_official.

◆ getMaxpoints()

ilTestEvaluationUserData::getMaxpoints ( )

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

References getAvailablePoints(), and getScoredPass().

+ Here is the call graph for this function:

◆ getName()

ilTestEvaluationUserData::getName ( )

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

References $name.

◆ getNumberOfQuestions()

ilTestEvaluationUserData::getNumberOfQuestions ( )

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

References getScoredPass().

Referenced by getQuestionsWorkedThroughInPercent().

283  {
284  $questionpass = $this->getScoredPass();
285  if (!is_object($this->passes[$questionpass])) {
286  $questionpass = 0;
287  }
288  if (is_object($this->passes[$questionpass])) {
289  return $this->passes[$questionpass]->getQuestionCount();
290  }
291  return 0;
292  // return $this->numberOfQuestions;
293  }
+ 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 357 of file class.ilTestEvaluationUserData.php.

358  {
359  if (array_key_exists($pass_nr, $this->passes)) {
360  return $this->passes[$pass_nr];
361  } else {
362  return null;
363  }
364  }

◆ getPassCount()

ilTestEvaluationUserData::getPassCount ( )

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

367  {
368  return count($this->passes);
369  }

◆ getPassed()

ilTestEvaluationUserData::getPassed ( )

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

References $passed.

◆ getPasses()

ilTestEvaluationUserData::getPasses ( )

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

References $passes.

◆ getPassScoring()

ilTestEvaluationUserData::getPassScoring ( )

Definition at line 164 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 443 of file class.ilTestEvaluationUserData.php.

References $index, and $pass.

444  {
445  if (array_key_exists($index, $this->questions[$pass])) {
446  return $this->questions[$pass][$index];
447  } else {
448  return null;
449  }
450  }
$index
Definition: metadata.php:60

◆ getQuestionCount()

ilTestEvaluationUserData::getQuestionCount (   $pass = 0)

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

References $pass.

453  {
454  $count = 0;
455  if (array_key_exists($pass, $this->passes)) {
456  $count = $this->passes[$pass]->getQuestionCount();
457  }
458  return $count;
459  }

◆ getQuestions()

ilTestEvaluationUserData::getQuestions (   $pass = 0)

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

References $pass.

421  {
422  if (array_key_exists($pass, $this->questions)) {
423  return $this->questions[$pass];
424  } else {
425  return null;
426  }
427  }

◆ getQuestionsWorkedThrough()

ilTestEvaluationUserData::getQuestionsWorkedThrough ( )

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

References getScoredPass().

Referenced by getQuestionsWorkedThroughInPercent().

266  {
267  $questionpass = $this->getScoredPass();
268  if (!is_object($this->passes[$questionpass])) {
269  $questionpass = 0;
270  }
271  if (is_object($this->passes[$questionpass])) {
272  return $this->passes[$questionpass]->getNrOfAnsweredQuestions();
273  }
274  return 0;
275  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionsWorkedThroughInPercent()

ilTestEvaluationUserData::getQuestionsWorkedThroughInPercent ( )

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

References getNumberOfQuestions(), and getQuestionsWorkedThrough().

+ Here is the call graph for this function:

◆ getQuestionTitles()

ilTestEvaluationUserData::getQuestionTitles ( )

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

416  {
417  return $this->questionTitles;
418  }

◆ getReached()

ilTestEvaluationUserData::getReached ( )

Definition at line 220 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 461 of file class.ilTestEvaluationUserData.php.

References $pass, and $reached.

Referenced by getReached(), and getReachedPointsInPercentForPass().

462  {
463  $reached = 0;
464  if (array_key_exists($pass, $this->passes)) {
465  $reached = $this->passes[$pass]->getReachedPoints();
466  }
467  $reached = ($reached < 0) ? 0 : $reached;
468  $reached = round($reached, 2);
469  return $reached;
470  }
+ Here is the caller graph for this function:

◆ getReachedPointsInPercent()

ilTestEvaluationUserData::getReachedPointsInPercent ( )

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

References getReached().

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

◆ getReachedPointsInPercentForPass()

ilTestEvaluationUserData::getReachedPointsInPercentForPass (   $pass = 0)

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

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

Referenced by getBestPass(), and getBestPassObject().

487  {
488  $reached = $this->getReachedPoints($pass);
489  $available = $this->getAvailablePoints($pass);
490  $percent = ($available > 0) ? $reached / $available : 0;
491  return $percent;
492  }
+ 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 561 of file class.ilTestEvaluationUserData.php.

References $pass.

Referenced by getRequestedHintsCountFromScoredPass().

562  {
563  if (!isset($this->passes[$pass]) || !($this->passes[$pass] instanceof ilTestEvaluationPassData)) {
564  throw new ilTestException("invalid pass index given: $pass");
565  }
566 
567  $requestedHintsCount = $this->passes[$pass]->getRequestedHintsCount();
568 
569  return $requestedHintsCount;
570  }
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 534 of file class.ilTestEvaluationUserData.php.

References getRequestedHintsCount(), and getScoredPass().

535  {
536  return $this->getRequestedHintsCount($this->getScoredPass());
537  }
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 371 of file class.ilTestEvaluationUserData.php.

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

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

372  {
373  if ($this->getPassScoring() == 1) {
374  return $this->getBestPass();
375  } else {
376  return $this->getLastPass();
377  }
378  }
+ 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 520 of file class.ilTestEvaluationUserData.php.

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

Referenced by areObligationsAnswered().

521  {
522  if ($this->getPassScoring() == 1) {
523  return $this->getBestPassObject();
524  } else {
525  return $this->getLastPassObject();
526  }
527  }
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 305 of file class.ilTestEvaluationUserData.php.

References $pass, and $time.

306  {
307  $time = 0;
308  foreach ($this->passes as $pass) {
309  $time += $pass->getWorkingTime();
310  }
311  return $time;
312  }
$time
Definition: cron.php:21

◆ getUserID()

ilTestEvaluationUserData::getUserID ( )

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

References $user_id.

◆ isSubmitted()

ilTestEvaluationUserData::isSubmitted ( )
Returns
bool

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

References $submitted.

◆ setECTSMark()

ilTestEvaluationUserData::setECTSMark (   $a_mark_ects)

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

261  {
262  $this->markECTS = $a_mark_ects;
263  }

◆ setFirstVisit()

ilTestEvaluationUserData::setFirstVisit (   $a_time)

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

325  {
326  $this->firstVisit = $a_time;
327  }

◆ setLastVisit()

ilTestEvaluationUserData::setLastVisit (   $a_time)

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

335  {
336  $this->lastVisit = $a_time;
337  }

◆ setLogin()

ilTestEvaluationUserData::setLogin (   $a_login)

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

200  {
201  $this->login = $a_login;
202  }

◆ setMark()

ilTestEvaluationUserData::setMark (   $a_mark)

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

251  {
252  $this->mark = $a_mark;
253  }

◆ setMarkOfficial()

ilTestEvaluationUserData::setMarkOfficial (   $a_mark_official)

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

505  {
506  $this->mark_official = $a_mark_official;
507  }

◆ setMaxpoints()

ilTestEvaluationUserData::setMaxpoints (   $a_max_points)

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

236  {
237  $this->maxpoints = $a_max_points;
238  }

◆ setName()

ilTestEvaluationUserData::setName (   $a_name)

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

190  {
191  $this->name = $a_name;
192  }

◆ setNumberOfQuestions()

ilTestEvaluationUserData::setNumberOfQuestions (   $a_nr)

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

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

◆ setPassed()

ilTestEvaluationUserData::setPassed (   $a_passed)

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

180  {
181  $this->passed = ($a_passed ? true : false);
182  }

◆ setPassScoring()

ilTestEvaluationUserData::setPassScoring (   $passScoring)

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

References $passScoring.

170  {
171  $this->passScoring = $passScoring;
172  }

◆ setQuestionsWorkedThrough()

ilTestEvaluationUserData::setQuestionsWorkedThrough (   $a_nr)

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

278  {
279  $this->questionsWorkedThrough = $a_nr;
280  }

◆ setReached()

ilTestEvaluationUserData::setReached (   $a_reached)

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

226  {
227  $this->reached = $a_reached;
228  }

◆ setSubmitted()

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

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

References $submitted.

216  {
217  $this->submitted = $submitted;
218  }

◆ setTimeOfWork()

ilTestEvaluationUserData::setTimeOfWork (   $a_time_of_work)

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

315  {
316  $this->timeOfWork = $a_time_of_work;
317  }

◆ setUserID()

ilTestEvaluationUserData::setUserID (   $a_usr_id)

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

495  {
496  $this->user_id = $a_usr_id;
497  }

Field Documentation

◆ $firstVisit

ilTestEvaluationUserData::$firstVisit

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

Referenced by getFirstVisit().

◆ $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 142 of file class.ilTestEvaluationUserData.php.

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

◆ $questions

ilTestEvaluationUserData::$questions

Definition at line 135 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: