Skip to content

Commit

Permalink
chore: update wirisquizzes integration to v4.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Torrent i Soler committed Dec 19, 2024
1 parent fa90254 commit c5ed861
Show file tree
Hide file tree
Showing 48 changed files with 78,218 additions and 413 deletions.
5 changes: 5 additions & 0 deletions quizzes/configuration.ini.dist
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@

;quizzes.service.url = "http://www.wiris.net/demo/quizzes"

;
; URL to connect to the WirisQuizzes new API (beta)

;quizzes.api.url = "https://www.wiris.net/demo/quizzes/api"

;
; URL where to get the JNLP file for Wiris Cas app.

Expand Down
Binary file added quizzes/lib/auto_awesome_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public function __construct(){}
static $SERVICE_OFFLINE = "quizzes.service.offline";
static $HAND_URL = "quizzes.hand.url";
static $SERVICE_URL = "quizzes.service.url";
static $API_URL = "quizzes.api.url";
static $PROXY_URL = "quizzes.proxy.url";
static $CACHE_DIR = "quizzes.cache.dir";
static $MAXCONNECTIONS = "quizzes.maxconnections";
Expand Down
4 changes: 3 additions & 1 deletion quizzes/lib/com/wiris/quizzes/api/PropertyName.enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ class com_wiris_quizzes_api_PropertyName extends Enum {
public static $GRAPH_SHOW_VALUE_IN_LABEL;
public static $GRAPH_TOOLBAR;
public static $HANDWRITING_CONSTRAINTS;
public static $MULTISTEP_SESSION_ID;
public static $SHOW_AUXILIARY_TEXT_INPUT;
public static $SHOW_CAS;
public static $STUDENT_ANSWER_PARAMETER;
public static $STUDENT_ANSWER_PARAMETER_NAME;
public static $USER_ID;
public static $__constructors = array(2 => 'ANSWER_FIELD_TYPE', 10 => 'AUXILIARY_CAS_HIDE_FILE_MENU', 9 => 'AUXILIARY_TEXT', 7 => 'CAS_SESSION', 3 => 'COMPOUND_ANSWER', 4 => 'COMPOUND_ANSWER_GRADE', 5 => 'COMPOUND_ANSWER_GRADE_DISTRIBUTION', 14 => 'ELEMENTS_TO_HANDWRITE', 15 => 'GRAPH_LOCK_INITIAL_CONTENT', 18 => 'GRAPH_MAGNETIC_GRID', 16 => 'GRAPH_SHOW_NAME_IN_LABEL', 17 => 'GRAPH_SHOW_VALUE_IN_LABEL', 12 => 'GRAPH_TOOLBAR', 13 => 'HANDWRITING_CONSTRAINTS', 8 => 'SHOW_AUXILIARY_TEXT_INPUT', 6 => 'SHOW_CAS', 0 => 'STUDENT_ANSWER_PARAMETER', 1 => 'STUDENT_ANSWER_PARAMETER_NAME', 11 => 'USER_ID');
public static $__constructors = array(2 => 'ANSWER_FIELD_TYPE', 10 => 'AUXILIARY_CAS_HIDE_FILE_MENU', 9 => 'AUXILIARY_TEXT', 7 => 'CAS_SESSION', 3 => 'COMPOUND_ANSWER', 4 => 'COMPOUND_ANSWER_GRADE', 5 => 'COMPOUND_ANSWER_GRADE_DISTRIBUTION', 14 => 'ELEMENTS_TO_HANDWRITE', 15 => 'GRAPH_LOCK_INITIAL_CONTENT', 18 => 'GRAPH_MAGNETIC_GRID', 16 => 'GRAPH_SHOW_NAME_IN_LABEL', 17 => 'GRAPH_SHOW_VALUE_IN_LABEL', 12 => 'GRAPH_TOOLBAR', 13 => 'HANDWRITING_CONSTRAINTS', 19 => 'MULTISTEP_SESSION_ID', 8 => 'SHOW_AUXILIARY_TEXT_INPUT', 6 => 'SHOW_CAS', 0 => 'STUDENT_ANSWER_PARAMETER', 1 => 'STUDENT_ANSWER_PARAMETER_NAME', 11 => 'USER_ID');
}
com_wiris_quizzes_api_PropertyName::$ANSWER_FIELD_TYPE = new com_wiris_quizzes_api_PropertyName("ANSWER_FIELD_TYPE", 2);
com_wiris_quizzes_api_PropertyName::$AUXILIARY_CAS_HIDE_FILE_MENU = new com_wiris_quizzes_api_PropertyName("AUXILIARY_CAS_HIDE_FILE_MENU", 10);
Expand All @@ -36,6 +37,7 @@ class com_wiris_quizzes_api_PropertyName extends Enum {
com_wiris_quizzes_api_PropertyName::$GRAPH_SHOW_VALUE_IN_LABEL = new com_wiris_quizzes_api_PropertyName("GRAPH_SHOW_VALUE_IN_LABEL", 17);
com_wiris_quizzes_api_PropertyName::$GRAPH_TOOLBAR = new com_wiris_quizzes_api_PropertyName("GRAPH_TOOLBAR", 12);
com_wiris_quizzes_api_PropertyName::$HANDWRITING_CONSTRAINTS = new com_wiris_quizzes_api_PropertyName("HANDWRITING_CONSTRAINTS", 13);
com_wiris_quizzes_api_PropertyName::$MULTISTEP_SESSION_ID = new com_wiris_quizzes_api_PropertyName("MULTISTEP_SESSION_ID", 19);
com_wiris_quizzes_api_PropertyName::$SHOW_AUXILIARY_TEXT_INPUT = new com_wiris_quizzes_api_PropertyName("SHOW_AUXILIARY_TEXT_INPUT", 8);
com_wiris_quizzes_api_PropertyName::$SHOW_CAS = new com_wiris_quizzes_api_PropertyName("SHOW_CAS", 6);
com_wiris_quizzes_api_PropertyName::$STUDENT_ANSWER_PARAMETER = new com_wiris_quizzes_api_PropertyName("STUDENT_ANSWER_PARAMETER", 0);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

interface com_wiris_quizzes_api_QuestionInstance extends com_wiris_quizzes_api_Serializable{
function startMultiStepSession();
function setParameter($name, $value);
function getProperty($name);
function setProperty($name, $value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
class com_wiris_quizzes_api_assertion_SyntaxName extends Enum {
public static $GRAPHIC;
public static $MATH;
public static $MATH_MULTISTEP;
public static $STRING;
public static $__constructors = array(1 => 'GRAPHIC', 0 => 'MATH', 2 => 'STRING');
public static $__constructors = array(1 => 'GRAPHIC', 0 => 'MATH', 3 => 'MATH_MULTISTEP', 2 => 'STRING');
}
com_wiris_quizzes_api_assertion_SyntaxName::$GRAPHIC = new com_wiris_quizzes_api_assertion_SyntaxName("GRAPHIC", 1);
com_wiris_quizzes_api_assertion_SyntaxName::$MATH = new com_wiris_quizzes_api_assertion_SyntaxName("MATH", 0);
com_wiris_quizzes_api_assertion_SyntaxName::$MATH_MULTISTEP = new com_wiris_quizzes_api_assertion_SyntaxName("MATH_MULTISTEP", 3);
com_wiris_quizzes_api_assertion_SyntaxName::$STRING = new com_wiris_quizzes_api_assertion_SyntaxName("STRING", 2);
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,41 @@ class com_wiris_quizzes_api_assertion_SyntaxParameterName extends Enum {
public static $FUNCTIONS;
public static $GRAPH_MODE;
public static $GROUP_OPERATORS;
public static $IMPLICIT_PRODUCT;
public static $INTERVALS;
public static $ITEM_SEPARATORS;
public static $LIST_OPERATORS;
public static $MIXED_FRACTIONS;
public static $NO_BRACKETS_LIST;
public static $PRODUCT_OPERATORS;
public static $RATIO;
public static $REF_ID;
public static $SCIENTIFIC_NOTATION;
public static $TASK_TO_SOLVE;
public static $TYPE_OF_TASK;
public static $UNITS;
public static $UNIT_PREFIXES;
public static $__constructors = array(0 => 'CONSTANTS', 8 => 'DECIMAL_SEPARATORS', 9 => 'DIGIT_GROUP_SEPARATORS', 1 => 'FUNCTIONS', 14 => 'GRAPH_MODE', 2 => 'GROUP_OPERATORS', 11 => 'INTERVALS', 7 => 'ITEM_SEPARATORS', 3 => 'LIST_OPERATORS', 6 => 'MIXED_FRACTIONS', 10 => 'NO_BRACKETS_LIST', 12 => 'RATIO', 13 => 'SCIENTIFIC_NOTATION', 4 => 'UNITS', 5 => 'UNIT_PREFIXES');
public static $VARIABLE_NAME;
public static $__constructors = array(0 => 'CONSTANTS', 8 => 'DECIMAL_SEPARATORS', 9 => 'DIGIT_GROUP_SEPARATORS', 1 => 'FUNCTIONS', 14 => 'GRAPH_MODE', 2 => 'GROUP_OPERATORS', 20 => 'IMPLICIT_PRODUCT', 11 => 'INTERVALS', 7 => 'ITEM_SEPARATORS', 3 => 'LIST_OPERATORS', 6 => 'MIXED_FRACTIONS', 10 => 'NO_BRACKETS_LIST', 19 => 'PRODUCT_OPERATORS', 12 => 'RATIO', 18 => 'REF_ID', 13 => 'SCIENTIFIC_NOTATION', 15 => 'TASK_TO_SOLVE', 16 => 'TYPE_OF_TASK', 4 => 'UNITS', 5 => 'UNIT_PREFIXES', 17 => 'VARIABLE_NAME');
}
com_wiris_quizzes_api_assertion_SyntaxParameterName::$CONSTANTS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("CONSTANTS", 0);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$DECIMAL_SEPARATORS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("DECIMAL_SEPARATORS", 8);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$DIGIT_GROUP_SEPARATORS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("DIGIT_GROUP_SEPARATORS", 9);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$FUNCTIONS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("FUNCTIONS", 1);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$GRAPH_MODE = new com_wiris_quizzes_api_assertion_SyntaxParameterName("GRAPH_MODE", 14);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$GROUP_OPERATORS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("GROUP_OPERATORS", 2);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$IMPLICIT_PRODUCT = new com_wiris_quizzes_api_assertion_SyntaxParameterName("IMPLICIT_PRODUCT", 20);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$INTERVALS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("INTERVALS", 11);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$ITEM_SEPARATORS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("ITEM_SEPARATORS", 7);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$LIST_OPERATORS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("LIST_OPERATORS", 3);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$MIXED_FRACTIONS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("MIXED_FRACTIONS", 6);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$NO_BRACKETS_LIST = new com_wiris_quizzes_api_assertion_SyntaxParameterName("NO_BRACKETS_LIST", 10);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$PRODUCT_OPERATORS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("PRODUCT_OPERATORS", 19);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$RATIO = new com_wiris_quizzes_api_assertion_SyntaxParameterName("RATIO", 12);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$REF_ID = new com_wiris_quizzes_api_assertion_SyntaxParameterName("REF_ID", 18);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$SCIENTIFIC_NOTATION = new com_wiris_quizzes_api_assertion_SyntaxParameterName("SCIENTIFIC_NOTATION", 13);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$TASK_TO_SOLVE = new com_wiris_quizzes_api_assertion_SyntaxParameterName("TASK_TO_SOLVE", 15);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$TYPE_OF_TASK = new com_wiris_quizzes_api_assertion_SyntaxParameterName("TYPE_OF_TASK", 16);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$UNITS = new com_wiris_quizzes_api_assertion_SyntaxParameterName("UNITS", 4);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$UNIT_PREFIXES = new com_wiris_quizzes_api_assertion_SyntaxParameterName("UNIT_PREFIXES", 5);
com_wiris_quizzes_api_assertion_SyntaxParameterName::$VARIABLE_NAME = new com_wiris_quizzes_api_assertion_SyntaxParameterName("VARIABLE_NAME", 17);
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
class com_wiris_quizzes_api_ui_AnswerFieldType extends Enum {
public static $INLINE_GRAPH_EDITOR;
public static $INLINE_MATH_EDITOR;
public static $MULTISTEP_MATH_EDITOR;
public static $POPUP_MATH_EDITOR;
public static $TEXT_FIELD;
public static $__constructors = array(3 => 'INLINE_GRAPH_EDITOR', 1 => 'INLINE_MATH_EDITOR', 2 => 'POPUP_MATH_EDITOR', 0 => 'TEXT_FIELD');
public static $__constructors = array(3 => 'INLINE_GRAPH_EDITOR', 1 => 'INLINE_MATH_EDITOR', 4 => 'MULTISTEP_MATH_EDITOR', 2 => 'POPUP_MATH_EDITOR', 0 => 'TEXT_FIELD');
}
com_wiris_quizzes_api_ui_AnswerFieldType::$INLINE_GRAPH_EDITOR = new com_wiris_quizzes_api_ui_AnswerFieldType("INLINE_GRAPH_EDITOR", 3);
com_wiris_quizzes_api_ui_AnswerFieldType::$INLINE_MATH_EDITOR = new com_wiris_quizzes_api_ui_AnswerFieldType("INLINE_MATH_EDITOR", 1);
com_wiris_quizzes_api_ui_AnswerFieldType::$MULTISTEP_MATH_EDITOR = new com_wiris_quizzes_api_ui_AnswerFieldType("MULTISTEP_MATH_EDITOR", 4);
com_wiris_quizzes_api_ui_AnswerFieldType::$POPUP_MATH_EDITOR = new com_wiris_quizzes_api_ui_AnswerFieldType("POPUP_MATH_EDITOR", 2);
com_wiris_quizzes_api_ui_AnswerFieldType::$TEXT_FIELD = new com_wiris_quizzes_api_ui_AnswerFieldType("TEXT_FIELD", 0);
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

interface com_wiris_quizzes_api_ui_AuthoringField extends com_wiris_quizzes_api_ui_QuizzesField{
function showAutomatedStudentGuidance($visible);
function showAnswerFieldPlainText($visible);
function showAnswerFieldPopupEditor($visible);
function showAnswerFieldInlineEditor($visible);
Expand Down
Loading

0 comments on commit c5ed861

Please sign in to comment.