ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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// fau: testNav - define new commands
36 const REVERT_CHANGES = 'revertChanges';
37 const DETECT_CHANGES = 'detectChanges';
38// fau.
39 const DISCARD_SOLUTION = 'discardSolution';
40 const SKIP_QUESTION = 'skipQuestion';
41 const SHOW_INSTANT_RESPONSE = 'showInstantResponse';
42
43 const CONFIRM_HINT_REQUEST = 'confirmHintRequest';
44 const SHOW_REQUESTED_HINTS_LIST = 'showRequestedHintList';
45
46 const QUESTION_SUMMARY = 'outQuestionSummary';
47 const QUESTION_SUMMARY_INC_OBLIGATIONS = 'outQuestionSummaryWithObligationsInfo';
48 const QUESTION_SUMMARY_OBLIGATIONS_ONLY = 'outObligationsOnlySummary';
49 const TOGGLE_SIDE_LIST = 'toggleSideList';
50
51 const SHOW_QUESTION_SELECTION = 'showQuestionSelection';
52 const UNFREEZE_ANSWERS = 'unfreezeCheckedQuestionsAnswers';
53
54 const AUTO_SAVE = 'autosave';
55 const REDIRECT_ON_TIME_LIMIT = 'redirectAfterAutosave';
56
57 const SUSPEND_TEST = 'suspendTest';
58 const FINISH_TEST = 'finishTest';
59 const AFTER_TEST_PASS_FINISHED = 'afterTestPassFinished';
60 const SHOW_FINAL_STATMENT = 'showFinalStatement';
61
62 const BACK_TO_INFO_SCREEN = 'backToInfoScreen';
63 const BACK_FROM_FINISHING = 'backFromFinishing';
64
68 private static $nonExecutionCommands = array(
69// fau: testNav - declare DETECT_CHANGES as non execution command
70 self::DETECT_CHANGES,
71// fau.
72 self::AUTO_SAVE, self::REDIRECT_ON_TIME_LIMIT,
73 self::AFTER_TEST_PASS_FINISHED, self::SHOW_FINAL_STATMENT
74 );
75
80 public static function isTestExecutionCommand($cmd)
81 {
82 return !in_array($cmd, self::$nonExecutionCommands);
83 }
84}
An exception for terminatinating execution or to throw for unit testing.
$cmd
Definition: sahs_server.php:35