Browse Source

Moving question types in main_api.lib.php

Julio Montoya 12 years ago
parent
commit
92373af299
2 changed files with 26 additions and 25 deletions
  1. 0 25
      main/exercice/question.class.php
  2. 26 0
      main/inc/lib/main_api.lib.php

+ 0 - 25
main/exercice/question.class.php

@@ -11,31 +11,6 @@
  * Code
  */
 
-// Question types
-define('UNIQUE_ANSWER', 1);
-define('MULTIPLE_ANSWER', 2);
-define('FILL_IN_BLANKS', 3);
-define('MATCHING', 4);
-define('FREE_ANSWER', 5);
-define('HOT_SPOT', 6);
-define('HOT_SPOT_ORDER', 7);
-define('HOT_SPOT_DELINEATION', 8);
-define('MULTIPLE_ANSWER_COMBINATION', 9);
-define('UNIQUE_ANSWER_NO_OPTION', 10);
-define('MULTIPLE_ANSWER_TRUE_FALSE', 11);
-define('MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE', 12);
-define('ORAL_EXPRESSION', 13);
-define('GLOBAL_MULTIPLE_ANSWER', 14);
-define('MEDIA_QUESTION', 15);
-define('UNIQUE_ANSWER_IMAGE', 16);
-define('DRAGGABLE', 17);
-
-//Some alias used in the QTI exports
-define('MCUA', 1);
-define('TF', 1);
-define('MCMA', 2);
-define('FIB', 3);
-
 /**
  *    QUESTION CLASS
  *

+ 26 - 0
main/inc/lib/main_api.lib.php

@@ -370,6 +370,32 @@ define('TEACHER_HTML_FULLPAGE', 5);
 // Exercise
 define('EXERCISE_NUMBER_OF_DECIMALS', 2);
 
+// @todo add this constants in the Question class
+// Question types
+define('UNIQUE_ANSWER', 1);
+define('MULTIPLE_ANSWER', 2);
+define('FILL_IN_BLANKS', 3);
+define('MATCHING', 4);
+define('FREE_ANSWER', 5);
+define('HOT_SPOT', 6);
+define('HOT_SPOT_ORDER', 7);
+define('HOT_SPOT_DELINEATION', 8);
+define('MULTIPLE_ANSWER_COMBINATION', 9);
+define('UNIQUE_ANSWER_NO_OPTION', 10);
+define('MULTIPLE_ANSWER_TRUE_FALSE', 11);
+define('MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE', 12);
+define('ORAL_EXPRESSION', 13);
+define('GLOBAL_MULTIPLE_ANSWER', 14);
+define('MEDIA_QUESTION', 15);
+define('UNIQUE_ANSWER_IMAGE', 16);
+define('DRAGGABLE', 17);
+
+//Some alias used in the QTI exports
+define('MCUA', 1);
+define('TF', 1);
+define('MCMA', 2);
+define('FIB', 3);
+
 /* XML processing functions */
 
 // A regular expression for accessing declared encoding within xml-formatted text.