| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
Test sequence handler. More...
 Inheritance diagram for ilTestSequence:
 Collaboration diagram for ilTestSequence:Data Fields | |
| array | $sequencedata | 
| An array containing the sequence data.  More... | |
| array | $questions | 
| The mapping of the sequence numbers to the questions.  More... | |
Protected Member Functions | |
| loadPresentedQuestions () | |
| saveNewlyPresentedQuestion () | |
| getCorrectedSequence () | |
Protected Attributes | |
| array | $alreadyPresentedQuestions = [] | 
| int | $newlyPresentedQuestion = 0 | 
| array | $alreadyCheckedQuestions = [] | 
| int | $newlyCheckedQuestion = null | 
| array | $optionalQuestions = [] | 
Private Member Functions | |
| loadQuestionSequence () | |
| loadCheckedQuestions () | |
| loadOptionalQuestions () | |
| saveQuestionSequence () | |
| saveNewlyCheckedQuestion () | |
| saveOptionalQuestions () | |
| ensureQuestionNotInSequence (array $sequence, int $question_id) | |
Private Attributes | |
| bool | $answeringOptionalQuestionsConfirmed = false | 
| bool | $considerHiddenQuestionsEnabled = false | 
| bool | $considerOptionalQuestionsEnabled = true | 
Test sequence handler.
This class manages the sequence settings for a given user
Definition at line 32 of file class.ilTestSequence.php.
| ilTestSequence::__construct | ( | protected ilDBInterface | $db, | 
| protected int | $active_id, | ||
| protected int | $pass, | ||
| protected QuestionInfoService | $questioninfo | ||
| ) | 
ilTestSequence constructor
The constructor takes possible arguments an creates an instance of the ilTestSequence object.
Definition at line 66 of file class.ilTestSequence.php.
| ilTestSequence::clearHiddenQuestions | ( | ) | 
Definition at line 677 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions().
 Here is the caller graph for this function:| ilTestSequence::clearOptionalQuestions | ( | ) | 
Definition at line 738 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
 Here is the caller graph for this function:| ilTestSequence::createNewSequence | ( | int | $max, | 
| bool | $shuffle | ||
| ) | 
Definition at line 84 of file class.ilTestSequence.php.
References pcArrayShuffle().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 478 of file class.ilTestSequence.php.
Referenced by getCorrectedSequence().
 Here is the caller graph for this function:| ilTestSequence::getActiveId | ( | ) | 
Implements ilTestSequenceSummaryProvider.
Definition at line 79 of file class.ilTestSequence.php.
      
  | 
  protected | 
Definition at line 497 of file class.ilTestSequence.php.
References ensureQuestionNotInSequence(), isConsiderHiddenQuestionsEnabled(), and isConsiderOptionalQuestionsEnabled().
Referenced by getFirstSequence(), getLastSequence(), getNextSequence(), getPositionOfSequence(), getPreviousSequence(), getSequenceSummary(), getUserQuestionCount(), getUserSequence(), and getUserSequenceQuestions().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSequence::getFirstSequence | ( | ) | 
Definition at line 532 of file class.ilTestSequence.php.
References getCorrectedSequence().
Referenced by hasStarted(), and openQuestionExists().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSequence::getLastSequence | ( | ) | 
Definition at line 542 of file class.ilTestSequence.php.
References getCorrectedSequence().
 Here is the call graph for this function:| ilTestSequence::getNextSequence | ( | int | $sequence | ) | 
Definition at line 552 of file class.ilTestSequence.php.
References getCorrectedSequence().
Referenced by isNextQuestionPresented().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSequence::getOptionalQuestions | ( | ) | 
| ilTestSequence::getOrderedSequence | ( | ) | 
Definition at line 429 of file class.ilTestSequence.php.
References isConsiderHiddenQuestionsEnabled(), and isHiddenSequence().
 Here is the call graph for this function:| ilTestSequence::getOrderedSequenceQuestions | ( | ) | 
Definition at line 444 of file class.ilTestSequence.php.
References $questions, isConsiderHiddenQuestionsEnabled(), isConsiderOptionalQuestionsEnabled(), isHiddenQuestion(), and isQuestionOptional().
 Here is the call graph for this function:| ilTestSequence::getPass | ( | ) | 
Definition at line 649 of file class.ilTestSequence.php.
| ilTestSequence::getPositionOfSequence | ( | int | $sequence | ) | 
Definition at line 414 of file class.ilTestSequence.php.
References getCorrectedSequence().
 Here is the call graph for this function:| ilTestSequence::getPreviousSequence | ( | int | $sequence | ) | 
Definition at line 565 of file class.ilTestSequence.php.
References getCorrectedSequence().
 Here is the call graph for this function:| ilTestSequence::getQuestionForSequence | ( | int | $sequence | ) | 
Definition at line 593 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), getUserSequenceQuestions(), isNextQuestionPresented(), and reorderOptionalQuestionsToSequenceEnd().
 Here is the caller graph for this function:| ilTestSequence::getQuestionIds | ( | ) | 
Implements ilTestQuestionSequence.
Definition at line 701 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions(), ilLOTestQuestionAdapter\setQuestionsOptional(), ilLOTestQuestionAdapter\updateRandomQuestions(), and ilLOTestQuestionAdapter\updateSeparateTestQuestions().
 Here is the caller graph for this function:| ilTestSequence::getSequenceForQuestion | ( | int | $question_id | ) | 
Definition at line 527 of file class.ilTestSequence.php.
Referenced by isNextQuestionPresented().
 Here is the caller graph for this function:| ilTestSequence::getSequenceSummary | ( | bool | $obligationsFilterEnabled = false | ) | 
Implements ilTestSequenceSummaryProvider.
Definition at line 605 of file class.ilTestSequence.php.
References ILIAS\LTI\ToolProvider\$key, ilObjTest\_getSolvedQuestions(), getCorrectedSequence(), getQuestionForSequence(), assQuestion\instantiateQuestion(), isPostponedQuestion(), ilObjTest\isQuestionObligatory(), and isQuestionPresented().
 Here is the call graph for this function:| ilTestSequence::getUserQuestionCount | ( | ) | 
Definition at line 424 of file class.ilTestSequence.php.
References getCorrectedSequence().
 Here is the call graph for this function:| ilTestSequence::getUserSequence | ( | ) | 
Definition at line 463 of file class.ilTestSequence.php.
References getCorrectedSequence().
 Here is the call graph for this function:| ilTestSequence::getUserSequenceQuestions | ( | ) | 
Definition at line 468 of file class.ilTestSequence.php.
References getCorrectedSequence(), and getQuestionForSequence().
 Here is the call graph for this function:| ilTestSequence::hasHiddenQuestions | ( | ) | 
Definition at line 668 of file class.ilTestSequence.php.
| ilTestSequence::hasOptionalQuestions | ( | ) | 
Definition at line 728 of file class.ilTestSequence.php.
| ilTestSequence::hasSequence | ( | ) | 
Definition at line 659 of file class.ilTestSequence.php.
| ilTestSequence::hasStarted | ( | ilTestSession | $testSession | ) | 
Definition at line 682 of file class.ilTestSequence.php.
References getFirstSequence(), and ilTestSession\getLastSequence().
 Here is the call graph for this function:| ilTestSequence::hideQuestion | ( | int | $question_id | ) | 
Definition at line 287 of file class.ilTestSequence.php.
References isHiddenQuestion().
Referenced by ilLOTestQuestionAdapter\hideQuestions().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSequence::hideSequence | ( | int | $sequence | ) | 
Definition at line 359 of file class.ilTestSequence.php.
References ILIAS\Repository\int(), and isHiddenSequence().
 Here is the call graph for this function:| ilTestSequence::isAnsweringOptionalQuestionsConfirmed | ( | ) | 
Definition at line 759 of file class.ilTestSequence.php.
References $answeringOptionalQuestionsConfirmed.
Referenced by saveQuestionSequence(), and ilTestVirtualSequence\wasAnsweredInThisPass().
 Here is the caller graph for this function:| ilTestSequence::isConsiderHiddenQuestionsEnabled | ( | ) | 
Definition at line 771 of file class.ilTestSequence.php.
References $considerHiddenQuestionsEnabled.
Referenced by getCorrectedSequence(), getOrderedSequence(), and getOrderedSequenceQuestions().
 Here is the caller graph for this function:| ilTestSequence::isConsiderOptionalQuestionsEnabled | ( | ) | 
Definition at line 781 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
Referenced by getCorrectedSequence(), and getOrderedSequenceQuestions().
 Here is the caller graph for this function:| ilTestSequence::isHiddenQuestion | ( | int | $question_id | ) | 
Definition at line 306 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions(), hideQuestion(), and ilTestVirtualSequence\wasAnsweredInThisPass().
 Here is the caller graph for this function:| ilTestSequence::isHiddenSequence | ( | int | $sequence | ) | 
Definition at line 333 of file class.ilTestSequence.php.
Referenced by getOrderedSequence(), and hideSequence().
 Here is the caller graph for this function:| ilTestSequence::isNextQuestionPresented | ( | int | $question_id | ) | 
Definition at line 383 of file class.ilTestSequence.php.
References getNextSequence(), getQuestionForSequence(), and getSequenceForQuestion().
 Here is the call graph for this function:| ilTestSequence::isPostponedQuestion | ( | int | $question_id | ) | 
Definition at line 294 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and postponeQuestion().
 Here is the caller graph for this function:| ilTestSequence::isPostponedSequence | ( | int | $sequence | ) | 
Definition at line 318 of file class.ilTestSequence.php.
Referenced by postponeSequence().
 Here is the caller graph for this function:| ilTestSequence::isQuestionChecked | ( | int | $question_id | ) | 
Definition at line 409 of file class.ilTestSequence.php.
| ilTestSequence::isQuestionOptional | ( | int | $question_id | ) | 
Definition at line 723 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions(), reorderOptionalQuestionsToSequenceEnd(), and ilTestVirtualSequence\wasAnsweredInThisPass().
 Here is the caller graph for this function:| ilTestSequence::isQuestionPresented | ( | int | $question_id | ) | 
Definition at line 376 of file class.ilTestSequence.php.
Referenced by getSequenceSummary().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 172 of file class.ilTestSequence.php.
References $res.
Referenced by loadFromDb().
 Here is the caller graph for this function:| ilTestSequence::loadFromDb | ( | ) | 
Loads the sequence data for a given active id.
Definition at line 122 of file class.ilTestSequence.php.
References loadCheckedQuestions(), loadOptionalQuestions(), loadPresentedQuestions(), and loadQuestionSequence().
Referenced by ilTestVirtualSequence\getTestSequence().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 185 of file class.ilTestSequence.php.
References $res.
Referenced by loadFromDb().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 159 of file class.ilTestSequence.php.
References $res.
Referenced by loadFromDb().
 Here is the caller graph for this function:| ilTestSequence::loadQuestions | ( | ) | 
Loads the question mapping.
Definition at line 101 of file class.ilTestSequence.php.
References $data.
      
  | 
  private | 
Definition at line 130 of file class.ilTestSequence.php.
References setAnsweringOptionalQuestionsConfirmed().
Referenced by loadFromDb().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSequence::openQuestionExists | ( | ) | 
Definition at line 696 of file class.ilTestSequence.php.
References getFirstSequence().
 Here is the call graph for this function:| ilTestSequence::pcArrayShuffle | ( | array | $array | ) | 
Shuffles the values of a given array.
Definition at line 582 of file class.ilTestSequence.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by createNewSequence().
 Here is the caller graph for this function:| ilTestSequence::postponeQuestion | ( | int | $question_id | ) | 
Definition at line 280 of file class.ilTestSequence.php.
References isPostponedQuestion().
 Here is the call graph for this function:| ilTestSequence::postponeSequence | ( | int | $sequence | ) | 
Definition at line 347 of file class.ilTestSequence.php.
References ILIAS\Repository\int(), and isPostponedSequence().
 Here is the call graph for this function:| ilTestSequence::questionExists | ( | int | $question_id | ) | 
Definition at line 706 of file class.ilTestSequence.php.
| ilTestSequence::reorderOptionalQuestionsToSequenceEnd | ( | ) | 
Definition at line 743 of file class.ilTestSequence.php.
References getQuestionForSequence(), and isQuestionOptional().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 250 of file class.ilTestSequence.php.
Referenced by saveToDb().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 239 of file class.ilTestSequence.php.
Referenced by saveToDb().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 261 of file class.ilTestSequence.php.
Referenced by saveToDb().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 211 of file class.ilTestSequence.php.
References isAnsweringOptionalQuestionsConfirmed().
Referenced by saveToDb().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSequence::saveToDb | ( | ) | 
Saves the sequence data for a given pass to the database.
public
Definition at line 203 of file class.ilTestSequence.php.
References saveNewlyCheckedQuestion(), saveNewlyPresentedQuestion(), saveOptionalQuestions(), and saveQuestionSequence().
Referenced by ilLOTestQuestionAdapter\prepareTestPass().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSequence::setAnsweringOptionalQuestionsConfirmed | ( | bool | $answeringOptionalQuestionsConfirmed | ) | 
Definition at line 764 of file class.ilTestSequence.php.
References $answeringOptionalQuestionsConfirmed.
Referenced by loadQuestionSequence().
 Here is the caller graph for this function:| ilTestSequence::setConsiderHiddenQuestionsEnabled | ( | bool | $considerHiddenQuestionsEnabled | ) | 
Definition at line 776 of file class.ilTestSequence.php.
References $considerHiddenQuestionsEnabled.
| ilTestSequence::setConsiderOptionalQuestionsEnabled | ( | bool | $considerOptionalQuestionsEnabled | ) | 
Definition at line 786 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
| ilTestSequence::setPass | ( | int | $pass | ) | 
Definition at line 654 of file class.ilTestSequence.php.
| ilTestSequence::setQuestionChecked | ( | int | $question_id | ) | 
Definition at line 404 of file class.ilTestSequence.php.
| ilTestSequence::setQuestionOptional | ( | int | $question_id | ) | 
Definition at line 718 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
 Here is the caller graph for this function:| ilTestSequence::setQuestionPresented | ( | int | $question_id | ) | 
Definition at line 371 of file class.ilTestSequence.php.
      
  | 
  protected | 
Definition at line 49 of file class.ilTestSequence.php.
      
  | 
  protected | 
Definition at line 43 of file class.ilTestSequence.php.
      
  | 
  private | 
Definition at line 55 of file class.ilTestSequence.php.
Referenced by isAnsweringOptionalQuestionsConfirmed(), and setAnsweringOptionalQuestionsConfirmed().
      
  | 
  private | 
Definition at line 56 of file class.ilTestSequence.php.
Referenced by isConsiderHiddenQuestionsEnabled(), and setConsiderHiddenQuestionsEnabled().
      
  | 
  private | 
Definition at line 57 of file class.ilTestSequence.php.
Referenced by isConsiderOptionalQuestionsEnabled(), and setConsiderOptionalQuestionsEnabled().
      
  | 
  protected | 
Definition at line 50 of file class.ilTestSequence.php.
      
  | 
  protected | 
Definition at line 44 of file class.ilTestSequence.php.
      
  | 
  protected | 
Definition at line 54 of file class.ilTestSequence.php.
Referenced by getOptionalQuestions().
| array ilTestSequence::$questions | 
The mapping of the sequence numbers to the questions.
Definition at line 42 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions().
| array ilTestSequence::$sequencedata | 
An array containing the sequence data.
Definition at line 37 of file class.ilTestSequence.php.