ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilTestPlayerCommands.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
12 {
13  const START_TEST = 'startTest';
14  const INIT_TEST = 'initTest';
15  const START_PLAYER = 'startPlayer';
16  const RESUME_PLAYER = 'resumePlayer';
17 
18  const DISPLAY_ACCESS_CODE = 'displayAccessCode';
19  const ACCESS_CODE_CONFIRMED = 'accessCodeConfirmed';
20 
21  const SHOW_QUESTION = 'showQuestion';
22 
23  const PREVIOUS_QUESTION = 'previousQuestion';
24  const NEXT_QUESTION = 'nextQuestion';
25 
26  const EDIT_SOLUTION = 'editSolution';
27  const MARK_QUESTION = 'markQuestion';
28  const MARK_QUESTION_SAVE = 'markQuestionAndSaveIntermediate';
29  const UNMARK_QUESTION = 'unmarkQuestion';
30  const UNMARK_QUESTION_SAVE = 'unmarkQuestionAndSaveIntermediate';
31 
32  const SUBMIT_INTERMEDIATE_SOLUTION = 'submitIntermediateSolution';
33  const SUBMIT_SOLUTION = 'submitSolution';
34  const SUBMIT_SOLUTION_AND_NEXT = 'submitSolutionAndNext';
35  const DISCARD_SOLUTION = 'discardSolution';
36  const SKIP_QUESTION = 'skipQuestion';
37  const SHOW_INSTANT_RESPONSE = 'showInstantResponse';
38 
39  const CONFIRM_HINT_REQUEST = 'confirmHintRequest';
40  const SHOW_REQUESTED_HINTS_LIST = 'showRequestedHintList';
41 
42  const QUESTION_SUMMARY = 'outQuestionSummary';
43  const QUESTION_SUMMARY_INC_OBLIGATIONS = 'outQuestionSummaryWithObligationsInfo';
44  const QUESTION_SUMMARY_OBLIGATIONS_ONLY = 'outObligationsOnlySummary';
45  const TOGGLE_SIDE_LIST = 'toggleSideList';
46 
47  const SHOW_QUESTION_SELECTION = 'showQuestionSelection';
48  const UNFREEZE_ANSWERS = 'unfreezeCheckedQuestionsAnswers';
49 
50  const AUTO_SAVE = 'autosave';
51  const REDIRECT_ON_TIME_LIMIT = 'redirectAfterAutosave';
52 
53  const SUSPEND_TEST = 'suspendTest';
54  const FINISH_TEST = 'finishTest';
55  const AFTER_TEST_PASS_FINISHED = 'afterTestPassFinished';
56  const SHOW_FINAL_STATMENT = 'showFinalStatement';
57 
58  const BACK_TO_INFO_SCREEN = 'backToInfoScreen';
59  const BACK_FROM_FINISHING = 'backFromFinishing';
60 
64  private static $nonExecutionCommands = array(
65  self::AUTO_SAVE, self::REDIRECT_ON_TIME_LIMIT,
66  self::AFTER_TEST_PASS_FINISHED, self::SHOW_FINAL_STATMENT
67  );
68 
73  public static function isTestExecutionCommand($cmd)
74  {
75  return !in_array($cmd, self::$nonExecutionCommands);
76  }
77 }
$cmd
Definition: sahs_server.php:35