From f18a65e407245e19c7e60babd90f84a98ae80d4a Mon Sep 17 00:00:00 2001 From: Stella Lie Date: Mon, 4 Jul 2016 17:03:46 +1000 Subject: [PATCH 1/4] Update with latest schemas --- src/Entities/Activity/activity.php | 117 ++-- src/Entities/Activity/activity_data.php | 88 ++- .../Activity/activity_data_config.php | 138 +++-- .../activity_data_config_configuration.php | 162 ++--- .../activity_data_config_navigation.php | 570 ++++++++++------- ...a_config_navigation_show_accessibility.php | 90 +-- .../Activity/activity_data_config_time.php | 138 +++-- .../Activity/activity_data_sections_item.php | 66 ++ .../activity_data_sections_item_config.php | 43 ++ src/Entities/Item/item.php | 210 ++++--- src/Entities/QuestionTypes/association.php | 379 +++++++----- .../QuestionTypes/association_metadata.php | 142 +++-- .../QuestionTypes/association_ui_style.php | 114 ++-- .../QuestionTypes/association_validation.php | 154 +++-- ...ociation_validation_alt_responses_item.php | 66 +- .../association_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/audio.php | 371 ++++++----- src/Entities/QuestionTypes/audio_metadata.php | 118 ++-- src/Entities/QuestionTypes/audio_ui_style.php | 426 +++++++------ .../QuestionTypes/audio_validation.php | 42 +- src/Entities/QuestionTypes/audioplayer.php | 207 ++++--- src/Entities/QuestionTypes/calculator.php | 103 ++-- src/Entities/QuestionTypes/chemistry.php | 467 ++++++++------ .../QuestionTypes/chemistry_metadata.php | 118 ++-- .../chemistry_response_container.php | 66 +- .../chemistry_response_containers_item.php | 66 +- .../QuestionTypes/chemistry_ui_style.php | 142 +++-- .../QuestionTypes/chemistry_validation.php | 146 +++-- ...hemistry_validation_alt_responses_item.php | 66 +- ...lidation_alt_responses_item_value_item.php | 42 +- .../chemistry_validation_valid_response.php | 66 +- ...y_validation_valid_response_value_item.php | 42 +- src/Entities/QuestionTypes/chemistryessay.php | 339 +++++----- .../QuestionTypes/chemistryessay_metadata.php | 118 ++-- .../QuestionTypes/chemistryessay_ui_style.php | 166 ++--- .../chemistryessay_validation.php | 42 +- src/Entities/QuestionTypes/choicematrix.php | 343 ++++++----- .../QuestionTypes/choicematrix_metadata.php | 142 +++-- .../QuestionTypes/choicematrix_ui_style.php | 214 ++++--- .../QuestionTypes/choicematrix_validation.php | 154 +++-- ...cematrix_validation_alt_responses_item.php | 66 +- ...choicematrix_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/classification.php | 375 ++++++----- .../QuestionTypes/classification_metadata.php | 142 +++-- .../QuestionTypes/classification_ui_style.php | 282 +++++---- .../classification_validation.php | 158 ++--- ...fication_validation_alt_responses_item.php | 66 +- ...assification_validation_valid_response.php | 74 ++- .../QuestionTypes/clozeassociation.php | 431 +++++++------ .../clozeassociation_metadata.php | 142 +++-- .../clozeassociation_response_container.php | 90 +-- ...zeassociation_response_containers_item.php | 90 +-- .../clozeassociation_ui_style.php | 114 ++-- .../clozeassociation_validation.php | 154 +++-- ...ociation_validation_alt_responses_item.php | 66 +- ...eassociation_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/clozechemistry.php | 475 ++++++++------ .../QuestionTypes/clozechemistry_metadata.php | 142 +++-- .../clozechemistry_response_container.php | 90 +-- ...lozechemistry_response_containers_item.php | 90 +-- .../QuestionTypes/clozechemistry_ui_style.php | 170 ++--- .../clozechemistry_validation.php | 154 +++-- ...hemistry_validation_alt_responses_item.php | 66 +- ...ozechemistry_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/clozedropdown.php | 411 ++++++------ .../QuestionTypes/clozedropdown_metadata.php | 142 +++-- .../clozedropdown_response_container.php | 90 +-- ...clozedropdown_response_containers_item.php | 90 +-- .../QuestionTypes/clozedropdown_ui_style.php | 66 +- .../clozedropdown_validation.php | 154 +++-- ...dropdown_validation_alt_responses_item.php | 66 +- ...lozedropdown_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/clozeformula.php | 475 ++++++++------ .../QuestionTypes/clozeformula_metadata.php | 142 +++-- .../clozeformula_response_container.php | 90 +-- .../clozeformula_response_containers_item.php | 90 +-- .../QuestionTypes/clozeformula_ui_style.php | 170 ++--- .../QuestionTypes/clozeformula_validation.php | 154 +++-- ...eformula_validation_alt_responses_item.php | 66 +- ...clozeformula_validation_valid_response.php | 66 +- .../QuestionTypes/clozeinlinetext.php | 503 ++++++++------- .../clozeinlinetext_metadata.php | 142 +++-- .../clozeinlinetext_response_container.php | 90 +-- ...ozeinlinetext_response_containers_item.php | 90 +-- .../clozeinlinetext_ui_style.php | 66 +- .../clozeinlinetext_validation.php | 154 +++-- ...linetext_validation_alt_responses_item.php | 66 +- ...zeinlinetext_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/clozetext.php | 531 +++++++++------- .../QuestionTypes/clozetext_metadata.php | 142 +++-- .../clozetext_response_container.php | 114 ++-- .../clozetext_response_containers_item.php | 114 ++-- .../QuestionTypes/clozetext_ui_style.php | 66 +- .../QuestionTypes/clozetext_validation.php | 154 +++-- ...lozetext_validation_alt_responses_item.php | 66 +- .../clozetext_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/counter.php | 203 +++--- src/Entities/QuestionTypes/custom.php | 303 +++++---- .../QuestionTypes/custom_metadata.php | 118 ++-- .../QuestionTypes/custom_ui_style.php | 66 +- src/Entities/QuestionTypes/formula.php | 391 +++++++----- src/Entities/QuestionTypes/formulaV2.php | 467 ++++++++------ .../QuestionTypes/formulaV2_metadata.php | 118 ++-- .../formulaV2_response_container.php | 66 +- .../formulaV2_response_containers_item.php | 66 +- .../QuestionTypes/formulaV2_ui_style.php | 142 +++-- .../QuestionTypes/formulaV2_validation.php | 146 +++-- ...ormulaV2_validation_alt_responses_item.php | 66 +- ...lidation_alt_responses_item_value_item.php | 42 +- .../formulaV2_validation_valid_response.php | 66 +- ...2_validation_valid_response_value_item.php | 42 +- src/Entities/QuestionTypes/formula_dev.php | 467 ++++++++------ .../QuestionTypes/formula_dev_metadata.php | 118 ++-- .../formula_dev_response_container.php | 66 +- .../formula_dev_response_containers_item.php | 66 +- .../QuestionTypes/formula_dev_ui_style.php | 142 +++-- .../QuestionTypes/formula_dev_validation.php | 146 +++-- ...mula_dev_validation_alt_responses_item.php | 66 +- ...lidation_alt_responses_item_value_item.php | 42 +- .../formula_dev_validation_valid_response.php | 66 +- ...v_validation_valid_response_value_item.php | 42 +- .../QuestionTypes/formula_metadata.php | 118 ++-- .../formula_response_container.php | 66 +- .../formula_response_containers_item.php | 66 +- .../QuestionTypes/formula_symbols_item.php | 90 +-- .../formula_symbols_keyboard_item.php | 66 +- .../QuestionTypes/formula_ui_style.php | 66 +- .../QuestionTypes/formula_validation.php | 146 +++-- .../formula_validation_alt_responses_item.php | 66 +- ...lidation_alt_responses_item_value_item.php | 42 +- .../formula_validation_valid_response.php | 66 +- ...a_validation_valid_response_value_item.php | 42 +- src/Entities/QuestionTypes/formulaessay.php | 339 +++++----- .../QuestionTypes/formulaessay_metadata.php | 118 ++-- .../QuestionTypes/formulaessay_ui_style.php | 166 ++--- .../QuestionTypes/formulaessay_validation.php | 42 +- src/Entities/QuestionTypes/formulainput.php | 247 ++++---- .../QuestionTypes/formulainput_container.php | 66 +- .../QuestionTypes/formulainput_ui_style.php | 70 ++- src/Entities/QuestionTypes/graphplotting.php | 567 +++++++++-------- .../graphplotting_annotation.php | 138 +++-- .../QuestionTypes/graphplotting_axis_x.php | 210 ++++--- .../QuestionTypes/graphplotting_axis_y.php | 210 ++++--- .../graphplotting_background_image.php | 162 ++--- .../QuestionTypes/graphplotting_canvas.php | 162 ++--- .../QuestionTypes/graphplotting_grid.php | 66 +- .../QuestionTypes/graphplotting_metadata.php | 118 ++-- .../QuestionTypes/graphplotting_toolbar.php | 94 +-- .../QuestionTypes/graphplotting_ui_style.php | 178 +++--- .../graphplotting_validation.php | 182 +++--- ...plotting_validation_alt_responses_item.php | 66 +- ...raphplotting_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/highlight.php | 327 +++++----- .../QuestionTypes/highlight_metadata.php | 146 +++-- .../QuestionTypes/highlight_ui_style.php | 42 +- .../QuestionTypes/highlight_validation.php | 42 +- src/Entities/QuestionTypes/hotspot.php | 383 +++++++----- .../QuestionTypes/hotspot_area_attributes.php | 66 +- .../hotspot_area_attributes_global.php | 66 +- ...otspot_area_attributes_individual_item.php | 114 ++-- src/Entities/QuestionTypes/hotspot_image.php | 90 +-- .../QuestionTypes/hotspot_metadata.php | 118 ++-- .../QuestionTypes/hotspot_ui_style.php | 66 +- .../QuestionTypes/hotspot_validation.php | 145 +++-- .../hotspot_validation_alt_responses_item.php | 66 ++ .../hotspot_validation_valid_response.php | 66 +- .../QuestionTypes/imageclozeassociation.php | 451 ++++++++------ .../imageclozeassociation_image.php | 114 ++-- .../imageclozeassociation_metadata.php | 142 +++-- ...ageclozeassociation_response_container.php | 114 ++-- ...zeassociation_response_containers_item.php | 114 ++-- .../imageclozeassociation_ui_style.php | 114 ++-- .../imageclozeassociation_validation.php | 154 +++-- ...ociation_validation_alt_responses_item.php | 66 +- ...eassociation_validation_valid_response.php | 66 +- .../QuestionTypes/imageclozechemistry.php | 503 ++++++++------- .../imageclozechemistry_image.php | 114 ++-- .../imageclozechemistry_metadata.php | 142 +++-- ...imageclozechemistry_response_container.php | 90 +-- ...lozechemistry_response_containers_item.php | 90 +-- .../imageclozechemistry_ui_style.php | 170 ++--- .../imageclozechemistry_validation.php | 154 +++-- ...hemistry_validation_alt_responses_item.php | 66 +- ...ozechemistry_validation_valid_response.php | 66 +- .../QuestionTypes/imageclozedropdown.php | 427 +++++++------ .../imageclozedropdown_image.php | 114 ++-- .../imageclozedropdown_metadata.php | 142 +++-- .../imageclozedropdown_response_container.php | 114 ++-- ...clozedropdown_response_containers_item.php | 114 ++-- .../imageclozedropdown_ui_style.php | 66 +- .../imageclozedropdown_validation.php | 154 +++-- ...dropdown_validation_alt_responses_item.php | 66 +- ...lozedropdown_validation_valid_response.php | 66 +- .../QuestionTypes/imageclozeformula.php | 503 ++++++++------- .../QuestionTypes/imageclozeformula_image.php | 114 ++-- .../imageclozeformula_metadata.php | 142 +++-- .../imageclozeformula_response_container.php | 90 +-- ...eclozeformula_response_containers_item.php | 90 +-- .../imageclozeformula_ui_style.php | 170 ++--- .../imageclozeformula_validation.php | 154 +++-- ...eformula_validation_alt_responses_item.php | 66 +- ...clozeformula_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/imageclozetext.php | 547 +++++++++------- .../QuestionTypes/imageclozetext_image.php | 114 ++-- .../QuestionTypes/imageclozetext_metadata.php | 142 +++-- .../imageclozetext_response_container.php | 138 +++-- ...mageclozetext_response_containers_item.php | 138 +++-- .../QuestionTypes/imageclozetext_ui_style.php | 66 +- .../imageclozetext_validation.php | 154 +++-- ...lozetext_validation_alt_responses_item.php | 66 +- ...ageclozetext_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/imagetool.php | 247 ++++---- src/Entities/QuestionTypes/imageupload.php | 359 ++++++----- .../QuestionTypes/imageupload_image.php | 90 +-- .../QuestionTypes/imageupload_metadata.php | 118 ++-- .../QuestionTypes/imageupload_ui_style.php | 66 +- .../QuestionTypes/imageupload_validation.php | 130 ++-- .../imageupload_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/longtext.php | 451 ++++++++------ .../QuestionTypes/longtext_metadata.php | 118 ++-- .../QuestionTypes/longtext_ui_style.php | 90 +-- .../QuestionTypes/longtext_validation.php | 42 +- src/Entities/QuestionTypes/mcq.php | 375 ++++++----- src/Entities/QuestionTypes/mcq_metadata.php | 174 +++--- .../QuestionTypes/mcq_options_item.php | 70 ++- src/Entities/QuestionTypes/mcq_ui_style.php | 138 +++-- src/Entities/QuestionTypes/mcq_validation.php | 146 +++-- .../mcq_validation_alt_responses_item.php | 66 +- .../mcq_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/numberline.php | 415 +++++++------ .../QuestionTypes/numberline_labels.php | 114 ++-- .../QuestionTypes/numberline_line.php | 138 +++-- .../QuestionTypes/numberline_metadata.php | 146 +++-- .../QuestionTypes/numberline_ticks.php | 150 +++-- .../QuestionTypes/numberline_ui_style.php | 238 ++++--- .../QuestionTypes/numberline_validation.php | 170 ++--- ...mberline_validation_alt_responses_item.php | 66 +- ...lidation_alt_responses_item_value_item.php | 66 +- .../numberline_validation_valid_response.php | 66 +- ...e_validation_valid_response_value_item.php | 66 +- src/Entities/QuestionTypes/numberlineplot.php | 455 ++++++++------ .../QuestionTypes/numberlineplot_labels.php | 90 +-- .../QuestionTypes/numberlineplot_line.php | 114 ++-- .../QuestionTypes/numberlineplot_metadata.php | 146 +++-- .../QuestionTypes/numberlineplot_ticks.php | 162 ++--- .../QuestionTypes/numberlineplot_ui_style.php | 190 +++--- .../numberlineplot_validation.php | 154 +++-- ...lineplot_validation_alt_responses_item.php | 70 ++- ...lidation_alt_responses_item_value_item.php | 42 +- ...mberlineplot_validation_valid_response.php | 70 ++- ...t_validation_valid_response_value_item.php | 42 +- src/Entities/QuestionTypes/orderlist.php | 327 +++++----- .../QuestionTypes/orderlist_metadata.php | 118 ++-- .../QuestionTypes/orderlist_ui_style.php | 114 ++-- .../QuestionTypes/orderlist_validation.php | 166 ++--- ...rderlist_validation_alt_responses_item.php | 66 +- .../orderlist_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/plaintext.php | 499 ++++++++------- .../QuestionTypes/plaintext_metadata.php | 118 ++-- .../QuestionTypes/plaintext_ui_style.php | 90 +-- .../QuestionTypes/plaintext_validation.php | 42 +- src/Entities/QuestionTypes/rating.php | 243 ++++---- .../QuestionTypes/rating_metadata.php | 118 ++-- .../QuestionTypes/rating_options_item.php | 138 +++-- .../QuestionTypes/rating_ui_style.php | 42 +- .../QuestionTypes/scrollablepassage.php | 148 +++-- src/Entities/QuestionTypes/sharedpassage.php | 151 +++-- .../QuestionTypes/sharedpassage_metadata.php | 74 ++- src/Entities/QuestionTypes/shorttext.php | 471 ++++++++------ .../QuestionTypes/shorttext_metadata.php | 118 ++-- .../shorttext_response_container.php | 42 +- .../QuestionTypes/shorttext_ui_style.php | 42 +- .../QuestionTypes/shorttext_validation.php | 146 +++-- ...horttext_validation_alt_responses_item.php | 66 +- .../shorttext_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/simplechart.php | 583 ++++++++++-------- .../QuestionTypes/simplechart_chart_data.php | 66 +- .../simplechart_chart_data_data_item.php | 90 +-- .../QuestionTypes/simplechart_metadata.php | 118 ++-- .../QuestionTypes/simplechart_ui_style.php | 90 +-- .../QuestionTypes/simplechart_validation.php | 170 ++--- .../simplechart_validation_valid_response.php | 66 +- ...t_validation_valid_response_value_item.php | 66 +- src/Entities/QuestionTypes/simpleshading.php | 387 +++++++----- .../simpleshading_background_image.php | 114 ++-- .../QuestionTypes/simpleshading_canvas.php | 210 ++++--- .../QuestionTypes/simpleshading_metadata.php | 118 ++-- .../QuestionTypes/simpleshading_ui_style.php | 42 +- .../simpleshading_validation.php | 126 ++-- ...impleshading_validation_valid_response.php | 66 +- ...hading_validation_valid_response_value.php | 42 +- src/Entities/QuestionTypes/sortlist.php | 327 +++++----- .../QuestionTypes/sortlist_metadata.php | 118 ++-- .../QuestionTypes/sortlist_ui_style.php | 90 +-- .../QuestionTypes/sortlist_validation.php | 154 +++-- ...sortlist_validation_alt_responses_item.php | 66 +- .../sortlist_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/texthighlight.php | 331 +++++----- .../QuestionTypes/texthighlight_metadata.php | 146 +++-- .../QuestionTypes/texthighlight_ui_style.php | 42 +- .../texthighlight_validation.php | 114 ++-- src/Entities/QuestionTypes/tokenhighlight.php | 343 ++++++----- .../QuestionTypes/tokenhighlight_metadata.php | 146 +++-- .../QuestionTypes/tokenhighlight_ui_style.php | 42 +- .../tokenhighlight_validation.php | 154 +++-- ...ighlight_validation_alt_responses_item.php | 66 +- ...kenhighlight_validation_valid_response.php | 66 +- src/Entities/QuestionTypes/videoplayer.php | 151 +++-- .../QuestionTypes/videoplayer_metadata.php | 42 +- 309 files changed, 25905 insertions(+), 19498 deletions(-) create mode 100644 src/Entities/Activity/activity_data_sections_item.php create mode 100644 src/Entities/Activity/activity_data_sections_item_config.php create mode 100644 src/Entities/QuestionTypes/hotspot_validation_alt_responses_item.php diff --git a/src/Entities/Activity/activity.php b/src/Entities/Activity/activity.php index e829bee8..873753e1 100644 --- a/src/Entities/Activity/activity.php +++ b/src/Entities/Activity/activity.php @@ -5,96 +5,89 @@ use LearnosityQti\Entities\BaseEntity; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class activity extends BaseEntity { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class activity extends BaseEntity +{ protected $reference; protected $description; - protected $items; protected $data; - + public function __construct( - $reference, - activity_data $data - ) - { - $this->reference = $reference; - $this->data = $data; - } + $reference, + activity_data $data + ) { + $this->reference = $reference; + $this->data = $data; + } /** - * Get reference \ - * \ - * @return string $reference \ - */ - public function get_reference() { + * Get reference \ + * \ + * + * @return string $reference \ + */ + public function get_reference() + { return $this->reference; } /** - * Set reference \ - * \ - * @param string $reference \ - */ - public function set_reference ($reference) { + * Set reference \ + * \ + * + * @param string $reference \ + */ + public function set_reference($reference) + { $this->reference = $reference; } /** - * Get description \ - * \ - * @return string $description \ - */ - public function get_description() { + * Get description \ + * \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set description \ - * \ - * @param string $description \ - */ - public function set_description ($description) { + * Set description \ + * \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get items \ - * \ - * @return array $items \ - */ - public function get_items() { - return $this->items; - } - - /** - * Set items \ - * \ - * @param array $items \ - */ - public function set_items (array $items) { - $this->items = $items; - } - - /** - * Get data \ - * \ - * @return activity_data $data \ - */ - public function get_data() { + * Get data \ + * \ + * + * @return activity_data $data \ + */ + public function get_data() + { return $this->data; } /** - * Set data \ - * \ - * @param activity_data $data \ - */ - public function set_data (activity_data $data) { + * Set data \ + * \ + * + * @param activity_data $data \ + */ + public function set_data(activity_data $data) + { $this->data = $data; } - + } diff --git a/src/Entities/Activity/activity_data.php b/src/Entities/Activity/activity_data.php index 89d86049..034e97e7 100644 --- a/src/Entities/Activity/activity_data.php +++ b/src/Entities/Activity/activity_data.php @@ -5,35 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class activity_data extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class activity_data extends BaseQuestionTypeAttribute +{ + protected $sections; + protected $items; protected $config; - - public function __construct( - ) + + public function __construct() + { + } + + /** + * Get sections \ + * \ + * + * @return array $sections \ + */ + public function get_sections() { - } + return $this->sections; + } /** - * Get config \ - * \ - * @return activity_data_config $config \ - */ - public function get_config() { + * Set sections \ + * \ + * + * @param array $sections \ + */ + public function set_sections(array $sections) + { + $this->sections = $sections; + } + + /** + * Get items \ + * \ + * + * @return array $items \ + */ + public function get_items() + { + return $this->items; + } + + /** + * Set items \ + * \ + * + * @param array $items \ + */ + public function set_items(array $items) + { + $this->items = $items; + } + + /** + * Get config \ + * \ + * + * @return activity_data_config $config \ + */ + public function get_config() + { return $this->config; } /** - * Set config \ - * \ - * @param activity_data_config $config \ - */ - public function set_config (activity_data_config $config) { + * Set config \ + * \ + * + * @param activity_data_config $config \ + */ + public function set_config(activity_data_config $config) + { $this->config = $config; } - + } diff --git a/src/Entities/Activity/activity_data_config.php b/src/Entities/Activity/activity_data_config.php index 2786630d..34f539d8 100644 --- a/src/Entities/Activity/activity_data_config.php +++ b/src/Entities/Activity/activity_data_config.php @@ -5,111 +5,131 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class activity_data_config extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class activity_data_config extends BaseQuestionTypeAttribute +{ protected $ui_style; protected $administration; protected $time; protected $navigation; protected $configuration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get ui_style \ - * \ - * @return string $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return string $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param string $ui_style \ - */ - public function set_ui_style ($ui_style) { + * Set ui_style \ + * \ + * + * @param string $ui_style \ + */ + public function set_ui_style($ui_style) + { $this->ui_style = $ui_style; } /** - * Get administration \ - * \ - * @return string $administration \ - */ - public function get_administration() { + * Get administration \ + * \ + * + * @return string $administration \ + */ + public function get_administration() + { return $this->administration; } /** - * Set administration \ - * \ - * @param string $administration \ - */ - public function set_administration ($administration) { + * Set administration \ + * \ + * + * @param string $administration \ + */ + public function set_administration($administration) + { $this->administration = $administration; } /** - * Get time \ - * \ - * @return activity_data_config_time $time \ - */ - public function get_time() { + * Get time \ + * \ + * + * @return activity_data_config_time $time \ + */ + public function get_time() + { return $this->time; } /** - * Set time \ - * \ - * @param activity_data_config_time $time \ - */ - public function set_time (activity_data_config_time $time) { + * Set time \ + * \ + * + * @param activity_data_config_time $time \ + */ + public function set_time(activity_data_config_time $time) + { $this->time = $time; } /** - * Get navigation \ - * \ - * @return activity_data_config_navigation $navigation \ - */ - public function get_navigation() { + * Get navigation \ + * \ + * + * @return activity_data_config_navigation $navigation \ + */ + public function get_navigation() + { return $this->navigation; } /** - * Set navigation \ - * \ - * @param activity_data_config_navigation $navigation \ - */ - public function set_navigation (activity_data_config_navigation $navigation) { + * Set navigation \ + * \ + * + * @param activity_data_config_navigation $navigation \ + */ + public function set_navigation(activity_data_config_navigation $navigation) + { $this->navigation = $navigation; } /** - * Get configuration \ - * \ - * @return activity_data_config_configuration $configuration \ - */ - public function get_configuration() { + * Get configuration \ + * \ + * + * @return activity_data_config_configuration $configuration \ + */ + public function get_configuration() + { return $this->configuration; } /** - * Set configuration \ - * \ - * @param activity_data_config_configuration $configuration \ - */ - public function set_configuration (activity_data_config_configuration $configuration) { + * Set configuration \ + * \ + * + * @param activity_data_config_configuration $configuration \ + */ + public function set_configuration(activity_data_config_configuration $configuration) + { $this->configuration = $configuration; } - + } diff --git a/src/Entities/Activity/activity_data_config_configuration.php b/src/Entities/Activity/activity_data_config_configuration.php index a8fc79b1..88629db9 100644 --- a/src/Entities/Activity/activity_data_config_configuration.php +++ b/src/Entities/Activity/activity_data_config_configuration.php @@ -5,130 +5,154 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class activity_data_config_configuration extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class activity_data_config_configuration extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $dynamic; protected $idle_timeout; protected $events; protected $preload_audio_player; protected $submit_criteria; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get fontsize \ - * \ - * @return string $fontsize \ - */ - public function get_fontsize() { + * Get fontsize \ + * \ + * + * @return string $fontsize \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set fontsize \ - * \ - * @param string $fontsize \ - */ - public function set_fontsize ($fontsize) { + * Set fontsize \ + * \ + * + * @param string $fontsize \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get dynamic \ - * \ - * @return boolean $dynamic \ - */ - public function get_dynamic() { + * Get dynamic \ + * \ + * + * @return boolean $dynamic \ + */ + public function get_dynamic() + { return $this->dynamic; } /** - * Set dynamic \ - * \ - * @param boolean $dynamic \ - */ - public function set_dynamic ($dynamic) { + * Set dynamic \ + * \ + * + * @param boolean $dynamic \ + */ + public function set_dynamic($dynamic) + { $this->dynamic = $dynamic; } /** - * Get idle_timeout \ - * \ - * @return boolean $idle_timeout \ - */ - public function get_idle_timeout() { + * Get idle_timeout \ + * \ + * + * @return boolean $idle_timeout \ + */ + public function get_idle_timeout() + { return $this->idle_timeout; } /** - * Set idle_timeout \ - * \ - * @param boolean $idle_timeout \ - */ - public function set_idle_timeout ($idle_timeout) { + * Set idle_timeout \ + * \ + * + * @param boolean $idle_timeout \ + */ + public function set_idle_timeout($idle_timeout) + { $this->idle_timeout = $idle_timeout; } /** - * Get events \ - * \ - * @return boolean $events \ - */ - public function get_events() { + * Get events \ + * \ + * + * @return boolean $events \ + */ + public function get_events() + { return $this->events; } /** - * Set events \ - * \ - * @param boolean $events \ - */ - public function set_events ($events) { + * Set events \ + * \ + * + * @param boolean $events \ + */ + public function set_events($events) + { $this->events = $events; } /** - * Get preload_audio_player \ - * \ - * @return boolean $preload_audio_player \ - */ - public function get_preload_audio_player() { + * Get preload_audio_player \ + * \ + * + * @return boolean $preload_audio_player \ + */ + public function get_preload_audio_player() + { return $this->preload_audio_player; } /** - * Set preload_audio_player \ - * \ - * @param boolean $preload_audio_player \ - */ - public function set_preload_audio_player ($preload_audio_player) { + * Set preload_audio_player \ + * \ + * + * @param boolean $preload_audio_player \ + */ + public function set_preload_audio_player($preload_audio_player) + { $this->preload_audio_player = $preload_audio_player; } /** - * Get submit_criteria \ - * \ - * @return boolean $submit_criteria \ - */ - public function get_submit_criteria() { + * Get submit_criteria \ + * \ + * + * @return boolean $submit_criteria \ + */ + public function get_submit_criteria() + { return $this->submit_criteria; } /** - * Set submit_criteria \ - * \ - * @param boolean $submit_criteria \ - */ - public function set_submit_criteria ($submit_criteria) { + * Set submit_criteria \ + * \ + * + * @param boolean $submit_criteria \ + */ + public function set_submit_criteria($submit_criteria) + { $this->submit_criteria = $submit_criteria; } - + } diff --git a/src/Entities/Activity/activity_data_config_navigation.php b/src/Entities/Activity/activity_data_config_navigation.php index 3a1fe684..103d8274 100644 --- a/src/Entities/Activity/activity_data_config_navigation.php +++ b/src/Entities/Activity/activity_data_config_navigation.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class activity_data_config_navigation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class activity_data_config_navigation extends BaseQuestionTypeAttribute +{ protected $auto_save; protected $show_save; protected $show_submit; @@ -32,426 +33,517 @@ class activity_data_config_navigation extends BaseQuestionTypeAttribute { protected $exit_securebrowser; protected $show_acknowledgements; protected $show_accessibility; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get auto_save \ - * \ - * @return boolean $auto_save \ - */ - public function get_auto_save() { + * Get auto_save \ + * \ + * + * @return boolean $auto_save \ + */ + public function get_auto_save() + { return $this->auto_save; } /** - * Set auto_save \ - * \ - * @param boolean $auto_save \ - */ - public function set_auto_save ($auto_save) { + * Set auto_save \ + * \ + * + * @param boolean $auto_save \ + */ + public function set_auto_save($auto_save) + { $this->auto_save = $auto_save; } /** - * Get show_save \ - * \ - * @return boolean $show_save \ - */ - public function get_show_save() { + * Get show_save \ + * \ + * + * @return boolean $show_save \ + */ + public function get_show_save() + { return $this->show_save; } /** - * Set show_save \ - * \ - * @param boolean $show_save \ - */ - public function set_show_save ($show_save) { + * Set show_save \ + * \ + * + * @param boolean $show_save \ + */ + public function set_show_save($show_save) + { $this->show_save = $show_save; } /** - * Get show_submit \ - * \ - * @return boolean $show_submit \ - */ - public function get_show_submit() { + * Get show_submit \ + * \ + * + * @return boolean $show_submit \ + */ + public function get_show_submit() + { return $this->show_submit; } /** - * Set show_submit \ - * \ - * @param boolean $show_submit \ - */ - public function set_show_submit ($show_submit) { + * Set show_submit \ + * \ + * + * @param boolean $show_submit \ + */ + public function set_show_submit($show_submit) + { $this->show_submit = $show_submit; } /** - * Get skip_submit_confirmation \ - * \ - * @return boolean $skip_submit_confirmation \ - */ - public function get_skip_submit_confirmation() { + * Get skip_submit_confirmation \ + * \ + * + * @return boolean $skip_submit_confirmation \ + */ + public function get_skip_submit_confirmation() + { return $this->skip_submit_confirmation; } /** - * Set skip_submit_confirmation \ - * \ - * @param boolean $skip_submit_confirmation \ - */ - public function set_skip_submit_confirmation ($skip_submit_confirmation) { + * Set skip_submit_confirmation \ + * \ + * + * @param boolean $skip_submit_confirmation \ + */ + public function set_skip_submit_confirmation($skip_submit_confirmation) + { $this->skip_submit_confirmation = $skip_submit_confirmation; } /** - * Get show_title \ - * \ - * @return boolean $show_title \ - */ - public function get_show_title() { + * Get show_title \ + * \ + * + * @return boolean $show_title \ + */ + public function get_show_title() + { return $this->show_title; } /** - * Set show_title \ - * \ - * @param boolean $show_title \ - */ - public function set_show_title ($show_title) { + * Set show_title \ + * \ + * + * @param boolean $show_title \ + */ + public function set_show_title($show_title) + { $this->show_title = $show_title; } /** - * Get show_progress \ - * \ - * @return boolean $show_progress \ - */ - public function get_show_progress() { + * Get show_progress \ + * \ + * + * @return boolean $show_progress \ + */ + public function get_show_progress() + { return $this->show_progress; } /** - * Set show_progress \ - * \ - * @param boolean $show_progress \ - */ - public function set_show_progress ($show_progress) { + * Set show_progress \ + * \ + * + * @param boolean $show_progress \ + */ + public function set_show_progress($show_progress) + { $this->show_progress = $show_progress; } /** - * Get show_fullscreencontrol \ - * \ - * @return boolean $show_fullscreencontrol \ - */ - public function get_show_fullscreencontrol() { + * Get show_fullscreencontrol \ + * \ + * + * @return boolean $show_fullscreencontrol \ + */ + public function get_show_fullscreencontrol() + { return $this->show_fullscreencontrol; } /** - * Set show_fullscreencontrol \ - * \ - * @param boolean $show_fullscreencontrol \ - */ - public function set_show_fullscreencontrol ($show_fullscreencontrol) { + * Set show_fullscreencontrol \ + * \ + * + * @param boolean $show_fullscreencontrol \ + */ + public function set_show_fullscreencontrol($show_fullscreencontrol) + { $this->show_fullscreencontrol = $show_fullscreencontrol; } /** - * Get show_intro \ - * \ - * @return boolean $show_intro \ - */ - public function get_show_intro() { + * Get show_intro \ + * \ + * + * @return boolean $show_intro \ + */ + public function get_show_intro() + { return $this->show_intro; } /** - * Set show_intro \ - * \ - * @param boolean $show_intro \ - */ - public function set_show_intro ($show_intro) { + * Set show_intro \ + * \ + * + * @param boolean $show_intro \ + */ + public function set_show_intro($show_intro) + { $this->show_intro = $show_intro; } /** - * Get show_outro \ - * \ - * @return boolean $show_outro \ - */ - public function get_show_outro() { + * Get show_outro \ + * \ + * + * @return boolean $show_outro \ + */ + public function get_show_outro() + { return $this->show_outro; } /** - * Set show_outro \ - * \ - * @param boolean $show_outro \ - */ - public function set_show_outro ($show_outro) { + * Set show_outro \ + * \ + * + * @param boolean $show_outro \ + */ + public function set_show_outro($show_outro) + { $this->show_outro = $show_outro; } /** - * Get show_prev \ - * \ - * @return boolean $show_prev \ - */ - public function get_show_prev() { + * Get show_prev \ + * \ + * + * @return boolean $show_prev \ + */ + public function get_show_prev() + { return $this->show_prev; } /** - * Set show_prev \ - * \ - * @param boolean $show_prev \ - */ - public function set_show_prev ($show_prev) { + * Set show_prev \ + * \ + * + * @param boolean $show_prev \ + */ + public function set_show_prev($show_prev) + { $this->show_prev = $show_prev; } /** - * Get show_next \ - * \ - * @return boolean $show_next \ - */ - public function get_show_next() { + * Get show_next \ + * \ + * + * @return boolean $show_next \ + */ + public function get_show_next() + { return $this->show_next; } /** - * Set show_next \ - * \ - * @param boolean $show_next \ - */ - public function set_show_next ($show_next) { + * Set show_next \ + * \ + * + * @param boolean $show_next \ + */ + public function set_show_next($show_next) + { $this->show_next = $show_next; } /** - * Get show_itemcount \ - * \ - * @return boolean $show_itemcount \ - */ - public function get_show_itemcount() { + * Get show_itemcount \ + * \ + * + * @return boolean $show_itemcount \ + */ + public function get_show_itemcount() + { return $this->show_itemcount; } /** - * Set show_itemcount \ - * \ - * @param boolean $show_itemcount \ - */ - public function set_show_itemcount ($show_itemcount) { + * Set show_itemcount \ + * \ + * + * @param boolean $show_itemcount \ + */ + public function set_show_itemcount($show_itemcount) + { $this->show_itemcount = $show_itemcount; } /** - * Get warning_on_change \ - * \ - * @return boolean $warning_on_change \ - */ - public function get_warning_on_change() { + * Get warning_on_change \ + * \ + * + * @return boolean $warning_on_change \ + */ + public function get_warning_on_change() + { return $this->warning_on_change; } /** - * Set warning_on_change \ - * \ - * @param boolean $warning_on_change \ - */ - public function set_warning_on_change ($warning_on_change) { + * Set warning_on_change \ + * \ + * + * @param boolean $warning_on_change \ + */ + public function set_warning_on_change($warning_on_change) + { $this->warning_on_change = $warning_on_change; } /** - * Get scrolling_indicator \ - * \ - * @return boolean $scrolling_indicator \ - */ - public function get_scrolling_indicator() { + * Get scrolling_indicator \ + * \ + * + * @return boolean $scrolling_indicator \ + */ + public function get_scrolling_indicator() + { return $this->scrolling_indicator; } /** - * Set scrolling_indicator \ - * \ - * @param boolean $scrolling_indicator \ - */ - public function set_scrolling_indicator ($scrolling_indicator) { + * Set scrolling_indicator \ + * \ + * + * @param boolean $scrolling_indicator \ + */ + public function set_scrolling_indicator($scrolling_indicator) + { $this->scrolling_indicator = $scrolling_indicator; } /** - * Get scroll_to_top \ - * \ - * @return boolean $scroll_to_top \ - */ - public function get_scroll_to_top() { + * Get scroll_to_top \ + * \ + * + * @return boolean $scroll_to_top \ + */ + public function get_scroll_to_top() + { return $this->scroll_to_top; } /** - * Set scroll_to_top \ - * \ - * @param boolean $scroll_to_top \ - */ - public function set_scroll_to_top ($scroll_to_top) { + * Set scroll_to_top \ + * \ + * + * @param boolean $scroll_to_top \ + */ + public function set_scroll_to_top($scroll_to_top) + { $this->scroll_to_top = $scroll_to_top; } /** - * Get scroll_to_test \ - * \ - * @return boolean $scroll_to_test \ - */ - public function get_scroll_to_test() { + * Get scroll_to_test \ + * \ + * + * @return boolean $scroll_to_test \ + */ + public function get_scroll_to_test() + { return $this->scroll_to_test; } /** - * Set scroll_to_test \ - * \ - * @param boolean $scroll_to_test \ - */ - public function set_scroll_to_test ($scroll_to_test) { + * Set scroll_to_test \ + * \ + * + * @param boolean $scroll_to_test \ + */ + public function set_scroll_to_test($scroll_to_test) + { $this->scroll_to_test = $scroll_to_test; } /** - * Get transition \ - * \ - * @return boolean $transition \ - */ - public function get_transition() { + * Get transition \ + * \ + * + * @return boolean $transition \ + */ + public function get_transition() + { return $this->transition; } /** - * Set transition \ - * \ - * @param boolean $transition \ - */ - public function set_transition ($transition) { + * Set transition \ + * \ + * + * @param boolean $transition \ + */ + public function set_transition($transition) + { $this->transition = $transition; } /** - * Get transition_speed \ - * \ - * @return integer $transition_speed \ - */ - public function get_transition_speed() { + * Get transition_speed \ + * \ + * + * @return integer $transition_speed \ + */ + public function get_transition_speed() + { return $this->transition_speed; } /** - * Set transition_speed \ - * \ - * @param integer $transition_speed \ - */ - public function set_transition_speed ($transition_speed) { + * Set transition_speed \ + * \ + * + * @param integer $transition_speed \ + */ + public function set_transition_speed($transition_speed) + { $this->transition_speed = $transition_speed; } /** - * Get show_calculator \ - * \ - * @return boolean $show_calculator \ - */ - public function get_show_calculator() { + * Get show_calculator \ + * \ + * + * @return boolean $show_calculator \ + */ + public function get_show_calculator() + { return $this->show_calculator; } /** - * Set show_calculator \ - * \ - * @param boolean $show_calculator \ - */ - public function set_show_calculator ($show_calculator) { + * Set show_calculator \ + * \ + * + * @param boolean $show_calculator \ + */ + public function set_show_calculator($show_calculator) + { $this->show_calculator = $show_calculator; } /** - * Get show_answermasking \ - * \ - * @return boolean $show_answermasking \ - */ - public function get_show_answermasking() { + * Get show_answermasking \ + * \ + * + * @return boolean $show_answermasking \ + */ + public function get_show_answermasking() + { return $this->show_answermasking; } /** - * Set show_answermasking \ - * \ - * @param boolean $show_answermasking \ - */ - public function set_show_answermasking ($show_answermasking) { + * Set show_answermasking \ + * \ + * + * @param boolean $show_answermasking \ + */ + public function set_show_answermasking($show_answermasking) + { $this->show_answermasking = $show_answermasking; } /** - * Get exit_securebrowser \ - * \ - * @return boolean $exit_securebrowser \ - */ - public function get_exit_securebrowser() { + * Get exit_securebrowser \ + * \ + * + * @return boolean $exit_securebrowser \ + */ + public function get_exit_securebrowser() + { return $this->exit_securebrowser; } /** - * Set exit_securebrowser \ - * \ - * @param boolean $exit_securebrowser \ - */ - public function set_exit_securebrowser ($exit_securebrowser) { + * Set exit_securebrowser \ + * \ + * + * @param boolean $exit_securebrowser \ + */ + public function set_exit_securebrowser($exit_securebrowser) + { $this->exit_securebrowser = $exit_securebrowser; } /** - * Get show_acknowledgements \ - * \ - * @return boolean $show_acknowledgements \ - */ - public function get_show_acknowledgements() { + * Get show_acknowledgements \ + * \ + * + * @return boolean $show_acknowledgements \ + */ + public function get_show_acknowledgements() + { return $this->show_acknowledgements; } /** - * Set show_acknowledgements \ - * \ - * @param boolean $show_acknowledgements \ - */ - public function set_show_acknowledgements ($show_acknowledgements) { + * Set show_acknowledgements \ + * \ + * + * @param boolean $show_acknowledgements \ + */ + public function set_show_acknowledgements($show_acknowledgements) + { $this->show_acknowledgements = $show_acknowledgements; } /** - * Get show_accessibility \ - * \ - * @return activity_data_config_navigation_show_accessibility $show_accessibility \ - */ - public function get_show_accessibility() { + * Get show_accessibility \ + * \ + * + * @return activity_data_config_navigation_show_accessibility $show_accessibility \ + */ + public function get_show_accessibility() + { return $this->show_accessibility; } /** - * Set show_accessibility \ - * \ - * @param activity_data_config_navigation_show_accessibility $show_accessibility \ - */ - public function set_show_accessibility (activity_data_config_navigation_show_accessibility $show_accessibility) { + * Set show_accessibility \ + * \ + * + * @param activity_data_config_navigation_show_accessibility $show_accessibility \ + */ + public function set_show_accessibility(activity_data_config_navigation_show_accessibility $show_accessibility) + { $this->show_accessibility = $show_accessibility; } - + } diff --git a/src/Entities/Activity/activity_data_config_navigation_show_accessibility.php b/src/Entities/Activity/activity_data_config_navigation_show_accessibility.php index 46530214..4113ffc0 100644 --- a/src/Entities/Activity/activity_data_config_navigation_show_accessibility.php +++ b/src/Entities/Activity/activity_data_config_navigation_show_accessibility.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class activity_data_config_navigation_show_accessibility extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class activity_data_config_navigation_show_accessibility extends BaseQuestionTypeAttribute +{ protected $show_colourscheme; protected $show_fontsize; protected $show_zoom; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get show_colourscheme \ - * \ - * @return boolean $show_colourscheme \ - */ - public function get_show_colourscheme() { + * Get show_colourscheme \ + * \ + * + * @return boolean $show_colourscheme \ + */ + public function get_show_colourscheme() + { return $this->show_colourscheme; } /** - * Set show_colourscheme \ - * \ - * @param boolean $show_colourscheme \ - */ - public function set_show_colourscheme ($show_colourscheme) { + * Set show_colourscheme \ + * \ + * + * @param boolean $show_colourscheme \ + */ + public function set_show_colourscheme($show_colourscheme) + { $this->show_colourscheme = $show_colourscheme; } /** - * Get show_fontsize \ - * \ - * @return boolean $show_fontsize \ - */ - public function get_show_fontsize() { + * Get show_fontsize \ + * \ + * + * @return boolean $show_fontsize \ + */ + public function get_show_fontsize() + { return $this->show_fontsize; } /** - * Set show_fontsize \ - * \ - * @param boolean $show_fontsize \ - */ - public function set_show_fontsize ($show_fontsize) { + * Set show_fontsize \ + * \ + * + * @param boolean $show_fontsize \ + */ + public function set_show_fontsize($show_fontsize) + { $this->show_fontsize = $show_fontsize; } /** - * Get show_zoom \ - * \ - * @return boolean $show_zoom \ - */ - public function get_show_zoom() { + * Get show_zoom \ + * \ + * + * @return boolean $show_zoom \ + */ + public function get_show_zoom() + { return $this->show_zoom; } /** - * Set show_zoom \ - * \ - * @param boolean $show_zoom \ - */ - public function set_show_zoom ($show_zoom) { + * Set show_zoom \ + * \ + * + * @param boolean $show_zoom \ + */ + public function set_show_zoom($show_zoom) + { $this->show_zoom = $show_zoom; } - + } diff --git a/src/Entities/Activity/activity_data_config_time.php b/src/Entities/Activity/activity_data_config_time.php index 5bc66654..bb151d7f 100644 --- a/src/Entities/Activity/activity_data_config_time.php +++ b/src/Entities/Activity/activity_data_config_time.php @@ -5,111 +5,131 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class activity_data_config_time extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class activity_data_config_time extends BaseQuestionTypeAttribute +{ protected $max_time; protected $limit_type; protected $show_pause; protected $show_time; protected $countdown; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get max_time \ - * \ - * @return string $max_time \ - */ - public function get_max_time() { + * Get max_time \ + * \ + * + * @return string $max_time \ + */ + public function get_max_time() + { return $this->max_time; } /** - * Set max_time \ - * \ - * @param string $max_time \ - */ - public function set_max_time ($max_time) { + * Set max_time \ + * \ + * + * @param string $max_time \ + */ + public function set_max_time($max_time) + { $this->max_time = $max_time; } /** - * Get limit_type \ - * \ - * @return string $limit_type \ - */ - public function get_limit_type() { + * Get limit_type \ + * \ + * + * @return string $limit_type \ + */ + public function get_limit_type() + { return $this->limit_type; } /** - * Set limit_type \ - * \ - * @param string $limit_type \ - */ - public function set_limit_type ($limit_type) { + * Set limit_type \ + * \ + * + * @param string $limit_type \ + */ + public function set_limit_type($limit_type) + { $this->limit_type = $limit_type; } /** - * Get show_pause \ - * \ - * @return string $show_pause \ - */ - public function get_show_pause() { + * Get show_pause \ + * \ + * + * @return string $show_pause \ + */ + public function get_show_pause() + { return $this->show_pause; } /** - * Set show_pause \ - * \ - * @param string $show_pause \ - */ - public function set_show_pause ($show_pause) { + * Set show_pause \ + * \ + * + * @param string $show_pause \ + */ + public function set_show_pause($show_pause) + { $this->show_pause = $show_pause; } /** - * Get show_time \ - * \ - * @return string $show_time \ - */ - public function get_show_time() { + * Get show_time \ + * \ + * + * @return string $show_time \ + */ + public function get_show_time() + { return $this->show_time; } /** - * Set show_time \ - * \ - * @param string $show_time \ - */ - public function set_show_time ($show_time) { + * Set show_time \ + * \ + * + * @param string $show_time \ + */ + public function set_show_time($show_time) + { $this->show_time = $show_time; } /** - * Get countdown \ - * \ - * @return string $countdown \ - */ - public function get_countdown() { + * Get countdown \ + * \ + * + * @return string $countdown \ + */ + public function get_countdown() + { return $this->countdown; } /** - * Set countdown \ - * \ - * @param string $countdown \ - */ - public function set_countdown ($countdown) { + * Set countdown \ + * \ + * + * @param string $countdown \ + */ + public function set_countdown($countdown) + { $this->countdown = $countdown; } - + } diff --git a/src/Entities/Activity/activity_data_sections_item.php b/src/Entities/Activity/activity_data_sections_item.php new file mode 100644 index 00000000..aca450b1 --- /dev/null +++ b/src/Entities/Activity/activity_data_sections_item.php @@ -0,0 +1,66 @@ +items; + } + + /** + * Set items \ + * \ + * + * @param array $items \ + */ + public function set_items(array $items) + { + $this->items = $items; + } + + /** + * Get config \ + * \ + * + * @return activity_data_sections_item_config $config \ + */ + public function get_config() + { + return $this->config; + } + + /** + * Set config \ + * \ + * + * @param activity_data_sections_item_config $config \ + */ + public function set_config(activity_data_sections_item_config $config) + { + $this->config = $config; + } + + +} + diff --git a/src/Entities/Activity/activity_data_sections_item_config.php b/src/Entities/Activity/activity_data_sections_item_config.php new file mode 100644 index 00000000..b607ad28 --- /dev/null +++ b/src/Entities/Activity/activity_data_sections_item_config.php @@ -0,0 +1,43 @@ +subtitle; + } + + /** + * Set subtitle \ + * \ + * + * @param string $subtitle \ + */ + public function set_subtitle($subtitle) + { + $this->subtitle = $subtitle; + } + + +} + diff --git a/src/Entities/Item/item.php b/src/Entities/Item/item.php index b9f80123..f29d8316 100644 --- a/src/Entities/Item/item.php +++ b/src/Entities/Item/item.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseEntity; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class item extends BaseEntity { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class item extends BaseEntity +{ protected $reference; protected $questionReferences; protected $content; @@ -16,150 +17,177 @@ class item extends BaseEntity { protected $description; protected $metadata; protected $workflow; - + public function __construct( - $reference, - array $questionReferences, - $content - ) - { - $this->reference = $reference; - $this->questionReferences = $questionReferences; - $this->content = $content; - } + $reference, + array $questionReferences, + $content + ) { + $this->reference = $reference; + $this->questionReferences = $questionReferences; + $this->content = $content; + } /** - * Get reference \ - * A unique item identifier across Itembank. It has a limitation of maximum of 150 characters and must only contain ASCII p - rintable characters, except for double quotes, single quotes and accent. \ - * @return string $reference \ - */ - public function get_reference() { + * Get reference \ + * A unique item identifier across Itembank. It has a limitation of maximum of 150 characters and must only contain ASCII p + * rintable characters, except for double quotes, single quotes and accent. \ + * + * @return string $reference \ + */ + public function get_reference() + { return $this->reference; } /** - * Set reference \ - * A unique item identifier across Itembank. It has a limitation of maximum of 150 characters and must only contain ASCII p - rintable characters, except for double quotes, single quotes and accent. \ - * @param string $reference \ - */ - public function set_reference ($reference) { + * Set reference \ + * A unique item identifier across Itembank. It has a limitation of maximum of 150 characters and must only contain ASCII p + * rintable characters, except for double quotes, single quotes and accent. \ + * + * @param string $reference \ + */ + public function set_reference($reference) + { $this->reference = $reference; } /** - * Get questionReferences \ - * An array of question references. Like item reference, it has a limitation of maximum of 150 characters and must only con - tain ASCII printable characters, except for double quotes, single quotes and accent. ie. `questionReferenceOne` \ - * @return array $questionReferences \ - */ - public function get_questionReferences() { + * Get questionReferences \ + * An array of question references. Like item reference, it has a limitation of maximum of 150 characters and must only con + * tain ASCII printable characters, except for double quotes, single quotes and accent. ie. `questionReferenceOne` \ + * + * @return array $questionReferences \ + */ + public function get_questionReferences() + { return $this->questionReferences; } /** - * Set questionReferences \ - * An array of question references. Like item reference, it has a limitation of maximum of 150 characters and must only con - tain ASCII printable characters, except for double quotes, single quotes and accent. ie. `questionReferenceOne` \ - * @param array $questionReferences \ - */ - public function set_questionReferences (array $questionReferences) { + * Set questionReferences \ + * An array of question references. Like item reference, it has a limitation of maximum of 150 characters and must only con + * tain ASCII printable characters, except for double quotes, single quotes and accent. ie. `questionReferenceOne` \ + * + * @param array $questionReferences \ + */ + public function set_questionReferences(array $questionReferences) + { $this->questionReferences = $questionReferences; } /** - * Get content \ - * A valid HTML string that may contains the structure that holds Questions. It shall include questions placeholder set in - `questionReferences`, ie. \ - * @return string $content \ - */ - public function get_content() { + * Get content \ + * A valid HTML string that may contains the structure that holds Questions. It shall include questions placeholder set in + * `questionReferences`, ie. \ + * + * @return string $content \ + */ + public function get_content() + { return $this->content; } /** - * Set content \ - * A valid HTML string that may contains the structure that holds Questions. It shall include questions placeholder set in - `questionReferences`, ie. \ - * @param string $content \ - */ - public function set_content ($content) { + * Set content \ + * A valid HTML string that may contains the structure that holds Questions. It shall include questions placeholder set in + * `questionReferences`, ie. \ + * + * @param string $content \ + */ + public function set_content($content) + { $this->content = $content; } /** - * Get status \ - * ie. `published`, `unpublished`, and `deleted` \ - * @return string $status ie. unpublished, published, deleted \ - */ - public function get_status() { + * Get status \ + * ie. `published`, `unpublished`, and `deleted` \ + * + * @return string $status ie. unpublished, published, deleted \ + */ + public function get_status() + { return $this->status; } /** - * Set status \ - * ie. `published`, `unpublished`, and `deleted` \ - * @param string $status ie. unpublished, published, deleted \ - */ - public function set_status ($status) { + * Set status \ + * ie. `published`, `unpublished`, and `deleted` \ + * + * @param string $status ie. unpublished, published, deleted \ + */ + public function set_status($status) + { $this->status = $status; } /** - * Get description \ - * \ - * @return string $description \ - */ - public function get_description() { + * Get description \ + * \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set description \ - * \ - * @param string $description \ - */ - public function set_description ($description) { + * Set description \ + * \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get metadata \ - * \ - * @return array $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return array $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param array $metadata \ - */ - public function set_metadata (array $metadata) { + * Set metadata \ + * \ + * + * @param array $metadata \ + */ + public function set_metadata(array $metadata) + { $this->metadata = $metadata; } /** - * Get workflow \ - * \ - * @return array $workflow \ - */ - public function get_workflow() { + * Get workflow \ + * \ + * + * @return array $workflow \ + */ + public function get_workflow() + { return $this->workflow; } /** - * Set workflow \ - * \ - * @param array $workflow \ - */ - public function set_workflow (array $workflow) { + * Set workflow \ + * \ + * + * @param array $workflow \ + */ + public function set_workflow(array $workflow) + { $this->workflow = $workflow; } - + } diff --git a/src/Entities/QuestionTypes/association.php b/src/Entities/QuestionTypes/association.php index 73fc0db9..b531627b 100644 --- a/src/Entities/QuestionTypes/association.php +++ b/src/Entities/QuestionTypes/association.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class association extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class association extends BaseQuestionType +{ protected $ui_style; protected $is_math; protected $metadata; @@ -22,271 +23,323 @@ class association extends BaseQuestionType { protected $duplicate_responses; protected $possible_responses; protected $stimulus_list; - + public function __construct( - $type, - array $possible_responses, - array $stimulus_list - ) - { - $this->type = $type; - $this->possible_responses = $possible_responses; - $this->stimulus_list = $stimulus_list; - } + $type, + array $possible_responses, + array $stimulus_list + ) { + $this->type = $type; + $this->possible_responses = $possible_responses; + $this->stimulus_list = $stimulus_list; + } /** - * Get ui_style \ - * \ - * @return association_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return association_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param association_ui_style $ui_style \ - */ - public function set_ui_style (association_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param association_ui_style $ui_style \ + */ + public function set_ui_style(association_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return association_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return association_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param association_metadata $metadata \ - */ - public function set_metadata (association_metadata $metadata) { + * Set metadata \ + * \ + * + * @param association_metadata $metadata \ + */ + public function set_metadata(association_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return association_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return association_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param association_validation $validation \ - */ - public function set_validation (association_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param association_validation $validation \ + */ + public function set_validation(association_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Duplicate responses \ - * When true the items from the possible_responses will be reusable infinite times. \ - * @return boolean $duplicate_responses \ - */ - public function get_duplicate_responses() { + * Get Duplicate responses \ + * When true the items from the possible_responses will be reusable infinite times. \ + * + * @return boolean $duplicate_responses \ + */ + public function get_duplicate_responses() + { return $this->duplicate_responses; } /** - * Set Duplicate responses \ - * When true the items from the possible_responses will be reusable infinite times. \ - * @param boolean $duplicate_responses \ - */ - public function set_duplicate_responses ($duplicate_responses) { + * Set Duplicate responses \ + * When true the items from the possible_responses will be reusable infinite times. \ + * + * @param boolean $duplicate_responses \ + */ + public function set_duplicate_responses($duplicate_responses) + { $this->duplicate_responses = $duplicate_responses; } /** - * Get Possible Responses \ - * Array of strings values that need to be dragged to the actual response position. \ - * @return array $possible_responses \ - */ - public function get_possible_responses() { + * Get Possible Responses \ + * Array of strings values that need to be dragged to the actual response position. \ + * + * @return array $possible_responses \ + */ + public function get_possible_responses() + { return $this->possible_responses; } /** - * Set Possible Responses \ - * Array of strings values that need to be dragged to the actual response position. \ - * @param array $possible_responses \ - */ - public function set_possible_responses (array $possible_responses) { + * Set Possible Responses \ + * Array of strings values that need to be dragged to the actual response position. \ + * + * @param array $possible_responses \ + */ + public function set_possible_responses(array $possible_responses) + { $this->possible_responses = $possible_responses; } /** - * Get Stimulus List \ - * An array of strings containing the values to be displayed for the question list. \ - * @return array $stimulus_list \ - */ - public function get_stimulus_list() { + * Get Stimulus List \ + * An array of strings containing the values to be displayed for the question list. \ + * + * @return array $stimulus_list \ + */ + public function get_stimulus_list() + { return $this->stimulus_list; } /** - * Set Stimulus List \ - * An array of strings containing the values to be displayed for the question list. \ - * @param array $stimulus_list \ - */ - public function set_stimulus_list (array $stimulus_list) { + * Set Stimulus List \ + * An array of strings containing the values to be displayed for the question list. \ + * + * @param array $stimulus_list \ + */ + public function set_stimulus_list(array $stimulus_list) + { $this->stimulus_list = $stimulus_list; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/association_metadata.php b/src/Entities/QuestionTypes/association_metadata.php index 905ec495..d9287037 100644 --- a/src/Entities/QuestionTypes/association_metadata.php +++ b/src/Entities/QuestionTypes/association_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class association_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class association_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * Enter Distractor value for each response. \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * Enter Distractor value for each response. \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * Enter Distractor value for each response. \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * Enter Distractor value for each response. \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/association_ui_style.php b/src/Entities/QuestionTypes/association_ui_style.php index 2fb50e79..f9900f4a 100644 --- a/src/Entities/QuestionTypes/association_ui_style.php +++ b/src/Entities/QuestionTypes/association_ui_style.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class association_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class association_ui_style extends BaseQuestionTypeAttribute +{ protected $possibility_list_position; protected $fontsize; protected $validation_stem_numeration; protected $show_drag_handle; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Possibility List Position \ - * Defines where the possibility list sits relative to the input zone. \ - * @return string $possibility_list_position \ - */ - public function get_possibility_list_position() { + * Get Possibility List Position \ + * Defines where the possibility list sits relative to the input zone. \ + * + * @return string $possibility_list_position \ + */ + public function get_possibility_list_position() + { return $this->possibility_list_position; } /** - * Set Possibility List Position \ - * Defines where the possibility list sits relative to the input zone. \ - * @param string $possibility_list_position \ - */ - public function set_possibility_list_position ($possibility_list_position) { + * Set Possibility List Position \ + * Defines where the possibility list sits relative to the input zone. \ + * + * @param string $possibility_list_position \ + */ + public function set_possibility_list_position($possibility_list_position) + { $this->possibility_list_position = $possibility_list_position; } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Drag handle \ - * \ - * @return boolean $show_drag_handle \ - */ - public function get_show_drag_handle() { + * Get Drag handle \ + * \ + * + * @return boolean $show_drag_handle \ + */ + public function get_show_drag_handle() + { return $this->show_drag_handle; } /** - * Set Drag handle \ - * \ - * @param boolean $show_drag_handle \ - */ - public function set_show_drag_handle ($show_drag_handle) { + * Set Drag handle \ + * \ + * + * @param boolean $show_drag_handle \ + */ + public function set_show_drag_handle($show_drag_handle) + { $this->show_drag_handle = $show_drag_handle; } - + } diff --git a/src/Entities/QuestionTypes/association_validation.php b/src/Entities/QuestionTypes/association_validation.php index cc445b3d..528c49d4 100644 --- a/src/Entities/QuestionTypes/association_validation.php +++ b/src/Entities/QuestionTypes/association_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class association_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class association_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return association_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return association_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param association_validation_valid_response $valid_response \ - */ - public function set_valid_response (association_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param association_validation_valid_response $valid_response \ + */ + public function set_valid_response(association_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/association_validation_alt_responses_item.php b/src/Entities/QuestionTypes/association_validation_alt_responses_item.php index 97a905c8..41906a84 100644 --- a/src/Entities/QuestionTypes/association_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/association_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class association_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class association_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/association_validation_valid_response.php b/src/Entities/QuestionTypes/association_validation_valid_response.php index 91d39877..a383ccc2 100644 --- a/src/Entities/QuestionTypes/association_validation_valid_response.php +++ b/src/Entities/QuestionTypes/association_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class association_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class association_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get value \ - * An array containing the valid responses for each item in the stimulus_list in corresponding order. \ - * @return array $value \ - */ - public function get_value() { + * Get value \ + * An array containing the valid responses for each item in the stimulus_list in corresponding order. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set value \ - * An array containing the valid responses for each item in the stimulus_list in corresponding order. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set value \ + * An array containing the valid responses for each item in the stimulus_list in corresponding order. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/audio.php b/src/Entities/QuestionTypes/audio.php index 78422757..e4e8d4e8 100644 --- a/src/Entities/QuestionTypes/audio.php +++ b/src/Entities/QuestionTypes/audio.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class audio extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class audio extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -22,267 +23,319 @@ class audio extends BaseQuestionType { protected $recording_cue; protected $show_download_link; protected $silence_stop_duration; - + public function __construct( - $type - ) - { - $this->type = $type; - } + $type + ) { + $this->type = $type; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return audio_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return audio_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param audio_metadata $metadata \ - */ - public function set_metadata (audio_metadata $metadata) { + * Set metadata \ + * \ + * + * @param audio_metadata $metadata \ + */ + public function set_metadata(audio_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return audio_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return audio_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param audio_ui_style $ui_style \ - */ - public function set_ui_style (audio_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param audio_ui_style $ui_style \ + */ + public function set_ui_style(audio_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @return audio_validation $validation \ - */ - public function get_validation() { + * Get Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @return audio_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @param audio_validation $validation \ - */ - public function set_validation (audio_validation $validation) { + * Set Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @param audio_validation $validation \ + */ + public function set_validation(audio_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Maximum Length (seconds) \ - * Number of seconds of audio allowed to be recorded. Maximum value is: 3600 (1 hour), default is 600 (10 minutes) \ - * @return number $max_length \ - */ - public function get_max_length() { + * Get Maximum Length (seconds) \ + * Number of seconds of audio allowed to be recorded. Maximum value is: 3600 (1 hour), default is 600 (10 minutes) \ + * + * @return number $max_length \ + */ + public function get_max_length() + { return $this->max_length; } /** - * Set Maximum Length (seconds) \ - * Number of seconds of audio allowed to be recorded. Maximum value is: 3600 (1 hour), default is 600 (10 minutes) \ - * @param number $max_length \ - */ - public function set_max_length ($max_length) { + * Set Maximum Length (seconds) \ + * Number of seconds of audio allowed to be recorded. Maximum value is: 3600 (1 hour), default is 600 (10 minutes) \ + * + * @param number $max_length \ + */ + public function set_max_length($max_length) + { $this->max_length = $max_length; } /** - * Get Overwrite warning \ - * Set to false to suppress the overwrite warning when user attempts to re-record. \ - * @return boolean $overwrite_warning \ - */ - public function get_overwrite_warning() { + * Get Overwrite warning \ + * Set to false to suppress the overwrite warning when user attempts to re-record. \ + * + * @return boolean $overwrite_warning \ + */ + public function get_overwrite_warning() + { return $this->overwrite_warning; } /** - * Set Overwrite warning \ - * Set to false to suppress the overwrite warning when user attempts to re-record. \ - * @param boolean $overwrite_warning \ - */ - public function set_overwrite_warning ($overwrite_warning) { + * Set Overwrite warning \ + * Set to false to suppress the overwrite warning when user attempts to re-record. \ + * + * @param boolean $overwrite_warning \ + */ + public function set_overwrite_warning($overwrite_warning) + { $this->overwrite_warning = $overwrite_warning; } /** - * Get Recording Cue \ - * Set to false if the beep is NOT to be played before recording is started. \ - * @return boolean $recording_cue \ - */ - public function get_recording_cue() { + * Get Recording Cue \ + * Set to false if the beep is NOT to be played before recording is started. \ + * + * @return boolean $recording_cue \ + */ + public function get_recording_cue() + { return $this->recording_cue; } /** - * Set Recording Cue \ - * Set to false if the beep is NOT to be played before recording is started. \ - * @param boolean $recording_cue \ - */ - public function set_recording_cue ($recording_cue) { + * Set Recording Cue \ + * Set to false if the beep is NOT to be played before recording is started. \ + * + * @param boolean $recording_cue \ + */ + public function set_recording_cue($recording_cue) + { $this->recording_cue = $recording_cue; } /** - * Get Show Download Link? \ - * If true, a link to download the audio response will appear in resume and review states. \ - * @return boolean $show_download_link \ - */ - public function get_show_download_link() { + * Get Show Download Link? \ + * If true, a link to download the audio response will appear in resume and review states. \ + * + * @return boolean $show_download_link \ + */ + public function get_show_download_link() + { return $this->show_download_link; } /** - * Set Show Download Link? \ - * If true, a link to download the audio response will appear in resume and review states. \ - * @param boolean $show_download_link \ - */ - public function set_show_download_link ($show_download_link) { + * Set Show Download Link? \ + * If true, a link to download the audio response will appear in resume and review states. \ + * + * @param boolean $show_download_link \ + */ + public function set_show_download_link($show_download_link) + { $this->show_download_link = $show_download_link; } /** - * Get Silence stop duration \ - * Duration of audio silence (in seconds) that is allowed before recording is stopped. This value is set to 0 by default, w - hich means the silence detection is turned off. \ - * @return number $silence_stop_duration \ - */ - public function get_silence_stop_duration() { + * Get Silence stop duration \ + * Duration of audio silence (in seconds) that is allowed before recording is stopped. This value is set to 0 by default, w + * hich means the silence detection is turned off. \ + * + * @return number $silence_stop_duration \ + */ + public function get_silence_stop_duration() + { return $this->silence_stop_duration; } /** - * Set Silence stop duration \ - * Duration of audio silence (in seconds) that is allowed before recording is stopped. This value is set to 0 by default, w - hich means the silence detection is turned off. \ - * @param number $silence_stop_duration \ - */ - public function set_silence_stop_duration ($silence_stop_duration) { + * Set Silence stop duration \ + * Duration of audio silence (in seconds) that is allowed before recording is stopped. This value is set to 0 by default, w + * hich means the silence detection is turned off. \ + * + * @param number $silence_stop_duration \ + */ + public function set_silence_stop_duration($silence_stop_duration) + { $this->silence_stop_duration = $silence_stop_duration; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/audio_metadata.php b/src/Entities/QuestionTypes/audio_metadata.php index 41242459..00d15a3d 100644 --- a/src/Entities/QuestionTypes/audio_metadata.php +++ b/src/Entities/QuestionTypes/audio_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class audio_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class audio_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/audio_ui_style.php b/src/Entities/QuestionTypes/audio_ui_style.php index 574b35af..af86fb1c 100644 --- a/src/Entities/QuestionTypes/audio_ui_style.php +++ b/src/Entities/QuestionTypes/audio_ui_style.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class audio_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class audio_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $download_link; protected $pause; @@ -26,318 +27,385 @@ class audio_ui_style extends BaseQuestionTypeAttribute { protected $volume_meter; protected $waveform; protected $responsive_layout; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Download link \ - * If true, a link to download the audio asset is displayed in the UI \ - * @return boolean $download_link \ - */ - public function get_download_link() { + * Get Download link \ + * If true, a link to download the audio asset is displayed in the UI \ + * + * @return boolean $download_link \ + */ + public function get_download_link() + { return $this->download_link; } /** - * Set Download link \ - * If true, a link to download the audio asset is displayed in the UI \ - * @param boolean $download_link \ - */ - public function set_download_link ($download_link) { + * Set Download link \ + * If true, a link to download the audio asset is displayed in the UI \ + * + * @param boolean $download_link \ + */ + public function set_download_link($download_link) + { $this->download_link = $download_link; } /** - * Get Pause \ - * Defines whether the pause button is displayed in the UI \ - * @return boolean $pause \ - */ - public function get_pause() { + * Get Pause \ + * Defines whether the pause button is displayed in the UI \ + * + * @return boolean $pause \ + */ + public function get_pause() + { return $this->pause; } /** - * Set Pause \ - * Defines whether the pause button is displayed in the UI \ - * @param boolean $pause \ - */ - public function set_pause ($pause) { + * Set Pause \ + * Defines whether the pause button is displayed in the UI \ + * + * @param boolean $pause \ + */ + public function set_pause($pause) + { $this->pause = $pause; } /** - * Get Pause recording \ - * Defines whether the pause recording button is enabled \ - * @return boolean $pause_recording \ - */ - public function get_pause_recording() { + * Get Pause recording \ + * Defines whether the pause recording button is enabled \ + * + * @return boolean $pause_recording \ + */ + public function get_pause_recording() + { return $this->pause_recording; } /** - * Set Pause recording \ - * Defines whether the pause recording button is enabled \ - * @param boolean $pause_recording \ - */ - public function set_pause_recording ($pause_recording) { + * Set Pause recording \ + * Defines whether the pause recording button is enabled \ + * + * @param boolean $pause_recording \ + */ + public function set_pause_recording($pause_recording) + { $this->pause_recording = $pause_recording; } /** - * Get Play \ - * Defines whether the play button is displayed in the UI \ - * @return boolean $play \ - */ - public function get_play() { + * Get Play \ + * Defines whether the play button is displayed in the UI \ + * + * @return boolean $play \ + */ + public function get_play() + { return $this->play; } /** - * Set Play \ - * Defines whether the play button is displayed in the UI \ - * @param boolean $play \ - */ - public function set_play ($play) { + * Set Play \ + * Defines whether the play button is displayed in the UI \ + * + * @param boolean $play \ + */ + public function set_play($play) + { $this->play = $play; } /** - * Get Play bubble \ - * Defines whether playback bubble is displayed in the UI, only available for 'button' type \ - * @return boolean $play_bubble \ - */ - public function get_play_bubble() { + * Get Play bubble \ + * Defines whether playback bubble is displayed in the UI, only available for 'button' type \ + * + * @return boolean $play_bubble \ + */ + public function get_play_bubble() + { return $this->play_bubble; } /** - * Set Play bubble \ - * Defines whether playback bubble is displayed in the UI, only available for 'button' type \ - * @param boolean $play_bubble \ - */ - public function set_play_bubble ($play_bubble) { + * Set Play bubble \ + * Defines whether playback bubble is displayed in the UI, only available for 'button' type \ + * + * @param boolean $play_bubble \ + */ + public function set_play_bubble($play_bubble) + { $this->play_bubble = $play_bubble; } /** - * Get Progress bar \ - * Defines whether the progress bar is displayed in the UI \ - * @return boolean $progress_bar \ - */ - public function get_progress_bar() { + * Get Progress bar \ + * Defines whether the progress bar is displayed in the UI \ + * + * @return boolean $progress_bar \ + */ + public function get_progress_bar() + { return $this->progress_bar; } /** - * Set Progress bar \ - * Defines whether the progress bar is displayed in the UI \ - * @param boolean $progress_bar \ - */ - public function set_progress_bar ($progress_bar) { + * Set Progress bar \ + * Defines whether the progress bar is displayed in the UI \ + * + * @param boolean $progress_bar \ + */ + public function set_progress_bar($progress_bar) + { $this->progress_bar = $progress_bar; } /** - * Get Record bubble \ - * Defines whether recording bubble is displayed in the UI, only available for 'button' type \ - * @return boolean $record_bubble \ - */ - public function get_record_bubble() { + * Get Record bubble \ + * Defines whether recording bubble is displayed in the UI, only available for 'button' type \ + * + * @return boolean $record_bubble \ + */ + public function get_record_bubble() + { return $this->record_bubble; } /** - * Set Record bubble \ - * Defines whether recording bubble is displayed in the UI, only available for 'button' type \ - * @param boolean $record_bubble \ - */ - public function set_record_bubble ($record_bubble) { + * Set Record bubble \ + * Defines whether recording bubble is displayed in the UI, only available for 'button' type \ + * + * @param boolean $record_bubble \ + */ + public function set_record_bubble($record_bubble) + { $this->record_bubble = $record_bubble; } /** - * Get Seek \ - * Defines whether the user can change the play position \ - * @return boolean $seek \ - */ - public function get_seek() { + * Get Seek \ + * Defines whether the user can change the play position \ + * + * @return boolean $seek \ + */ + public function get_seek() + { return $this->seek; } /** - * Set Seek \ - * Defines whether the user can change the play position \ - * @param boolean $seek \ - */ - public function set_seek ($seek) { + * Set Seek \ + * Defines whether the user can change the play position \ + * + * @param boolean $seek \ + */ + public function set_seek($seek) + { $this->seek = $seek; } /** - * Get Start recording \ - * Defines whether the start recording button is enabled \ - * @return boolean $start_recording \ - */ - public function get_start_recording() { + * Get Start recording \ + * Defines whether the start recording button is enabled \ + * + * @return boolean $start_recording \ + */ + public function get_start_recording() + { return $this->start_recording; } /** - * Set Start recording \ - * Defines whether the start recording button is enabled \ - * @param boolean $start_recording \ - */ - public function set_start_recording ($start_recording) { + * Set Start recording \ + * Defines whether the start recording button is enabled \ + * + * @param boolean $start_recording \ + */ + public function set_start_recording($start_recording) + { $this->start_recording = $start_recording; } /** - * Get Stop Recording \ - * Defines whether the pause recording button is enabled \ - * @return boolean $stop_recording \ - */ - public function get_stop_recording() { + * Get Stop Recording \ + * Defines whether the pause recording button is enabled \ + * + * @return boolean $stop_recording \ + */ + public function get_stop_recording() + { return $this->stop_recording; } /** - * Set Stop Recording \ - * Defines whether the pause recording button is enabled \ - * @param boolean $stop_recording \ - */ - public function set_stop_recording ($stop_recording) { + * Set Stop Recording \ + * Defines whether the pause recording button is enabled \ + * + * @param boolean $stop_recording \ + */ + public function set_stop_recording($stop_recording) + { $this->stop_recording = $stop_recording; } /** - * Get Timer \ - * Defines whether the timer is displayed in the UI \ - * @return boolean $timer \ - */ - public function get_timer() { + * Get Timer \ + * Defines whether the timer is displayed in the UI \ + * + * @return boolean $timer \ + */ + public function get_timer() + { return $this->timer; } /** - * Set Timer \ - * Defines whether the timer is displayed in the UI \ - * @param boolean $timer \ - */ - public function set_timer ($timer) { + * Set Timer \ + * Defines whether the timer is displayed in the UI \ + * + * @param boolean $timer \ + */ + public function set_timer($timer) + { $this->timer = $timer; } /** - * Get Layout \ - * Defines the rendering type of audio question. Values: "block", "button". \ - * @return string $type \ - */ - public function get_type() { + * Get Layout \ + * Defines the rendering type of audio question. Values: "block", "button". \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Layout \ - * Defines the rendering type of audio question. Values: "block", "button". \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Layout \ + * Defines the rendering type of audio question. Values: "block", "button". \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Volume Control \ - * Defines whether the volume control is displayed in the UI \ - * @return boolean $volume_control \ - */ - public function get_volume_control() { + * Get Volume Control \ + * Defines whether the volume control is displayed in the UI \ + * + * @return boolean $volume_control \ + */ + public function get_volume_control() + { return $this->volume_control; } /** - * Set Volume Control \ - * Defines whether the volume control is displayed in the UI \ - * @param boolean $volume_control \ - */ - public function set_volume_control ($volume_control) { + * Set Volume Control \ + * Defines whether the volume control is displayed in the UI \ + * + * @param boolean $volume_control \ + */ + public function set_volume_control($volume_control) + { $this->volume_control = $volume_control; } /** - * Get Volume Meter \ - * Defines whether the volume meter is displayed in the UI \ - * @return boolean $volume_meter \ - */ - public function get_volume_meter() { + * Get Volume Meter \ + * Defines whether the volume meter is displayed in the UI \ + * + * @return boolean $volume_meter \ + */ + public function get_volume_meter() + { return $this->volume_meter; } /** - * Set Volume Meter \ - * Defines whether the volume meter is displayed in the UI \ - * @param boolean $volume_meter \ - */ - public function set_volume_meter ($volume_meter) { + * Set Volume Meter \ + * Defines whether the volume meter is displayed in the UI \ + * + * @param boolean $volume_meter \ + */ + public function set_volume_meter($volume_meter) + { $this->volume_meter = $volume_meter; } /** - * Get Waveform \ - * Defines whether the waveform is displayed in the UI \ - * @return boolean $waveform \ - */ - public function get_waveform() { + * Get Waveform \ + * Defines whether the waveform is displayed in the UI \ + * + * @return boolean $waveform \ + */ + public function get_waveform() + { return $this->waveform; } /** - * Set Waveform \ - * Defines whether the waveform is displayed in the UI \ - * @param boolean $waveform \ - */ - public function set_waveform ($waveform) { + * Set Waveform \ + * Defines whether the waveform is displayed in the UI \ + * + * @param boolean $waveform \ + */ + public function set_waveform($waveform) + { $this->waveform = $waveform; } /** - * Get Responsive Layout \ - * Defines whether the feature item size can be scaled responsively \ - * @return boolean $responsive_layout \ - */ - public function get_responsive_layout() { + * Get Responsive Layout \ + * Defines whether the feature item size can be scaled responsively \ + * + * @return boolean $responsive_layout \ + */ + public function get_responsive_layout() + { return $this->responsive_layout; } /** - * Set Responsive Layout \ - * Defines whether the feature item size can be scaled responsively \ - * @param boolean $responsive_layout \ - */ - public function set_responsive_layout ($responsive_layout) { + * Set Responsive Layout \ + * Defines whether the feature item size can be scaled responsively \ + * + * @param boolean $responsive_layout \ + */ + public function set_responsive_layout($responsive_layout) + { $this->responsive_layout = $responsive_layout; } - + } diff --git a/src/Entities/QuestionTypes/audio_validation.php b/src/Entities/QuestionTypes/audio_validation.php index 4093cb4e..e15c715c 100644 --- a/src/Entities/QuestionTypes/audio_validation.php +++ b/src/Entities/QuestionTypes/audio_validation.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class audio_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class audio_validation extends BaseQuestionTypeAttribute +{ protected $max_score; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Max Score \ - * The highest score a marker can award to this question response. \ - * @return number $max_score \ - */ - public function get_max_score() { + * Get Max Score \ + * The highest score a marker can award to this question response. \ + * + * @return number $max_score \ + */ + public function get_max_score() + { return $this->max_score; } /** - * Set Max Score \ - * The highest score a marker can award to this question response. \ - * @param number $max_score \ - */ - public function set_max_score ($max_score) { + * Set Max Score \ + * The highest score a marker can award to this question response. \ + * + * @param number $max_score \ + */ + public function set_max_score($max_score) + { $this->max_score = $max_score; } - + } diff --git a/src/Entities/QuestionTypes/audioplayer.php b/src/Entities/QuestionTypes/audioplayer.php index a17b3add..ebbb7ba9 100644 --- a/src/Entities/QuestionTypes/audioplayer.php +++ b/src/Entities/QuestionTypes/audioplayer.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class audioplayer extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class audioplayer extends BaseQuestionType +{ protected $type; protected $metadata; protected $src; @@ -16,149 +17,177 @@ class audioplayer extends BaseQuestionType { protected $playback_limit; protected $waveform; protected $format; - + public function __construct( - $type, - $src - ) - { - $this->type = $type; - $this->src = $src; - } + $type, + $src + ) { + $this->type = $type; + $this->src = $src; + } /** - * Get Feature Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Feature Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Feature Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Feature Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get metadata \ - * \ - * @return object $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return object $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param object $metadata \ - */ - public function set_metadata ($metadata) { + * Set metadata \ + * \ + * + * @param object $metadata \ + */ + public function set_metadata($metadata) + { $this->metadata = $metadata; } /** - * Get Source URL \ - * Embed an audio clip as an additional feature to the current content. You can use your own audio or audio hosted on the I - nternet. \ - * @return string $src \ - */ - public function get_src() { + * Get Source URL \ + * Embed an audio clip as an additional feature to the current content. You can use your own audio or audio hosted on the I + * nternet. \ + * + * @return string $src \ + */ + public function get_src() + { return $this->src; } /** - * Set Source URL \ - * Embed an audio clip as an additional feature to the current content. You can use your own audio or audio hosted on the I - nternet. \ - * @param string $src \ - */ - public function set_src ($src) { + * Set Source URL \ + * Embed an audio clip as an additional feature to the current content. You can use your own audio or audio hosted on the I + * nternet. \ + * + * @param string $src \ + */ + public function set_src($src) + { $this->src = $src; } /** - * Get Player type \ - * Specify the type of audio player between the options: block, button, minimal, bar. \ - * @return string $player \ - */ - public function get_player() { + * Get Player type \ + * Specify the type of audio player between the options: block, button, minimal, bar. \ + * + * @return string $player \ + */ + public function get_player() + { return $this->player; } /** - * Set Player type \ - * Specify the type of audio player between the options: block, button, minimal, bar. \ - * @param string $player \ - */ - public function set_player ($player) { + * Set Player type \ + * Specify the type of audio player between the options: block, button, minimal, bar. \ + * + * @param string $player \ + */ + public function set_player($player) + { $this->player = $player; } /** - * Get Playback Limit \ - * Number of play attempts the user has, with 0 being unlimited. \ - * @return number $playback_limit \ - */ - public function get_playback_limit() { + * Get Playback Limit \ + * Number of play attempts the user has, with 0 being unlimited. \ + * + * @return number $playback_limit \ + */ + public function get_playback_limit() + { return $this->playback_limit; } /** - * Set Playback Limit \ - * Number of play attempts the user has, with 0 being unlimited. \ - * @param number $playback_limit \ - */ - public function set_playback_limit ($playback_limit) { + * Set Playback Limit \ + * Number of play attempts the user has, with 0 being unlimited. \ + * + * @param number $playback_limit \ + */ + public function set_playback_limit($playback_limit) + { $this->playback_limit = $playback_limit; } /** - * Get Waveform URI \ - * URI of the waveform to display. \ - * @return string $waveform \ - */ - public function get_waveform() { + * Get Waveform URI \ + * URI of the waveform to display. \ + * + * @return string $waveform \ + */ + public function get_waveform() + { return $this->waveform; } /** - * Set Waveform URI \ - * URI of the waveform to display. \ - * @param string $waveform \ - */ - public function set_waveform ($waveform) { + * Set Waveform URI \ + * URI of the waveform to display. \ + * + * @param string $waveform \ + */ + public function set_waveform($waveform) + { $this->waveform = $waveform; } /** - * Get Format \ - * Allows specifying the audio format instead of relying on the file extension on src.
If format i - s not defined and src does not have a file extension, the format is assumed to be "mp3". \ - * @return string $format \ - */ - public function get_format() { + * Get Format \ + * Allows specifying the audio format instead of relying on the file extension on src.
If format i + * s not defined and src does not have a file extension, the format is assumed to be "mp3". \ + * + * @return string $format \ + */ + public function get_format() + { return $this->format; } /** - * Set Format \ - * Allows specifying the audio format instead of relying on the file extension on src.
If format i - s not defined and src does not have a file extension, the format is assumed to be "mp3". \ - * @param string $format \ - */ - public function set_format ($format) { + * Set Format \ + * Allows specifying the audio format instead of relying on the file extension on src.
If format i + * s not defined and src does not have a file extension, the format is assumed to be "mp3". \ + * + * @param string $format \ + */ + public function set_format($format) + { $this->format = $format; } - - public function get_widget_type() { - return 'feature'; + + public function get_widget_type() + { + return 'feature'; } } diff --git a/src/Entities/QuestionTypes/calculator.php b/src/Entities/QuestionTypes/calculator.php index 594b74d6..1530c44f 100644 --- a/src/Entities/QuestionTypes/calculator.php +++ b/src/Entities/QuestionTypes/calculator.php @@ -5,80 +5,93 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class calculator extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class calculator extends BaseQuestionType +{ protected $type; protected $metadata; protected $mode; - + public function __construct( - $type, - $mode - ) - { - $this->type = $type; - $this->mode = $mode; - } + $type, + $mode + ) { + $this->type = $type; + $this->mode = $mode; + } /** - * Get Feature Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Feature Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Feature Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Feature Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get metadata \ - * \ - * @return object $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return object $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param object $metadata \ - */ - public function set_metadata ($metadata) { + * Set metadata \ + * \ + * + * @param object $metadata \ + */ + public function set_metadata($metadata) + { $this->metadata = $metadata; } /** - * Get Mode \ - * Mode of calculator to render. Values: basic, scientific \ - * @return string $mode \ - */ - public function get_mode() { + * Get Mode \ + * Mode of calculator to render. Values: basic, scientific \ + * + * @return string $mode \ + */ + public function get_mode() + { return $this->mode; } /** - * Set Mode \ - * Mode of calculator to render. Values: basic, scientific \ - * @param string $mode \ - */ - public function set_mode ($mode) { + * Set Mode \ + * Mode of calculator to render. Values: basic, scientific \ + * + * @param string $mode \ + */ + public function set_mode($mode) + { $this->mode = $mode; } - - public function get_widget_type() { - return 'feature'; + + public function get_widget_type() + { + return 'feature'; } } diff --git a/src/Entities/QuestionTypes/chemistry.php b/src/Entities/QuestionTypes/chemistry.php index e58283ba..b70ad181 100644 --- a/src/Entities/QuestionTypes/chemistry.php +++ b/src/Entities/QuestionTypes/chemistry.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry extends BaseQuestionType +{ protected $handwriting_recognises; protected $is_math; protected $metadata; @@ -26,339 +27,407 @@ class chemistry extends BaseQuestionType { protected $symbols; protected $response_container; protected $response_containers; - + public function __construct( - $type, - chemistry_ui_style $ui_style - ) - { - $this->type = $type; - $this->ui_style = $ui_style; - } + $type, + chemistry_ui_style $ui_style + ) { + $this->type = $type; + $this->ui_style = $ui_style; + } /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return chemistry_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return chemistry_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param chemistry_metadata $metadata \ - */ - public function set_metadata (chemistry_metadata $metadata) { + * Set metadata \ + * \ + * + * @param chemistry_metadata $metadata \ + */ + public function set_metadata(chemistry_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return chemistry_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return chemistry_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param chemistry_ui_style $ui_style \ - */ - public function set_ui_style (chemistry_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param chemistry_ui_style $ui_style \ + */ + public function set_ui_style(chemistry_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return chemistry_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return chemistry_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param chemistry_validation $validation \ - */ - public function set_validation (chemistry_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param chemistry_validation $validation \ + */ + public function set_validation(chemistry_validation $validation) + { $this->validation = $validation; } /** - * Get Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @return array $text_blocks \ - */ - public function get_text_blocks() { + * Get Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @return array $text_blocks \ + */ + public function get_text_blocks() + { return $this->text_blocks; } /** - * Set Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @param array $text_blocks \ - */ - public function set_text_blocks (array $text_blocks) { + * Set Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @param array $text_blocks \ + */ + public function set_text_blocks(array $text_blocks) + { $this->text_blocks = $text_blocks; } /** - * Get Latex / Template Markup \ - * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. - If present, only the {{response}} areas will be editable. \ - * @return string $template \ - */ - public function get_template() { + * Get Latex / Template Markup \ + * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. + * If present, only the {{response}} areas will be editable. \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Latex / Template Markup \ - * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. - If present, only the {{response}} areas will be editable. \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Latex / Template Markup \ + * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. + * If present, only the {{response}} areas will be editable. \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Custom Number Pad \ - * \ - * @return array $numberPad \ - */ - public function get_numberPad() { + * Get Custom Number Pad \ + * \ + * + * @return array $numberPad \ + */ + public function get_numberPad() + { return $this->numberPad; } /** - * Set Custom Number Pad \ - * \ - * @param array $numberPad \ - */ - public function set_numberPad (array $numberPad) { + * Set Custom Number Pad \ + * \ + * + * @param array $numberPad \ + */ + public function set_numberPad(array $numberPad) + { $this->numberPad = $numberPad; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return chemistry_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return chemistry_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param chemistry_response_container $response_container \ - */ - public function set_response_container (chemistry_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param chemistry_response_container $response_container \ + */ + public function set_response_container(chemistry_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/chemistry_metadata.php b/src/Entities/QuestionTypes/chemistry_metadata.php index de52754d..bf0d21b4 100644 --- a/src/Entities/QuestionTypes/chemistry_metadata.php +++ b/src/Entities/QuestionTypes/chemistry_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/chemistry_response_container.php b/src/Entities/QuestionTypes/chemistry_response_container.php index 23e76d70..59d4a31e 100644 --- a/src/Entities/QuestionTypes/chemistry_response_container.php +++ b/src/Entities/QuestionTypes/chemistry_response_container.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry_response_container extends BaseQuestionTypeAttribute +{ protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/chemistry_response_containers_item.php b/src/Entities/QuestionTypes/chemistry_response_containers_item.php index e8eb9055..af7ef8a6 100644 --- a/src/Entities/QuestionTypes/chemistry_response_containers_item.php +++ b/src/Entities/QuestionTypes/chemistry_response_containers_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry_response_containers_item extends BaseQuestionTypeAttribute +{ protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/chemistry_ui_style.php b/src/Entities/QuestionTypes/chemistry_ui_style.php index 27f8fea6..b50fea68 100644 --- a/src/Entities/QuestionTypes/chemistry_ui_style.php +++ b/src/Entities/QuestionTypes/chemistry_ui_style.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $response_font_scale; protected $type; protected $min_width; protected $transparent_background; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Response font scale \ - * This scales the font relative to the question's font size. \ - * @return string $response_font_scale \ - */ - public function get_response_font_scale() { + * Get Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @return string $response_font_scale \ + */ + public function get_response_font_scale() + { return $this->response_font_scale; } /** - * Set Response font scale \ - * This scales the font relative to the question's font size. \ - * @param string $response_font_scale \ - */ - public function set_response_font_scale ($response_font_scale) { + * Set Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @param string $response_font_scale \ + */ + public function set_response_font_scale($response_font_scale) + { $this->response_font_scale = $response_font_scale; } /** - * Get Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @return string $min_width \ - */ - public function get_min_width() { + * Get Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @return string $min_width \ + */ + public function get_min_width() + { return $this->min_width; } /** - * Set Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @param string $min_width \ - */ - public function set_min_width ($min_width) { + * Set Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @param string $min_width \ + */ + public function set_min_width($min_width) + { $this->min_width = $min_width; } /** - * Get Transparent background \ - * Determines whether the area housing nested response areas should be transparent \ - * @return boolean $transparent_background \ - */ - public function get_transparent_background() { + * Get Transparent background \ + * Determines whether the area housing nested response areas should be transparent \ + * + * @return boolean $transparent_background \ + */ + public function get_transparent_background() + { return $this->transparent_background; } /** - * Set Transparent background \ - * Determines whether the area housing nested response areas should be transparent \ - * @param boolean $transparent_background \ - */ - public function set_transparent_background ($transparent_background) { + * Set Transparent background \ + * Determines whether the area housing nested response areas should be transparent \ + * + * @param boolean $transparent_background \ + */ + public function set_transparent_background($transparent_background) + { $this->transparent_background = $transparent_background; } - + } diff --git a/src/Entities/QuestionTypes/chemistry_validation.php b/src/Entities/QuestionTypes/chemistry_validation.php index 6d65f15c..7480917b 100644 --- a/src/Entities/QuestionTypes/chemistry_validation.php +++ b/src/Entities/QuestionTypes/chemistry_validation.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return chemistry_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return chemistry_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param chemistry_validation_valid_response $valid_response \ - */ - public function set_valid_response (chemistry_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param chemistry_validation_valid_response $valid_response \ + */ + public function set_valid_response(chemistry_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/chemistry_validation_alt_responses_item.php b/src/Entities/QuestionTypes/chemistry_validation_alt_responses_item.php index 7ee9604f..20c48d90 100644 --- a/src/Entities/QuestionTypes/chemistry_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/chemistry_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array of objects containing the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array of objects containing the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array of objects containing the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array of objects containing the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/chemistry_validation_alt_responses_item_value_item.php b/src/Entities/QuestionTypes/chemistry_validation_alt_responses_item_value_item.php index eeb81a98..d7837597 100644 --- a/src/Entities/QuestionTypes/chemistry_validation_alt_responses_item_value_item.php +++ b/src/Entities/QuestionTypes/chemistry_validation_alt_responses_item_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute +{ protected $method; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Method \ - * The method used to compare user input against the valid response value. \ - * @return string $method ie. equivLiteral, equivValue, isUnit, stringMatch \ - */ - public function get_method() { + * Get Method \ + * The method used to compare user input against the valid response value. \ + * + * @return string $method ie. equivLiteral, equivValue, isUnit, stringMatch \ + */ + public function get_method() + { return $this->method; } /** - * Set Method \ - * The method used to compare user input against the valid response value. \ - * @param string $method ie. equivLiteral, equivValue, isUnit, stringMatch \ - */ - public function set_method ($method) { + * Set Method \ + * The method used to compare user input against the valid response value. \ + * + * @param string $method ie. equivLiteral, equivValue, isUnit, stringMatch \ + */ + public function set_method($method) + { $this->method = $method; } - + } diff --git a/src/Entities/QuestionTypes/chemistry_validation_valid_response.php b/src/Entities/QuestionTypes/chemistry_validation_valid_response.php index 50ac5a9e..5ab0c773 100644 --- a/src/Entities/QuestionTypes/chemistry_validation_valid_response.php +++ b/src/Entities/QuestionTypes/chemistry_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array of objects containing the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array of objects containing the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array of objects containing the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array of objects containing the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/chemistry_validation_valid_response_value_item.php b/src/Entities/QuestionTypes/chemistry_validation_valid_response_value_item.php index 92bb22c0..47684161 100644 --- a/src/Entities/QuestionTypes/chemistry_validation_valid_response_value_item.php +++ b/src/Entities/QuestionTypes/chemistry_validation_valid_response_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistry_validation_valid_response_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistry_validation_valid_response_value_item extends BaseQuestionTypeAttribute +{ protected $method; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Method \ - * The method used to compare user input against the valid response value. \ - * @return string $method ie. equivLiteral, equivValue, isUnit, stringMatch \ - */ - public function get_method() { + * Get Method \ + * The method used to compare user input against the valid response value. \ + * + * @return string $method ie. equivLiteral, equivValue, isUnit, stringMatch \ + */ + public function get_method() + { return $this->method; } /** - * Set Method \ - * The method used to compare user input against the valid response value. \ - * @param string $method ie. equivLiteral, equivValue, isUnit, stringMatch \ - */ - public function set_method ($method) { + * Set Method \ + * The method used to compare user input against the valid response value. \ + * + * @param string $method ie. equivLiteral, equivValue, isUnit, stringMatch \ + */ + public function set_method($method) + { $this->method = $method; } - + } diff --git a/src/Entities/QuestionTypes/chemistryessay.php b/src/Entities/QuestionTypes/chemistryessay.php index e8e87945..95991eb7 100644 --- a/src/Entities/QuestionTypes/chemistryessay.php +++ b/src/Entities/QuestionTypes/chemistryessay.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistryessay extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistryessay extends BaseQuestionType +{ protected $handwriting_recognises; protected $is_math; protected $metadata; @@ -21,245 +22,293 @@ class chemistryessay extends BaseQuestionType { protected $showHints; protected $numberPad; protected $symbols; - + public function __construct( - $type, - chemistryessay_ui_style $ui_style - ) - { - $this->type = $type; - $this->ui_style = $ui_style; - } + $type, + chemistryessay_ui_style $ui_style + ) { + $this->type = $type; + $this->ui_style = $ui_style; + } /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return chemistryessay_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return chemistryessay_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param chemistryessay_metadata $metadata \ - */ - public function set_metadata (chemistryessay_metadata $metadata) { + * Set metadata \ + * \ + * + * @param chemistryessay_metadata $metadata \ + */ + public function set_metadata(chemistryessay_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return chemistryessay_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return chemistryessay_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param chemistryessay_ui_style $ui_style \ - */ - public function set_ui_style (chemistryessay_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param chemistryessay_ui_style $ui_style \ + */ + public function set_ui_style(chemistryessay_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @return chemistryessay_validation $validation \ - */ - public function get_validation() { + * Get Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @return chemistryessay_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @param chemistryessay_validation $validation \ - */ - public function set_validation (chemistryessay_validation $validation) { + * Set Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @param chemistryessay_validation $validation \ + */ + public function set_validation(chemistryessay_validation $validation) + { $this->validation = $validation; } /** - * Get Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @return array $text_blocks \ - */ - public function get_text_blocks() { + * Get Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @return array $text_blocks \ + */ + public function get_text_blocks() + { return $this->text_blocks; } /** - * Set Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @param array $text_blocks \ - */ - public function set_text_blocks (array $text_blocks) { + * Set Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @param array $text_blocks \ + */ + public function set_text_blocks(array $text_blocks) + { $this->text_blocks = $text_blocks; } /** - * Get Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Custom Number Pad \ - * \ - * @return array $numberPad \ - */ - public function get_numberPad() { + * Get Custom Number Pad \ + * \ + * + * @return array $numberPad \ + */ + public function get_numberPad() + { return $this->numberPad; } /** - * Set Custom Number Pad \ - * \ - * @param array $numberPad \ - */ - public function set_numberPad (array $numberPad) { + * Set Custom Number Pad \ + * \ + * + * @param array $numberPad \ + */ + public function set_numberPad(array $numberPad) + { $this->numberPad = $numberPad; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/chemistryessay_metadata.php b/src/Entities/QuestionTypes/chemistryessay_metadata.php index 8a95817d..fcc5e732 100644 --- a/src/Entities/QuestionTypes/chemistryessay_metadata.php +++ b/src/Entities/QuestionTypes/chemistryessay_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistryessay_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistryessay_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/chemistryessay_ui_style.php b/src/Entities/QuestionTypes/chemistryessay_ui_style.php index 95f549ee..812c1149 100644 --- a/src/Entities/QuestionTypes/chemistryessay_ui_style.php +++ b/src/Entities/QuestionTypes/chemistryessay_ui_style.php @@ -5,132 +5,156 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistryessay_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistryessay_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $response_font_scale; protected $default_mode; protected $max_lines; protected $text_formatting_options; protected $keyboard_below_response_area; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Response font scale \ - * This scales the font relative to the question's font size. \ - * @return string $response_font_scale \ - */ - public function get_response_font_scale() { + * Get Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @return string $response_font_scale \ + */ + public function get_response_font_scale() + { return $this->response_font_scale; } /** - * Set Response font scale \ - * This scales the font relative to the question's font size. \ - * @param string $response_font_scale \ - */ - public function set_response_font_scale ($response_font_scale) { + * Set Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @param string $response_font_scale \ + */ + public function set_response_font_scale($response_font_scale) + { $this->response_font_scale = $response_font_scale; } /** - * Get Default mode \ - * The default mode of the first line when question is first focused \ - * @return string $default_mode \ - */ - public function get_default_mode() { + * Get Default mode \ + * The default mode of the first line when question is first focused \ + * + * @return string $default_mode \ + */ + public function get_default_mode() + { return $this->default_mode; } /** - * Set Default mode \ - * The default mode of the first line when question is first focused \ - * @param string $default_mode \ - */ - public function set_default_mode ($default_mode) { + * Set Default mode \ + * The default mode of the first line when question is first focused \ + * + * @param string $default_mode \ + */ + public function set_default_mode($default_mode) + { $this->default_mode = $default_mode; } /** - * Get Maximum lines \ - * Limits the number of lines of text / math that can be entered. \ - * @return number $max_lines \ - */ - public function get_max_lines() { + * Get Maximum lines \ + * Limits the number of lines of text / math that can be entered. \ + * + * @return number $max_lines \ + */ + public function get_max_lines() + { return $this->max_lines; } /** - * Set Maximum lines \ - * Limits the number of lines of text / math that can be entered. \ - * @param number $max_lines \ - */ - public function set_max_lines ($max_lines) { + * Set Maximum lines \ + * Limits the number of lines of text / math that can be entered. \ + * + * @param number $max_lines \ + */ + public function set_max_lines($max_lines) + { $this->max_lines = $max_lines; } /** - * Get Text Formatting Options \ - * An array containing strings of text formatting options to make available. \ - * @return array $text_formatting_options \ - */ - public function get_text_formatting_options() { + * Get Text Formatting Options \ + * An array containing strings of text formatting options to make available. \ + * + * @return array $text_formatting_options \ + */ + public function get_text_formatting_options() + { return $this->text_formatting_options; } /** - * Set Text Formatting Options \ - * An array containing strings of text formatting options to make available. \ - * @param array $text_formatting_options \ - */ - public function set_text_formatting_options (array $text_formatting_options) { + * Set Text Formatting Options \ + * An array containing strings of text formatting options to make available. \ + * + * @param array $text_formatting_options \ + */ + public function set_text_formatting_options(array $text_formatting_options) + { $this->text_formatting_options = $text_formatting_options; } /** - * Get Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @return boolean $keyboard_below_response_area \ - */ - public function get_keyboard_below_response_area() { + * Get Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @return boolean $keyboard_below_response_area \ + */ + public function get_keyboard_below_response_area() + { return $this->keyboard_below_response_area; } /** - * Set Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @param boolean $keyboard_below_response_area \ - */ - public function set_keyboard_below_response_area ($keyboard_below_response_area) { + * Set Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @param boolean $keyboard_below_response_area \ + */ + public function set_keyboard_below_response_area($keyboard_below_response_area) + { $this->keyboard_below_response_area = $keyboard_below_response_area; } - + } diff --git a/src/Entities/QuestionTypes/chemistryessay_validation.php b/src/Entities/QuestionTypes/chemistryessay_validation.php index 54c9e63d..bd01c0c1 100644 --- a/src/Entities/QuestionTypes/chemistryessay_validation.php +++ b/src/Entities/QuestionTypes/chemistryessay_validation.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class chemistryessay_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class chemistryessay_validation extends BaseQuestionTypeAttribute +{ protected $max_score; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Max Score \ - * The highest score a marker can award to this question response. \ - * @return number $max_score \ - */ - public function get_max_score() { + * Get Max Score \ + * The highest score a marker can award to this question response. \ + * + * @return number $max_score \ + */ + public function get_max_score() + { return $this->max_score; } /** - * Set Max Score \ - * The highest score a marker can award to this question response. \ - * @param number $max_score \ - */ - public function set_max_score ($max_score) { + * Set Max Score \ + * The highest score a marker can award to this question response. \ + * + * @param number $max_score \ + */ + public function set_max_score($max_score) + { $this->max_score = $max_score; } - + } diff --git a/src/Entities/QuestionTypes/choicematrix.php b/src/Entities/QuestionTypes/choicematrix.php index c31690ec..b06217b0 100644 --- a/src/Entities/QuestionTypes/choicematrix.php +++ b/src/Entities/QuestionTypes/choicematrix.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class choicematrix extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class choicematrix extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -21,247 +22,295 @@ class choicematrix extends BaseQuestionType { protected $options; protected $multiple_responses; protected $stems; - + public function __construct( - $type, - array $options, - array $stems - ) - { - $this->type = $type; - $this->options = $options; - $this->stems = $stems; - } + $type, + array $options, + array $stems + ) { + $this->type = $type; + $this->options = $options; + $this->stems = $stems; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return choicematrix_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return choicematrix_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param choicematrix_metadata $metadata \ - */ - public function set_metadata (choicematrix_metadata $metadata) { + * Set metadata \ + * \ + * + * @param choicematrix_metadata $metadata \ + */ + public function set_metadata(choicematrix_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return choicematrix_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return choicematrix_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param choicematrix_ui_style $ui_style \ - */ - public function set_ui_style (choicematrix_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param choicematrix_ui_style $ui_style \ + */ + public function set_ui_style(choicematrix_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return choicematrix_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return choicematrix_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param choicematrix_validation $validation \ - */ - public function set_validation (choicematrix_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param choicematrix_validation $validation \ + */ + public function set_validation(choicematrix_validation $validation) + { $this->validation = $validation; } /** - * Get Options \ - * Array of strings values presenting choice matrix options, for example, ['Yes', 'No']. \ - * @return array $options \ - */ - public function get_options() { + * Get Options \ + * Array of strings values presenting choice matrix options, for example, ['Yes', 'No']. \ + * + * @return array $options \ + */ + public function get_options() + { return $this->options; } /** - * Set Options \ - * Array of strings values presenting choice matrix options, for example, ['Yes', 'No']. \ - * @param array $options \ - */ - public function set_options (array $options) { + * Set Options \ + * Array of strings values presenting choice matrix options, for example, ['Yes', 'No']. \ + * + * @param array $options \ + */ + public function set_options(array $options) + { $this->options = $options; } /** - * Get Multiple responses \ - * If multiple_responses is true the user will be able to select multiple responses using a checkbox for each response. \ - * @return boolean $multiple_responses \ - */ - public function get_multiple_responses() { + * Get Multiple responses \ + * If multiple_responses is true the user will be able to select multiple responses using a checkbox for each response. \ + * + * @return boolean $multiple_responses \ + */ + public function get_multiple_responses() + { return $this->multiple_responses; } /** - * Set Multiple responses \ - * If multiple_responses is true the user will be able to select multiple responses using a checkbox for each response. \ - * @param boolean $multiple_responses \ - */ - public function set_multiple_responses ($multiple_responses) { + * Set Multiple responses \ + * If multiple_responses is true the user will be able to select multiple responses using a checkbox for each response. \ + * + * @param boolean $multiple_responses \ + */ + public function set_multiple_responses($multiple_responses) + { $this->multiple_responses = $multiple_responses; } /** - * Get Stems \ - * Array of strings value presenting each row of question stem. \ - * @return array $stems \ - */ - public function get_stems() { + * Get Stems \ + * Array of strings value presenting each row of question stem. \ + * + * @return array $stems \ + */ + public function get_stems() + { return $this->stems; } /** - * Set Stems \ - * Array of strings value presenting each row of question stem. \ - * @param array $stems \ - */ - public function set_stems (array $stems) { + * Set Stems \ + * Array of strings value presenting each row of question stem. \ + * + * @param array $stems \ + */ + public function set_stems(array $stems) + { $this->stems = $stems; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/choicematrix_metadata.php b/src/Entities/QuestionTypes/choicematrix_metadata.php index 28c191af..5eccfc79 100644 --- a/src/Entities/QuestionTypes/choicematrix_metadata.php +++ b/src/Entities/QuestionTypes/choicematrix_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class choicematrix_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class choicematrix_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/choicematrix_ui_style.php b/src/Entities/QuestionTypes/choicematrix_ui_style.php index 0ab0d97e..c3994a16 100644 --- a/src/Entities/QuestionTypes/choicematrix_ui_style.php +++ b/src/Entities/QuestionTypes/choicematrix_ui_style.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class choicematrix_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class choicematrix_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $type; protected $stem_width; @@ -17,158 +18,189 @@ class choicematrix_ui_style extends BaseQuestionTypeAttribute { protected $option_row_title; protected $horizontal_lines; protected $stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Layout \ - * \ - * @return string $type ie. table, inline \ - */ - public function get_type() { + * Get Layout \ + * \ + * + * @return string $type ie. table, inline \ + */ + public function get_type() + { return $this->type; } /** - * Set Layout \ - * \ - * @param string $type ie. table, inline \ - */ - public function set_type ($type) { + * Set Layout \ + * \ + * + * @param string $type ie. table, inline \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Stem Width \ - * The width of the stem column \ - * @return string $stem_width \ - */ - public function get_stem_width() { + * Get Stem Width \ + * The width of the stem column \ + * + * @return string $stem_width \ + */ + public function get_stem_width() + { return $this->stem_width; } /** - * Set Stem Width \ - * The width of the stem column \ - * @param string $stem_width \ - */ - public function set_stem_width ($stem_width) { + * Set Stem Width \ + * The width of the stem column \ + * + * @param string $stem_width \ + */ + public function set_stem_width($stem_width) + { $this->stem_width = $stem_width; } /** - * Get Option Width \ - * The width of each option column \ - * @return string $option_width \ - */ - public function get_option_width() { + * Get Option Width \ + * The width of each option column \ + * + * @return string $option_width \ + */ + public function get_option_width() + { return $this->option_width; } /** - * Set Option Width \ - * The width of each option column \ - * @param string $option_width \ - */ - public function set_option_width ($option_width) { + * Set Option Width \ + * The width of each option column \ + * + * @param string $option_width \ + */ + public function set_option_width($option_width) + { $this->option_width = $option_width; } /** - * Get Stem Column Title \ - * The text appears above stem row \ - * @return string $stem_title \ - */ - public function get_stem_title() { + * Get Stem Column Title \ + * The text appears above stem row \ + * + * @return string $stem_title \ + */ + public function get_stem_title() + { return $this->stem_title; } /** - * Set Stem Column Title \ - * The text appears above stem row \ - * @param string $stem_title \ - */ - public function set_stem_title ($stem_title) { + * Set Stem Column Title \ + * The text appears above stem row \ + * + * @param string $stem_title \ + */ + public function set_stem_title($stem_title) + { $this->stem_title = $stem_title; } /** - * Get Option Row Title \ - * The text appears above option row \ - * @return string $option_row_title \ - */ - public function get_option_row_title() { + * Get Option Row Title \ + * The text appears above option row \ + * + * @return string $option_row_title \ + */ + public function get_option_row_title() + { return $this->option_row_title; } /** - * Set Option Row Title \ - * The text appears above option row \ - * @param string $option_row_title \ - */ - public function set_option_row_title ($option_row_title) { + * Set Option Row Title \ + * The text appears above option row \ + * + * @param string $option_row_title \ + */ + public function set_option_row_title($option_row_title) + { $this->option_row_title = $option_row_title; } /** - * Get Show horizontal lines under stems \ - * Whether horizontal lines should be shown underneath each stem \ - * @return boolean $horizontal_lines \ - */ - public function get_horizontal_lines() { + * Get Show horizontal lines under stems \ + * Whether horizontal lines should be shown underneath each stem \ + * + * @return boolean $horizontal_lines \ + */ + public function get_horizontal_lines() + { return $this->horizontal_lines; } /** - * Set Show horizontal lines under stems \ - * Whether horizontal lines should be shown underneath each stem \ - * @param boolean $horizontal_lines \ - */ - public function set_horizontal_lines ($horizontal_lines) { + * Set Show horizontal lines under stems \ + * Whether horizontal lines should be shown underneath each stem \ + * + * @param boolean $horizontal_lines \ + */ + public function set_horizontal_lines($horizontal_lines) + { $this->horizontal_lines = $horizontal_lines; } /** - * Get Stem Numeration \ - * Numeration character to be displayed to the right of the stem label. Possible values include "number", "upper-alpha", "l - ower-alpha" \ - * @return string $stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_stem_numeration() { + * Get Stem Numeration \ + * Numeration character to be displayed to the right of the stem label. Possible values include "number", "upper-alpha", "l + * ower-alpha" \ + * + * @return string $stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_stem_numeration() + { return $this->stem_numeration; } /** - * Set Stem Numeration \ - * Numeration character to be displayed to the right of the stem label. Possible values include "number", "upper-alpha", "l - ower-alpha" \ - * @param string $stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_stem_numeration ($stem_numeration) { + * Set Stem Numeration \ + * Numeration character to be displayed to the right of the stem label. Possible values include "number", "upper-alpha", "l + * ower-alpha" \ + * + * @param string $stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_stem_numeration($stem_numeration) + { $this->stem_numeration = $stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/choicematrix_validation.php b/src/Entities/QuestionTypes/choicematrix_validation.php index 6df02c37..7f658317 100644 --- a/src/Entities/QuestionTypes/choicematrix_validation.php +++ b/src/Entities/QuestionTypes/choicematrix_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class choicematrix_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class choicematrix_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return choicematrix_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return choicematrix_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param choicematrix_validation_valid_response $valid_response \ - */ - public function set_valid_response (choicematrix_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param choicematrix_validation_valid_response $valid_response \ + */ + public function set_valid_response(choicematrix_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/choicematrix_validation_alt_responses_item.php b/src/Entities/QuestionTypes/choicematrix_validation_alt_responses_item.php index 7c402048..f82c927a 100644 --- a/src/Entities/QuestionTypes/choicematrix_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/choicematrix_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class choicematrix_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class choicematrix_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * A list of valid answers for the choice matrix \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * A list of valid answers for the choice matrix \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * A list of valid answers for the choice matrix \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * A list of valid answers for the choice matrix \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/choicematrix_validation_valid_response.php b/src/Entities/QuestionTypes/choicematrix_validation_valid_response.php index c803fb6e..ee1c0445 100644 --- a/src/Entities/QuestionTypes/choicematrix_validation_valid_response.php +++ b/src/Entities/QuestionTypes/choicematrix_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class choicematrix_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class choicematrix_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * A list of valid answers for the choice matrix \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * A list of valid answers for the choice matrix \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * A list of valid answers for the choice matrix \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * A list of valid answers for the choice matrix \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/classification.php b/src/Entities/QuestionTypes/classification.php index baae27c8..73cd8987 100644 --- a/src/Entities/QuestionTypes/classification.php +++ b/src/Entities/QuestionTypes/classification.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class classification extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class classification extends BaseQuestionType +{ protected $ui_style; protected $is_math; protected $metadata; @@ -22,269 +23,321 @@ class classification extends BaseQuestionType { protected $duplicate_responses; protected $max_response_per_cell; protected $possible_responses; - + public function __construct( - $type, - array $possible_responses - ) - { - $this->type = $type; - $this->possible_responses = $possible_responses; - } + $type, + array $possible_responses + ) { + $this->type = $type; + $this->possible_responses = $possible_responses; + } /** - * Get ui_style \ - * \ - * @return classification_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return classification_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param classification_ui_style $ui_style \ - */ - public function set_ui_style (classification_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param classification_ui_style $ui_style \ + */ + public function set_ui_style(classification_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return classification_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return classification_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param classification_metadata $metadata \ - */ - public function set_metadata (classification_metadata $metadata) { + * Set metadata \ + * \ + * + * @param classification_metadata $metadata \ + */ + public function set_metadata(classification_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return classification_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return classification_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param classification_validation $validation \ - */ - public function set_validation (classification_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param classification_validation $validation \ + */ + public function set_validation(classification_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Duplicate responses \ - * When true the items from the possible_responses will be reusable infinite times. \ - * @return boolean $duplicate_responses \ - */ - public function get_duplicate_responses() { + * Get Duplicate responses \ + * When true the items from the possible_responses will be reusable infinite times. \ + * + * @return boolean $duplicate_responses \ + */ + public function get_duplicate_responses() + { return $this->duplicate_responses; } /** - * Set Duplicate responses \ - * When true the items from the possible_responses will be reusable infinite times. \ - * @param boolean $duplicate_responses \ - */ - public function set_duplicate_responses ($duplicate_responses) { + * Set Duplicate responses \ + * When true the items from the possible_responses will be reusable infinite times. \ + * + * @param boolean $duplicate_responses \ + */ + public function set_duplicate_responses($duplicate_responses) + { $this->duplicate_responses = $duplicate_responses; } /** - * Get Max Response Per Cell \ - * The number of possible response each cell can have, the cell can have unlimited response if this field is empty or zero \ - * @return number $max_response_per_cell \ - */ - public function get_max_response_per_cell() { + * Get Max Response Per Cell \ + * The number of possible response each cell can have, the cell can have unlimited response if this field is empty or zero \ + * + * @return number $max_response_per_cell \ + */ + public function get_max_response_per_cell() + { return $this->max_response_per_cell; } /** - * Set Max Response Per Cell \ - * The number of possible response each cell can have, the cell can have unlimited response if this field is empty or zero \ - * @param number $max_response_per_cell \ - */ - public function set_max_response_per_cell ($max_response_per_cell) { + * Set Max Response Per Cell \ + * The number of possible response each cell can have, the cell can have unlimited response if this field is empty or zero \ + * + * @param number $max_response_per_cell \ + */ + public function set_max_response_per_cell($max_response_per_cell) + { $this->max_response_per_cell = $max_response_per_cell; } /** - * Get Possible Responses \ - * \ - * @return array $possible_responses \ - */ - public function get_possible_responses() { + * Get Possible Responses \ + * \ + * + * @return array $possible_responses \ + */ + public function get_possible_responses() + { return $this->possible_responses; } /** - * Set Possible Responses \ - * \ - * @param array $possible_responses \ - */ - public function set_possible_responses (array $possible_responses) { + * Set Possible Responses \ + * \ + * + * @param array $possible_responses \ + */ + public function set_possible_responses(array $possible_responses) + { $this->possible_responses = $possible_responses; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/classification_metadata.php b/src/Entities/QuestionTypes/classification_metadata.php index 9ff9708e..5cb531e0 100644 --- a/src/Entities/QuestionTypes/classification_metadata.php +++ b/src/Entities/QuestionTypes/classification_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class classification_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class classification_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/classification_ui_style.php b/src/Entities/QuestionTypes/classification_ui_style.php index 21c7167a..988627ea 100644 --- a/src/Entities/QuestionTypes/classification_ui_style.php +++ b/src/Entities/QuestionTypes/classification_ui_style.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class classification_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class classification_ui_style extends BaseQuestionTypeAttribute +{ protected $possibility_list_position; protected $fontsize; protected $validation_stem_numeration; @@ -20,210 +21,253 @@ class classification_ui_style extends BaseQuestionTypeAttribute { protected $row_min_height; protected $row_titles_width; protected $show_drag_handle; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Possibility List Position \ - * Defines where the possibility list sits relative to the input zone. \ - * @return string $possibility_list_position \ - */ - public function get_possibility_list_position() { + * Get Possibility List Position \ + * Defines where the possibility list sits relative to the input zone. \ + * + * @return string $possibility_list_position \ + */ + public function get_possibility_list_position() + { return $this->possibility_list_position; } /** - * Set Possibility List Position \ - * Defines where the possibility list sits relative to the input zone. \ - * @param string $possibility_list_position \ - */ - public function set_possibility_list_position ($possibility_list_position) { + * Set Possibility List Position \ + * Defines where the possibility list sits relative to the input zone. \ + * + * @param string $possibility_list_position \ + */ + public function set_possibility_list_position($possibility_list_position) + { $this->possibility_list_position = $possibility_list_position; } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Column count \ - * Defines the number of columns the classification table will have \ - * @return number $column_count \ - */ - public function get_column_count() { + * Get Column count \ + * Defines the number of columns the classification table will have \ + * + * @return number $column_count \ + */ + public function get_column_count() + { return $this->column_count; } /** - * Set Column count \ - * Defines the number of columns the classification table will have \ - * @param number $column_count \ - */ - public function set_column_count ($column_count) { + * Set Column count \ + * Defines the number of columns the classification table will have \ + * + * @param number $column_count \ + */ + public function set_column_count($column_count) + { $this->column_count = $column_count; } /** - * Get Row count \ - * Defines the number of rows the classification table will have \ - * @return number $row_count \ - */ - public function get_row_count() { + * Get Row count \ + * Defines the number of rows the classification table will have \ + * + * @return number $row_count \ + */ + public function get_row_count() + { return $this->row_count; } /** - * Set Row count \ - * Defines the number of rows the classification table will have \ - * @param number $row_count \ - */ - public function set_row_count ($row_count) { + * Set Row count \ + * Defines the number of rows the classification table will have \ + * + * @param number $row_count \ + */ + public function set_row_count($row_count) + { $this->row_count = $row_count; } /** - * Get Column titles \ - * Column titles for the classification table, if there are more titles then columns the excess titles will be ignored \ - * @return array $column_titles \ - */ - public function get_column_titles() { + * Get Column titles \ + * Column titles for the classification table, if there are more titles then columns the excess titles will be ignored \ + * + * @return array $column_titles \ + */ + public function get_column_titles() + { return $this->column_titles; } /** - * Set Column titles \ - * Column titles for the classification table, if there are more titles then columns the excess titles will be ignored \ - * @param array $column_titles \ - */ - public function set_column_titles (array $column_titles) { + * Set Column titles \ + * Column titles for the classification table, if there are more titles then columns the excess titles will be ignored \ + * + * @param array $column_titles \ + */ + public function set_column_titles(array $column_titles) + { $this->column_titles = $column_titles; } /** - * Get Row header \ - * Row header for the classification table, if there is no row title this attribute will be ignored. \ - * @return string $row_header \ - */ - public function get_row_header() { + * Get Row header \ + * Row header for the classification table, if there is no row title this attribute will be ignored. \ + * + * @return string $row_header \ + */ + public function get_row_header() + { return $this->row_header; } /** - * Set Row header \ - * Row header for the classification table, if there is no row title this attribute will be ignored. \ - * @param string $row_header \ - */ - public function set_row_header ($row_header) { + * Set Row header \ + * Row header for the classification table, if there is no row title this attribute will be ignored. \ + * + * @param string $row_header \ + */ + public function set_row_header($row_header) + { $this->row_header = $row_header; } /** - * Get Row titles \ - * Row titles for the classification table, if there are more titles then rows the excess titles will be ignored \ - * @return array $row_titles \ - */ - public function get_row_titles() { + * Get Row titles \ + * Row titles for the classification table, if there are more titles then rows the excess titles will be ignored \ + * + * @return array $row_titles \ + */ + public function get_row_titles() + { return $this->row_titles; } /** - * Set Row titles \ - * Row titles for the classification table, if there are more titles then rows the excess titles will be ignored \ - * @param array $row_titles \ - */ - public function set_row_titles (array $row_titles) { + * Set Row titles \ + * Row titles for the classification table, if there are more titles then rows the excess titles will be ignored \ + * + * @param array $row_titles \ + */ + public function set_row_titles(array $row_titles) + { $this->row_titles = $row_titles; } /** - * Get Row min height \ - * Minimum height for the input table rows. \ - * @return string $row_min_height \ - */ - public function get_row_min_height() { + * Get Row min height \ + * Minimum height for the input table rows. \ + * + * @return string $row_min_height \ + */ + public function get_row_min_height() + { return $this->row_min_height; } /** - * Set Row min height \ - * Minimum height for the input table rows. \ - * @param string $row_min_height \ - */ - public function set_row_min_height ($row_min_height) { + * Set Row min height \ + * Minimum height for the input table rows. \ + * + * @param string $row_min_height \ + */ + public function set_row_min_height($row_min_height) + { $this->row_min_height = $row_min_height; } /** - * Get Row titles width \ - * The width of the column containing the row titles in the classification table \ - * @return string $row_titles_width \ - */ - public function get_row_titles_width() { + * Get Row titles width \ + * The width of the column containing the row titles in the classification table \ + * + * @return string $row_titles_width \ + */ + public function get_row_titles_width() + { return $this->row_titles_width; } /** - * Set Row titles width \ - * The width of the column containing the row titles in the classification table \ - * @param string $row_titles_width \ - */ - public function set_row_titles_width ($row_titles_width) { + * Set Row titles width \ + * The width of the column containing the row titles in the classification table \ + * + * @param string $row_titles_width \ + */ + public function set_row_titles_width($row_titles_width) + { $this->row_titles_width = $row_titles_width; } /** - * Get Show drag handle \ - * Determines whether to show the drag handle. \ - * @return boolean $show_drag_handle \ - */ - public function get_show_drag_handle() { + * Get Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @return boolean $show_drag_handle \ + */ + public function get_show_drag_handle() + { return $this->show_drag_handle; } /** - * Set Show drag handle \ - * Determines whether to show the drag handle. \ - * @param boolean $show_drag_handle \ - */ - public function set_show_drag_handle ($show_drag_handle) { + * Set Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @param boolean $show_drag_handle \ + */ + public function set_show_drag_handle($show_drag_handle) + { $this->show_drag_handle = $show_drag_handle; } - + } diff --git a/src/Entities/QuestionTypes/classification_validation.php b/src/Entities/QuestionTypes/classification_validation.php index 277bb7ca..881a3296 100644 --- a/src/Entities/QuestionTypes/classification_validation.php +++ b/src/Entities/QuestionTypes/classification_validation.php @@ -5,121 +5,141 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class classification_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class classification_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match per cell - max score - A relative part of the score - will be given for each correct response area
'partialMatch': Partial Match per cell - Cumulative Sco - re value will be given for each correct response area
'partialMatchElement': Partial Match per eleme - nt - Cumulative Score value will be given for each correctly placed response string \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2, partialMatchElement \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match per cell - max score - A relative part of the score + * will be given for each correct response area
'partialMatch': Partial Match per cell - Cumulative Sco + * re value will be given for each correct response area
'partialMatchElement': Partial Match per eleme + * nt - Cumulative Score value will be given for each correctly placed response string \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2, partialMatchElement \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match per cell - max score - A relative part of the score - will be given for each correct response area
'partialMatch': Partial Match per cell - Cumulative Sco - re value will be given for each correct response area
'partialMatchElement': Partial Match per eleme - nt - Cumulative Score value will be given for each correctly placed response string \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2, partialMatchElement \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match per cell - max score - A relative part of the score + * will be given for each correct response area
'partialMatch': Partial Match per cell - Cumulative Sco + * re value will be given for each correct response area
'partialMatchElement': Partial Match per eleme + * nt - Cumulative Score value will be given for each correctly placed response string \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2, partialMatchElement \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return classification_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return classification_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param classification_validation_valid_response $valid_response \ - */ - public function set_valid_response (classification_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param classification_validation_valid_response $valid_response \ + */ + public function set_valid_response(classification_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/classification_validation_alt_responses_item.php b/src/Entities/QuestionTypes/classification_validation_alt_responses_item.php index 6ab25814..fbfc0452 100644 --- a/src/Entities/QuestionTypes/classification_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/classification_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class classification_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class classification_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/classification_validation_valid_response.php b/src/Entities/QuestionTypes/classification_validation_valid_response.php index 81a3b4f4..496c9b05 100644 --- a/src/Entities/QuestionTypes/classification_validation_valid_response.php +++ b/src/Entities/QuestionTypes/classification_validation_valid_response.php @@ -5,58 +5,66 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class classification_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class classification_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * A 3 dimensional array that consists of: An array of different valid responses (in most cases there will only be one vali - d response), each valid response is an array that contains an entry for each cell. each cell is an array of response ind - ex's. The response index is based on the index value in the possible_responses attribute. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * A 3 dimensional array that consists of: An array of different valid responses (in most cases there will only be one vali + * d response), each valid response is an array that contains an entry for each cell. each cell is an array of response ind + * ex's. The response index is based on the index value in the possible_responses attribute. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * A 3 dimensional array that consists of: An array of different valid responses (in most cases there will only be one vali - d response), each valid response is an array that contains an entry for each cell. each cell is an array of response ind - ex's. The response index is based on the index value in the possible_responses attribute. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * A 3 dimensional array that consists of: An array of different valid responses (in most cases there will only be one vali + * d response), each valid response is an array that contains an entry for each cell. each cell is an array of response ind + * ex's. The response index is based on the index value in the possible_responses attribute. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozeassociation.php b/src/Entities/QuestionTypes/clozeassociation.php index 633f650f..e63e2878 100644 --- a/src/Entities/QuestionTypes/clozeassociation.php +++ b/src/Entities/QuestionTypes/clozeassociation.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeassociation extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeassociation extends BaseQuestionType +{ protected $ui_style; protected $is_math; protected $metadata; @@ -24,309 +25,369 @@ class clozeassociation extends BaseQuestionType { protected $template; protected $possible_responses; protected $duplicate_responses; - + public function __construct( - $type, - $template, - array $possible_responses - ) - { - $this->type = $type; - $this->template = $template; - $this->possible_responses = $possible_responses; - } + $type, + $template, + array $possible_responses + ) { + $this->type = $type; + $this->template = $template; + $this->possible_responses = $possible_responses; + } /** - * Get UI Style - DRAFT \ - * Object used to control different aspects of the UI \ - * @return clozeassociation_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get UI Style - DRAFT \ + * Object used to control different aspects of the UI \ + * + * @return clozeassociation_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set UI Style - DRAFT \ - * Object used to control different aspects of the UI \ - * @param clozeassociation_ui_style $ui_style \ - */ - public function set_ui_style (clozeassociation_ui_style $ui_style) { + * Set UI Style - DRAFT \ + * Object used to control different aspects of the UI \ + * + * @param clozeassociation_ui_style $ui_style \ + */ + public function set_ui_style(clozeassociation_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return clozeassociation_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return clozeassociation_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param clozeassociation_metadata $metadata \ - */ - public function set_metadata (clozeassociation_metadata $metadata) { + * Set metadata \ + * \ + * + * @param clozeassociation_metadata $metadata \ + */ + public function set_metadata(clozeassociation_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return clozeassociation_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return clozeassociation_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param clozeassociation_validation $validation \ - */ - public function set_validation (clozeassociation_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param clozeassociation_validation $validation \ + */ + public function set_validation(clozeassociation_validation $validation) + { $this->validation = $validation; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return clozeassociation_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return clozeassociation_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param clozeassociation_response_container $response_container \ - */ - public function set_response_container (clozeassociation_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param clozeassociation_response_container $response_container \ + */ + public function set_response_container(clozeassociation_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Template Markup \ - * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ - * @return string $template \ - */ - public function get_template() { + * Get Template Markup \ + * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template Markup \ - * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template Markup \ + * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Possible Responses \ - * Array of strings values that need to be dragged to the actual response position. \ - * @return array $possible_responses \ - */ - public function get_possible_responses() { + * Get Possible Responses \ + * Array of strings values that need to be dragged to the actual response position. \ + * + * @return array $possible_responses \ + */ + public function get_possible_responses() + { return $this->possible_responses; } /** - * Set Possible Responses \ - * Array of strings values that need to be dragged to the actual response position. \ - * @param array $possible_responses \ - */ - public function set_possible_responses (array $possible_responses) { + * Set Possible Responses \ + * Array of strings values that need to be dragged to the actual response position. \ + * + * @param array $possible_responses \ + */ + public function set_possible_responses(array $possible_responses) + { $this->possible_responses = $possible_responses; } /** - * Get Duplicate responses \ - * When true the items from the possible_responses will be reusable infinite times. \ - * @return boolean $duplicate_responses \ - */ - public function get_duplicate_responses() { + * Get Duplicate responses \ + * When true the items from the possible_responses will be reusable infinite times. \ + * + * @return boolean $duplicate_responses \ + */ + public function get_duplicate_responses() + { return $this->duplicate_responses; } /** - * Set Duplicate responses \ - * When true the items from the possible_responses will be reusable infinite times. \ - * @param boolean $duplicate_responses \ - */ - public function set_duplicate_responses ($duplicate_responses) { + * Set Duplicate responses \ + * When true the items from the possible_responses will be reusable infinite times. \ + * + * @param boolean $duplicate_responses \ + */ + public function set_duplicate_responses($duplicate_responses) + { $this->duplicate_responses = $duplicate_responses; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/clozeassociation_metadata.php b/src/Entities/QuestionTypes/clozeassociation_metadata.php index b962b08e..250ded61 100644 --- a/src/Entities/QuestionTypes/clozeassociation_metadata.php +++ b/src/Entities/QuestionTypes/clozeassociation_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeassociation_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeassociation_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/clozeassociation_response_container.php b/src/Entities/QuestionTypes/clozeassociation_response_container.php index a6afe2aa..c462696a 100644 --- a/src/Entities/QuestionTypes/clozeassociation_response_container.php +++ b/src/Entities/QuestionTypes/clozeassociation_response_container.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeassociation_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeassociation_response_container extends BaseQuestionTypeAttribute +{ protected $height; protected $width; protected $wordwrap; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Wordwrap \ - * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ - * @return boolean $wordwrap \ - */ - public function get_wordwrap() { + * Get Wordwrap \ + * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ + * + * @return boolean $wordwrap \ + */ + public function get_wordwrap() + { return $this->wordwrap; } /** - * Set Wordwrap \ - * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ - * @param boolean $wordwrap \ - */ - public function set_wordwrap ($wordwrap) { + * Set Wordwrap \ + * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ + * + * @param boolean $wordwrap \ + */ + public function set_wordwrap($wordwrap) + { $this->wordwrap = $wordwrap; } - + } diff --git a/src/Entities/QuestionTypes/clozeassociation_response_containers_item.php b/src/Entities/QuestionTypes/clozeassociation_response_containers_item.php index 76ab6ad7..5fa63543 100644 --- a/src/Entities/QuestionTypes/clozeassociation_response_containers_item.php +++ b/src/Entities/QuestionTypes/clozeassociation_response_containers_item.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeassociation_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeassociation_response_containers_item extends BaseQuestionTypeAttribute +{ protected $height; protected $width; protected $wordwrap; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Wordwrap \ - * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ - * @return boolean $wordwrap \ - */ - public function get_wordwrap() { + * Get Wordwrap \ + * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ + * + * @return boolean $wordwrap \ + */ + public function get_wordwrap() + { return $this->wordwrap; } /** - * Set Wordwrap \ - * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ - * @param boolean $wordwrap \ - */ - public function set_wordwrap ($wordwrap) { + * Set Wordwrap \ + * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ + * + * @param boolean $wordwrap \ + */ + public function set_wordwrap($wordwrap) + { $this->wordwrap = $wordwrap; } - + } diff --git a/src/Entities/QuestionTypes/clozeassociation_ui_style.php b/src/Entities/QuestionTypes/clozeassociation_ui_style.php index 111a7603..07ea05be 100644 --- a/src/Entities/QuestionTypes/clozeassociation_ui_style.php +++ b/src/Entities/QuestionTypes/clozeassociation_ui_style.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeassociation_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeassociation_ui_style extends BaseQuestionTypeAttribute +{ protected $possibility_list_position; protected $fontsize; protected $validation_stem_numeration; protected $show_drag_handle; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Possibility List Position \ - * Defines where the possibility list sits relative to the input zone. \ - * @return string $possibility_list_position \ - */ - public function get_possibility_list_position() { + * Get Possibility List Position \ + * Defines where the possibility list sits relative to the input zone. \ + * + * @return string $possibility_list_position \ + */ + public function get_possibility_list_position() + { return $this->possibility_list_position; } /** - * Set Possibility List Position \ - * Defines where the possibility list sits relative to the input zone. \ - * @param string $possibility_list_position \ - */ - public function set_possibility_list_position ($possibility_list_position) { + * Set Possibility List Position \ + * Defines where the possibility list sits relative to the input zone. \ + * + * @param string $possibility_list_position \ + */ + public function set_possibility_list_position($possibility_list_position) + { $this->possibility_list_position = $possibility_list_position; } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Show drag handle \ - * Determines whether to show the drag handle. \ - * @return boolean $show_drag_handle \ - */ - public function get_show_drag_handle() { + * Get Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @return boolean $show_drag_handle \ + */ + public function get_show_drag_handle() + { return $this->show_drag_handle; } /** - * Set Show drag handle \ - * Determines whether to show the drag handle. \ - * @param boolean $show_drag_handle \ - */ - public function set_show_drag_handle ($show_drag_handle) { + * Set Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @param boolean $show_drag_handle \ + */ + public function set_show_drag_handle($show_drag_handle) + { $this->show_drag_handle = $show_drag_handle; } - + } diff --git a/src/Entities/QuestionTypes/clozeassociation_validation.php b/src/Entities/QuestionTypes/clozeassociation_validation.php index 5450d40a..f57b5a70 100644 --- a/src/Entities/QuestionTypes/clozeassociation_validation.php +++ b/src/Entities/QuestionTypes/clozeassociation_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeassociation_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeassociation_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return clozeassociation_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return clozeassociation_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param clozeassociation_validation_valid_response $valid_response \ - */ - public function set_valid_response (clozeassociation_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param clozeassociation_validation_valid_response $valid_response \ + */ + public function set_valid_response(clozeassociation_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/clozeassociation_validation_alt_responses_item.php b/src/Entities/QuestionTypes/clozeassociation_validation_alt_responses_item.php index 3d68e8e5..532ab999 100644 --- a/src/Entities/QuestionTypes/clozeassociation_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/clozeassociation_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeassociation_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeassociation_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozeassociation_validation_valid_response.php b/src/Entities/QuestionTypes/clozeassociation_validation_valid_response.php index 7f99a996..5ae40a7a 100644 --- a/src/Entities/QuestionTypes/clozeassociation_validation_valid_response.php +++ b/src/Entities/QuestionTypes/clozeassociation_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeassociation_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeassociation_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing the valid responses for each {{response}} in the template in corresponding order. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing the valid responses for each {{response}} in the template in corresponding order. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing the valid responses for each {{response}} in the template in corresponding order. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing the valid responses for each {{response}} in the template in corresponding order. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozechemistry.php b/src/Entities/QuestionTypes/clozechemistry.php index 69ee5674..6e9e7d6a 100644 --- a/src/Entities/QuestionTypes/clozechemistry.php +++ b/src/Entities/QuestionTypes/clozechemistry.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozechemistry extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozechemistry extends BaseQuestionType +{ protected $handwriting_recognises; protected $is_math; protected $metadata; @@ -26,341 +27,409 @@ class clozechemistry extends BaseQuestionType { protected $response_container; protected $showHints; protected $symbols; - + public function __construct( - $type, - $template, - array $response_containers - ) - { - $this->type = $type; - $this->template = $template; - $this->response_containers = $response_containers; - } - - /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + $type, + $template, + array $response_containers + ) { + $this->type = $type; + $this->template = $template; + $this->response_containers = $response_containers; + } + + /** + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return clozechemistry_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return clozechemistry_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param clozechemistry_metadata $metadata \ - */ - public function set_metadata (clozechemistry_metadata $metadata) { + * Set metadata \ + * \ + * + * @param clozechemistry_metadata $metadata \ + */ + public function set_metadata(clozechemistry_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return clozechemistry_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return clozechemistry_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param clozechemistry_ui_style $ui_style \ - */ - public function set_ui_style (clozechemistry_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param clozechemistry_ui_style $ui_style \ + */ + public function set_ui_style(clozechemistry_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return clozechemistry_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return clozechemistry_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param clozechemistry_validation $validation \ - */ - public function set_validation (clozechemistry_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param clozechemistry_validation $validation \ + */ + public function set_validation(clozechemistry_validation $validation) + { $this->validation = $validation; } /** - * Get Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @return array $text_blocks \ - */ - public function get_text_blocks() { + * Get Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @return array $text_blocks \ + */ + public function get_text_blocks() + { return $this->text_blocks; } /** - * Set Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @param array $text_blocks \ - */ - public function set_text_blocks (array $text_blocks) { + * Set Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @param array $text_blocks \ + */ + public function set_text_blocks(array $text_blocks) + { $this->text_blocks = $text_blocks; } /** - * Get Template Markup \ - * A string containing markup e.g. {{response}}, which define where response areas will be rendered. HTML supported tags \ - * @return string $template \ - */ - public function get_template() { + * Get Template Markup \ + * A string containing markup e.g. {{response}}, which define where response areas will be rendered. HTML supported tags \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template Markup \ - * A string containing markup e.g. {{response}}, which define where response areas will be rendered. HTML supported tags \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template Markup \ + * A string containing markup e.g. {{response}}, which define where response areas will be rendered. HTML supported tags \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Custom Number Pad \ - * \ - * @return array $numberPad \ - */ - public function get_numberPad() { + * Get Custom Number Pad \ + * \ + * + * @return array $numberPad \ + */ + public function get_numberPad() + { return $this->numberPad; } /** - * Set Custom Number Pad \ - * \ - * @param array $numberPad \ - */ - public function set_numberPad (array $numberPad) { + * Set Custom Number Pad \ + * \ + * + * @param array $numberPad \ + */ + public function set_numberPad(array $numberPad) + { $this->numberPad = $numberPad; } /** - * Get Response Containers (individual) \ - * Nest response containers within the question template's response areas \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Containers (individual) \ + * Nest response containers within the question template's response areas \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Containers (individual) \ - * Nest response containers within the question template's response areas \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Containers (individual) \ + * Nest response containers within the question template's response areas \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Response Container (global) \ - * Define the template and dimensions for all response containers \ - * @return clozechemistry_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Define the template and dimensions for all response containers \ + * + * @return clozechemistry_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Define the template and dimensions for all response containers \ - * @param clozechemistry_response_container $response_container \ - */ - public function set_response_container (clozechemistry_response_container $response_container) { + * Set Response Container (global) \ + * Define the template and dimensions for all response containers \ + * + * @param clozechemistry_response_container $response_container \ + */ + public function set_response_container(clozechemistry_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/clozechemistry_metadata.php b/src/Entities/QuestionTypes/clozechemistry_metadata.php index c4fd0159..c5b1824a 100644 --- a/src/Entities/QuestionTypes/clozechemistry_metadata.php +++ b/src/Entities/QuestionTypes/clozechemistry_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozechemistry_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozechemistry_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/clozechemistry_response_container.php b/src/Entities/QuestionTypes/clozechemistry_response_container.php index 5a97b575..f435b0c6 100644 --- a/src/Entities/QuestionTypes/clozechemistry_response_container.php +++ b/src/Entities/QuestionTypes/clozechemistry_response_container.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozechemistry_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozechemistry_response_container extends BaseQuestionTypeAttribute +{ protected $template; protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Template \ - * \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/clozechemistry_response_containers_item.php b/src/Entities/QuestionTypes/clozechemistry_response_containers_item.php index ba94cd5b..be9f16d7 100644 --- a/src/Entities/QuestionTypes/clozechemistry_response_containers_item.php +++ b/src/Entities/QuestionTypes/clozechemistry_response_containers_item.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozechemistry_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozechemistry_response_containers_item extends BaseQuestionTypeAttribute +{ protected $template; protected $width; protected $height; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Template \ - * \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Width \ - * \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height \ - * \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } - + } diff --git a/src/Entities/QuestionTypes/clozechemistry_ui_style.php b/src/Entities/QuestionTypes/clozechemistry_ui_style.php index 57aa0aac..3bdc8153 100644 --- a/src/Entities/QuestionTypes/clozechemistry_ui_style.php +++ b/src/Entities/QuestionTypes/clozechemistry_ui_style.php @@ -5,134 +5,158 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozechemistry_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozechemistry_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; protected $response_font_scale; protected $type; protected $min_width; protected $keyboard_below_response_area; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Response font scale \ - * This scales the font relative to the question's font size. \ - * @return string $response_font_scale \ - */ - public function get_response_font_scale() { + * Get Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @return string $response_font_scale \ + */ + public function get_response_font_scale() + { return $this->response_font_scale; } /** - * Set Response font scale \ - * This scales the font relative to the question's font size. \ - * @param string $response_font_scale \ - */ - public function set_response_font_scale ($response_font_scale) { + * Set Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @param string $response_font_scale \ + */ + public function set_response_font_scale($response_font_scale) + { $this->response_font_scale = $response_font_scale; } /** - * Get Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @return string $min_width \ - */ - public function get_min_width() { + * Get Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @return string $min_width \ + */ + public function get_min_width() + { return $this->min_width; } /** - * Set Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @param string $min_width \ - */ - public function set_min_width ($min_width) { + * Set Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @param string $min_width \ + */ + public function set_min_width($min_width) + { $this->min_width = $min_width; } /** - * Get Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @return boolean $keyboard_below_response_area \ - */ - public function get_keyboard_below_response_area() { + * Get Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @return boolean $keyboard_below_response_area \ + */ + public function get_keyboard_below_response_area() + { return $this->keyboard_below_response_area; } /** - * Set Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @param boolean $keyboard_below_response_area \ - */ - public function set_keyboard_below_response_area ($keyboard_below_response_area) { + * Set Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @param boolean $keyboard_below_response_area \ + */ + public function set_keyboard_below_response_area($keyboard_below_response_area) + { $this->keyboard_below_response_area = $keyboard_below_response_area; } - + } diff --git a/src/Entities/QuestionTypes/clozechemistry_validation.php b/src/Entities/QuestionTypes/clozechemistry_validation.php index 0eff2c43..bfd2586c 100644 --- a/src/Entities/QuestionTypes/clozechemistry_validation.php +++ b/src/Entities/QuestionTypes/clozechemistry_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozechemistry_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozechemistry_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid Responses \ - * An object containing the valid response score and value. \ - * @return clozechemistry_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid Responses \ + * An object containing the valid response score and value. \ + * + * @return clozechemistry_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid Responses \ - * An object containing the valid response score and value. \ - * @param clozechemistry_validation_valid_response $valid_response \ - */ - public function set_valid_response (clozechemistry_validation_valid_response $valid_response) { + * Set Valid Responses \ + * An object containing the valid response score and value. \ + * + * @param clozechemistry_validation_valid_response $valid_response \ + */ + public function set_valid_response(clozechemistry_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/clozechemistry_validation_alt_responses_item.php b/src/Entities/QuestionTypes/clozechemistry_validation_alt_responses_item.php index 38907828..36e5dc42 100644 --- a/src/Entities/QuestionTypes/clozechemistry_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/clozechemistry_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozechemistry_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozechemistry_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Values \ - * An array of arrays that contain the valid responses. \ - * @return array $value \ - */ - public function get_value() { + * Get Values \ + * An array of arrays that contain the valid responses. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Values \ - * An array of arrays that contain the valid responses. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Values \ + * An array of arrays that contain the valid responses. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozechemistry_validation_valid_response.php b/src/Entities/QuestionTypes/clozechemistry_validation_valid_response.php index cbece10f..d26e510f 100644 --- a/src/Entities/QuestionTypes/clozechemistry_validation_valid_response.php +++ b/src/Entities/QuestionTypes/clozechemistry_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozechemistry_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozechemistry_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Equation Values \ - * A collection of arrays containing objects with the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Equation Values \ + * A collection of arrays containing objects with the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Equation Values \ - * A collection of arrays containing objects with the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Equation Values \ + * A collection of arrays containing objects with the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozedropdown.php b/src/Entities/QuestionTypes/clozedropdown.php index b0bae81f..aaf0bce3 100644 --- a/src/Entities/QuestionTypes/clozedropdown.php +++ b/src/Entities/QuestionTypes/clozedropdown.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozedropdown extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozedropdown extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -23,293 +24,349 @@ class clozedropdown extends BaseQuestionType { protected $description; protected $template; protected $possible_responses; - + public function __construct( - $type, - $template, - array $possible_responses - ) - { - $this->type = $type; - $this->template = $template; - $this->possible_responses = $possible_responses; - } + $type, + $template, + array $possible_responses + ) { + $this->type = $type; + $this->template = $template; + $this->possible_responses = $possible_responses; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return clozedropdown_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return clozedropdown_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param clozedropdown_metadata $metadata \ - */ - public function set_metadata (clozedropdown_metadata $metadata) { + * Set metadata \ + * \ + * + * @param clozedropdown_metadata $metadata \ + */ + public function set_metadata(clozedropdown_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return clozedropdown_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return clozedropdown_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param clozedropdown_ui_style $ui_style \ - */ - public function set_ui_style (clozedropdown_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param clozedropdown_ui_style $ui_style \ + */ + public function set_ui_style(clozedropdown_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return clozedropdown_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return clozedropdown_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param clozedropdown_validation $validation \ - */ - public function set_validation (clozedropdown_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param clozedropdown_validation $validation \ + */ + public function set_validation(clozedropdown_validation $validation) + { $this->validation = $validation; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return clozedropdown_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return clozedropdown_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param clozedropdown_response_container $response_container \ - */ - public function set_response_container (clozedropdown_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param clozedropdown_response_container $response_container \ + */ + public function set_response_container(clozedropdown_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Template Markup \ - * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ - * @return string $template \ - */ - public function get_template() { + * Get Template Markup \ + * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template Markup \ - * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template Markup \ + * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Possible Responses \ - * Array of string arrays. They tie to the index position of the {{response}}s found in the HTML string and are rendered in - order within the dropdown. \ - * @return array $possible_responses \ - */ - public function get_possible_responses() { + * Get Possible Responses \ + * Array of string arrays. They tie to the index position of the {{response}}s found in the HTML string and are rendered in + * order within the dropdown. \ + * + * @return array $possible_responses \ + */ + public function get_possible_responses() + { return $this->possible_responses; } /** - * Set Possible Responses \ - * Array of string arrays. They tie to the index position of the {{response}}s found in the HTML string and are rendered in - order within the dropdown. \ - * @param array $possible_responses \ - */ - public function set_possible_responses (array $possible_responses) { + * Set Possible Responses \ + * Array of string arrays. They tie to the index position of the {{response}}s found in the HTML string and are rendered in + * order within the dropdown. \ + * + * @param array $possible_responses \ + */ + public function set_possible_responses(array $possible_responses) + { $this->possible_responses = $possible_responses; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/clozedropdown_metadata.php b/src/Entities/QuestionTypes/clozedropdown_metadata.php index f2e5c390..42a55040 100644 --- a/src/Entities/QuestionTypes/clozedropdown_metadata.php +++ b/src/Entities/QuestionTypes/clozedropdown_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozedropdown_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozedropdown_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/clozedropdown_response_container.php b/src/Entities/QuestionTypes/clozedropdown_response_container.php index 1c2f5cdb..8ee4f4c1 100644 --- a/src/Entities/QuestionTypes/clozedropdown_response_container.php +++ b/src/Entities/QuestionTypes/clozedropdown_response_container.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozedropdown_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozedropdown_response_container extends BaseQuestionTypeAttribute +{ protected $height; protected $width; protected $placeholder; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } - + } diff --git a/src/Entities/QuestionTypes/clozedropdown_response_containers_item.php b/src/Entities/QuestionTypes/clozedropdown_response_containers_item.php index 8f759d6d..bec6bc32 100644 --- a/src/Entities/QuestionTypes/clozedropdown_response_containers_item.php +++ b/src/Entities/QuestionTypes/clozedropdown_response_containers_item.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozedropdown_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozedropdown_response_containers_item extends BaseQuestionTypeAttribute +{ protected $height; protected $width; protected $placeholder; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } - + } diff --git a/src/Entities/QuestionTypes/clozedropdown_ui_style.php b/src/Entities/QuestionTypes/clozedropdown_ui_style.php index da549547..ac39439d 100644 --- a/src/Entities/QuestionTypes/clozedropdown_ui_style.php +++ b/src/Entities/QuestionTypes/clozedropdown_ui_style.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozedropdown_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozedropdown_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/clozedropdown_validation.php b/src/Entities/QuestionTypes/clozedropdown_validation.php index c8201b9f..bdfc943e 100644 --- a/src/Entities/QuestionTypes/clozedropdown_validation.php +++ b/src/Entities/QuestionTypes/clozedropdown_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozedropdown_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozedropdown_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return clozedropdown_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return clozedropdown_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param clozedropdown_validation_valid_response $valid_response \ - */ - public function set_valid_response (clozedropdown_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param clozedropdown_validation_valid_response $valid_response \ + */ + public function set_valid_response(clozedropdown_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/clozedropdown_validation_alt_responses_item.php b/src/Entities/QuestionTypes/clozedropdown_validation_alt_responses_item.php index 3839d4b6..e64fce0c 100644 --- a/src/Entities/QuestionTypes/clozedropdown_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/clozedropdown_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozedropdown_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozedropdown_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozedropdown_validation_valid_response.php b/src/Entities/QuestionTypes/clozedropdown_validation_valid_response.php index af843bac..5824ce22 100644 --- a/src/Entities/QuestionTypes/clozedropdown_validation_valid_response.php +++ b/src/Entities/QuestionTypes/clozedropdown_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozedropdown_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozedropdown_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing the valid responses for each {{response}} in the template in corresponding order. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing the valid responses for each {{response}} in the template in corresponding order. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing the valid responses for each {{response}} in the template in corresponding order. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing the valid responses for each {{response}} in the template in corresponding order. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozeformula.php b/src/Entities/QuestionTypes/clozeformula.php index f201454e..69a454c7 100644 --- a/src/Entities/QuestionTypes/clozeformula.php +++ b/src/Entities/QuestionTypes/clozeformula.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeformula extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeformula extends BaseQuestionType +{ protected $handwriting_recognises; protected $is_math; protected $metadata; @@ -26,341 +27,409 @@ class clozeformula extends BaseQuestionType { protected $response_container; protected $showHints; protected $symbols; - + public function __construct( - $type, - $template, - array $response_containers - ) - { - $this->type = $type; - $this->template = $template; - $this->response_containers = $response_containers; - } - - /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + $type, + $template, + array $response_containers + ) { + $this->type = $type; + $this->template = $template; + $this->response_containers = $response_containers; + } + + /** + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return clozeformula_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return clozeformula_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param clozeformula_metadata $metadata \ - */ - public function set_metadata (clozeformula_metadata $metadata) { + * Set metadata \ + * \ + * + * @param clozeformula_metadata $metadata \ + */ + public function set_metadata(clozeformula_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return clozeformula_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return clozeformula_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param clozeformula_ui_style $ui_style \ - */ - public function set_ui_style (clozeformula_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param clozeformula_ui_style $ui_style \ + */ + public function set_ui_style(clozeformula_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return clozeformula_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return clozeformula_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param clozeformula_validation $validation \ - */ - public function set_validation (clozeformula_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param clozeformula_validation $validation \ + */ + public function set_validation(clozeformula_validation $validation) + { $this->validation = $validation; } /** - * Get Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @return array $text_blocks \ - */ - public function get_text_blocks() { + * Get Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @return array $text_blocks \ + */ + public function get_text_blocks() + { return $this->text_blocks; } /** - * Set Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @param array $text_blocks \ - */ - public function set_text_blocks (array $text_blocks) { + * Set Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @param array $text_blocks \ + */ + public function set_text_blocks(array $text_blocks) + { $this->text_blocks = $text_blocks; } /** - * Get Template Markup \ - * A string containing markup e.g. {{response}}, which define where response areas will be rendered. HTML supported tags \ - * @return string $template \ - */ - public function get_template() { + * Get Template Markup \ + * A string containing markup e.g. {{response}}, which define where response areas will be rendered. HTML supported tags \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template Markup \ - * A string containing markup e.g. {{response}}, which define where response areas will be rendered. HTML supported tags \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template Markup \ + * A string containing markup e.g. {{response}}, which define where response areas will be rendered. HTML supported tags \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Custom Number Pad \ - * \ - * @return array $numberPad \ - */ - public function get_numberPad() { + * Get Custom Number Pad \ + * \ + * + * @return array $numberPad \ + */ + public function get_numberPad() + { return $this->numberPad; } /** - * Set Custom Number Pad \ - * \ - * @param array $numberPad \ - */ - public function set_numberPad (array $numberPad) { + * Set Custom Number Pad \ + * \ + * + * @param array $numberPad \ + */ + public function set_numberPad(array $numberPad) + { $this->numberPad = $numberPad; } /** - * Get Response Containers (individual) \ - * Nest response containers within the question template's response areas \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Containers (individual) \ + * Nest response containers within the question template's response areas \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Containers (individual) \ - * Nest response containers within the question template's response areas \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Containers (individual) \ + * Nest response containers within the question template's response areas \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Response Container (global) \ - * Define the template and dimensions for all response containers \ - * @return clozeformula_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Define the template and dimensions for all response containers \ + * + * @return clozeformula_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Define the template and dimensions for all response containers \ - * @param clozeformula_response_container $response_container \ - */ - public function set_response_container (clozeformula_response_container $response_container) { + * Set Response Container (global) \ + * Define the template and dimensions for all response containers \ + * + * @param clozeformula_response_container $response_container \ + */ + public function set_response_container(clozeformula_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/clozeformula_metadata.php b/src/Entities/QuestionTypes/clozeformula_metadata.php index 25a18ccc..7dbe3ec8 100644 --- a/src/Entities/QuestionTypes/clozeformula_metadata.php +++ b/src/Entities/QuestionTypes/clozeformula_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeformula_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeformula_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/clozeformula_response_container.php b/src/Entities/QuestionTypes/clozeformula_response_container.php index 1f07112a..fb99c039 100644 --- a/src/Entities/QuestionTypes/clozeformula_response_container.php +++ b/src/Entities/QuestionTypes/clozeformula_response_container.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeformula_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeformula_response_container extends BaseQuestionTypeAttribute +{ protected $template; protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Template \ - * \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/clozeformula_response_containers_item.php b/src/Entities/QuestionTypes/clozeformula_response_containers_item.php index f24c7df2..04ee5b9d 100644 --- a/src/Entities/QuestionTypes/clozeformula_response_containers_item.php +++ b/src/Entities/QuestionTypes/clozeformula_response_containers_item.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeformula_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeformula_response_containers_item extends BaseQuestionTypeAttribute +{ protected $template; protected $width; protected $height; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Template \ - * \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Width \ - * \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height \ - * \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } - + } diff --git a/src/Entities/QuestionTypes/clozeformula_ui_style.php b/src/Entities/QuestionTypes/clozeformula_ui_style.php index 3092715a..0a258dd6 100644 --- a/src/Entities/QuestionTypes/clozeformula_ui_style.php +++ b/src/Entities/QuestionTypes/clozeformula_ui_style.php @@ -5,134 +5,158 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeformula_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeformula_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; protected $response_font_scale; protected $type; protected $min_width; protected $keyboard_below_response_area; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Response font scale \ - * This scales the font relative to the question's font size. \ - * @return string $response_font_scale \ - */ - public function get_response_font_scale() { + * Get Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @return string $response_font_scale \ + */ + public function get_response_font_scale() + { return $this->response_font_scale; } /** - * Set Response font scale \ - * This scales the font relative to the question's font size. \ - * @param string $response_font_scale \ - */ - public function set_response_font_scale ($response_font_scale) { + * Set Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @param string $response_font_scale \ + */ + public function set_response_font_scale($response_font_scale) + { $this->response_font_scale = $response_font_scale; } /** - * Get Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @return string $min_width \ - */ - public function get_min_width() { + * Get Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @return string $min_width \ + */ + public function get_min_width() + { return $this->min_width; } /** - * Set Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @param string $min_width \ - */ - public function set_min_width ($min_width) { + * Set Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @param string $min_width \ + */ + public function set_min_width($min_width) + { $this->min_width = $min_width; } /** - * Get Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @return boolean $keyboard_below_response_area \ - */ - public function get_keyboard_below_response_area() { + * Get Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @return boolean $keyboard_below_response_area \ + */ + public function get_keyboard_below_response_area() + { return $this->keyboard_below_response_area; } /** - * Set Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @param boolean $keyboard_below_response_area \ - */ - public function set_keyboard_below_response_area ($keyboard_below_response_area) { + * Set Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @param boolean $keyboard_below_response_area \ + */ + public function set_keyboard_below_response_area($keyboard_below_response_area) + { $this->keyboard_below_response_area = $keyboard_below_response_area; } - + } diff --git a/src/Entities/QuestionTypes/clozeformula_validation.php b/src/Entities/QuestionTypes/clozeformula_validation.php index 857b432d..28eaa9ae 100644 --- a/src/Entities/QuestionTypes/clozeformula_validation.php +++ b/src/Entities/QuestionTypes/clozeformula_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeformula_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeformula_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid Responses \ - * An object containing the valid response score and value. \ - * @return clozeformula_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid Responses \ + * An object containing the valid response score and value. \ + * + * @return clozeformula_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid Responses \ - * An object containing the valid response score and value. \ - * @param clozeformula_validation_valid_response $valid_response \ - */ - public function set_valid_response (clozeformula_validation_valid_response $valid_response) { + * Set Valid Responses \ + * An object containing the valid response score and value. \ + * + * @param clozeformula_validation_valid_response $valid_response \ + */ + public function set_valid_response(clozeformula_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/clozeformula_validation_alt_responses_item.php b/src/Entities/QuestionTypes/clozeformula_validation_alt_responses_item.php index f10b274b..a57f445a 100644 --- a/src/Entities/QuestionTypes/clozeformula_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/clozeformula_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeformula_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeformula_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Values \ - * An array of arrays that contain the valid responses. \ - * @return array $value \ - */ - public function get_value() { + * Get Values \ + * An array of arrays that contain the valid responses. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Values \ - * An array of arrays that contain the valid responses. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Values \ + * An array of arrays that contain the valid responses. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozeformula_validation_valid_response.php b/src/Entities/QuestionTypes/clozeformula_validation_valid_response.php index dab83b3d..b523ec91 100644 --- a/src/Entities/QuestionTypes/clozeformula_validation_valid_response.php +++ b/src/Entities/QuestionTypes/clozeformula_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeformula_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeformula_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Equation Values \ - * A collection of arrays containing objects with the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Equation Values \ + * A collection of arrays containing objects with the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Equation Values \ - * A collection of arrays containing objects with the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Equation Values \ + * A collection of arrays containing objects with the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozeinlinetext.php b/src/Entities/QuestionTypes/clozeinlinetext.php index 35fdafa5..d6580b47 100644 --- a/src/Entities/QuestionTypes/clozeinlinetext.php +++ b/src/Entities/QuestionTypes/clozeinlinetext.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeinlinetext extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeinlinetext extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -26,357 +27,425 @@ class clozeinlinetext extends BaseQuestionType { protected $max_length; protected $spellcheck; protected $case_sensitive; - + public function __construct( - $type, - $template - ) - { - $this->type = $type; - $this->template = $template; - } + $type, + $template + ) { + $this->type = $type; + $this->template = $template; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return clozeinlinetext_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return clozeinlinetext_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param clozeinlinetext_metadata $metadata \ - */ - public function set_metadata (clozeinlinetext_metadata $metadata) { + * Set metadata \ + * \ + * + * @param clozeinlinetext_metadata $metadata \ + */ + public function set_metadata(clozeinlinetext_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return clozeinlinetext_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return clozeinlinetext_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param clozeinlinetext_ui_style $ui_style \ - */ - public function set_ui_style (clozeinlinetext_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param clozeinlinetext_ui_style $ui_style \ + */ + public function set_ui_style(clozeinlinetext_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return clozeinlinetext_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return clozeinlinetext_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param clozeinlinetext_validation $validation \ - */ - public function set_validation (clozeinlinetext_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param clozeinlinetext_validation $validation \ + */ + public function set_validation(clozeinlinetext_validation $validation) + { $this->validation = $validation; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return clozeinlinetext_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return clozeinlinetext_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param clozeinlinetext_response_container $response_container \ - */ - public function set_response_container (clozeinlinetext_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param clozeinlinetext_response_container $response_container \ + */ + public function set_response_container(clozeinlinetext_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Template Markup \ - * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ - * @return string $template \ - */ - public function get_template() { + * Get Template Markup \ + * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template Markup \ - * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template Markup \ + * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Character Map \ - * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
-If an Array, the character map button - will show and display only the array of characters.
IMPORTANT The HTML doc - ument will require a charset of utf-8: <meta charset="utf-8"> \ - * @return $character_map \ - */ - public function get_character_map() { + * Get Character Map \ + * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
+ * If an Array, the character map button + * will show and display only the array of characters.
IMPORTANT The HTML doc + * ument will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @return $character_map \ + */ + public function get_character_map() + { return $this->character_map; } /** - * Set Character Map \ - * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
-If an Array, the character map button - will show and display only the array of characters.
IMPORTANT The HTML doc - ument will require a charset of utf-8: <meta charset="utf-8"> \ - * @param $character_map \ - */ - public function set_character_map ($character_map) { + * Set Character Map \ + * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
+ * If an Array, the character map button + * will show and display only the array of characters.
IMPORTANT The HTML doc + * ument will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @param $character_map \ + */ + public function set_character_map($character_map) + { $this->character_map = $character_map; } /** - * Get Maximum Length (characters) \ - * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t - ype. \ - * @return number $max_length \ - */ - public function get_max_length() { + * Get Maximum Length (characters) \ + * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t + * ype. \ + * + * @return number $max_length \ + */ + public function get_max_length() + { return $this->max_length; } /** - * Set Maximum Length (characters) \ - * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t - ype. \ - * @param number $max_length \ - */ - public function set_max_length ($max_length) { + * Set Maximum Length (characters) \ + * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t + * ype. \ + * + * @param number $max_length \ + */ + public function set_max_length($max_length) + { $this->max_length = $max_length; } /** - * Get Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @return boolean $spellcheck \ - */ - public function get_spellcheck() { + * Get Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @return boolean $spellcheck \ + */ + public function get_spellcheck() + { return $this->spellcheck; } /** - * Set Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @param boolean $spellcheck \ - */ - public function set_spellcheck ($spellcheck) { + * Set Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @param boolean $spellcheck \ + */ + public function set_spellcheck($spellcheck) + { $this->spellcheck = $spellcheck; } /** - * Get Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @return boolean $case_sensitive \ - */ - public function get_case_sensitive() { + * Get Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @return boolean $case_sensitive \ + */ + public function get_case_sensitive() + { return $this->case_sensitive; } /** - * Set Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @param boolean $case_sensitive \ - */ - public function set_case_sensitive ($case_sensitive) { + * Set Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @param boolean $case_sensitive \ + */ + public function set_case_sensitive($case_sensitive) + { $this->case_sensitive = $case_sensitive; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/clozeinlinetext_metadata.php b/src/Entities/QuestionTypes/clozeinlinetext_metadata.php index e6e7f54b..f7a96b47 100644 --- a/src/Entities/QuestionTypes/clozeinlinetext_metadata.php +++ b/src/Entities/QuestionTypes/clozeinlinetext_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeinlinetext_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeinlinetext_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/clozeinlinetext_response_container.php b/src/Entities/QuestionTypes/clozeinlinetext_response_container.php index 1181f946..d090717c 100644 --- a/src/Entities/QuestionTypes/clozeinlinetext_response_container.php +++ b/src/Entities/QuestionTypes/clozeinlinetext_response_container.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeinlinetext_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeinlinetext_response_container extends BaseQuestionTypeAttribute +{ protected $height; protected $width; protected $placeholder; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } - + } diff --git a/src/Entities/QuestionTypes/clozeinlinetext_response_containers_item.php b/src/Entities/QuestionTypes/clozeinlinetext_response_containers_item.php index 8e4d1f1d..a82e927d 100644 --- a/src/Entities/QuestionTypes/clozeinlinetext_response_containers_item.php +++ b/src/Entities/QuestionTypes/clozeinlinetext_response_containers_item.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeinlinetext_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeinlinetext_response_containers_item extends BaseQuestionTypeAttribute +{ protected $height; protected $width; protected $placeholder; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } - + } diff --git a/src/Entities/QuestionTypes/clozeinlinetext_ui_style.php b/src/Entities/QuestionTypes/clozeinlinetext_ui_style.php index 3a22279b..6e9d4e5f 100644 --- a/src/Entities/QuestionTypes/clozeinlinetext_ui_style.php +++ b/src/Entities/QuestionTypes/clozeinlinetext_ui_style.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeinlinetext_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeinlinetext_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/clozeinlinetext_validation.php b/src/Entities/QuestionTypes/clozeinlinetext_validation.php index 55676b15..68447190 100644 --- a/src/Entities/QuestionTypes/clozeinlinetext_validation.php +++ b/src/Entities/QuestionTypes/clozeinlinetext_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeinlinetext_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeinlinetext_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return clozeinlinetext_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return clozeinlinetext_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param clozeinlinetext_validation_valid_response $valid_response \ - */ - public function set_valid_response (clozeinlinetext_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param clozeinlinetext_validation_valid_response $valid_response \ + */ + public function set_valid_response(clozeinlinetext_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/clozeinlinetext_validation_alt_responses_item.php b/src/Entities/QuestionTypes/clozeinlinetext_validation_alt_responses_item.php index a765dcf7..ae9823de 100644 --- a/src/Entities/QuestionTypes/clozeinlinetext_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/clozeinlinetext_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeinlinetext_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeinlinetext_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozeinlinetext_validation_valid_response.php b/src/Entities/QuestionTypes/clozeinlinetext_validation_valid_response.php index 84345bea..6ce6c4d3 100644 --- a/src/Entities/QuestionTypes/clozeinlinetext_validation_valid_response.php +++ b/src/Entities/QuestionTypes/clozeinlinetext_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozeinlinetext_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozeinlinetext_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing the valid responses for each {{response}} in the template in corresponding order. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing the valid responses for each {{response}} in the template in corresponding order. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing the valid responses for each {{response}} in the template in corresponding order. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing the valid responses for each {{response}} in the template in corresponding order. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozetext.php b/src/Entities/QuestionTypes/clozetext.php index 91c209c4..7f5b529e 100644 --- a/src/Entities/QuestionTypes/clozetext.php +++ b/src/Entities/QuestionTypes/clozetext.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozetext extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozetext extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -27,377 +28,449 @@ class clozetext extends BaseQuestionType { protected $multiple_line; protected $spellcheck; protected $case_sensitive; - + public function __construct( - $type, - $template - ) - { - $this->type = $type; - $this->template = $template; - } + $type, + $template + ) { + $this->type = $type; + $this->template = $template; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return clozetext_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return clozetext_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param clozetext_metadata $metadata \ - */ - public function set_metadata (clozetext_metadata $metadata) { + * Set metadata \ + * \ + * + * @param clozetext_metadata $metadata \ + */ + public function set_metadata(clozetext_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return clozetext_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return clozetext_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param clozetext_ui_style $ui_style \ - */ - public function set_ui_style (clozetext_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param clozetext_ui_style $ui_style \ + */ + public function set_ui_style(clozetext_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return clozetext_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return clozetext_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param clozetext_validation $validation \ - */ - public function set_validation (clozetext_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param clozetext_validation $validation \ + */ + public function set_validation(clozetext_validation $validation) + { $this->validation = $validation; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return clozetext_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return clozetext_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param clozetext_response_container $response_container \ - */ - public function set_response_container (clozetext_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param clozetext_response_container $response_container \ + */ + public function set_response_container(clozetext_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Template Markup \ - * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ - * @return string $template \ - */ - public function get_template() { + * Get Template Markup \ + * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template Markup \ - * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template Markup \ + * A string containing markup e.g. {{response}}. Which indicates points a user can drag a defined list of items to. HTML supported tags \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Character Map \ - * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
-If an Array, the character map button - will show and display only the array of characters.
IMPORTANT The HTML doc - ument will require a charset of utf-8: <meta charset="utf-8"> \ - * @return $character_map \ - */ - public function get_character_map() { + * Get Character Map \ + * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
+ * If an Array, the character map button + * will show and display only the array of characters.
IMPORTANT The HTML doc + * ument will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @return $character_map \ + */ + public function get_character_map() + { return $this->character_map; } /** - * Set Character Map \ - * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
-If an Array, the character map button - will show and display only the array of characters.
IMPORTANT The HTML doc - ument will require a charset of utf-8: <meta charset="utf-8"> \ - * @param $character_map \ - */ - public function set_character_map ($character_map) { + * Set Character Map \ + * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
+ * If an Array, the character map button + * will show and display only the array of characters.
IMPORTANT The HTML doc + * ument will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @param $character_map \ + */ + public function set_character_map($character_map) + { $this->character_map = $character_map; } /** - * Get Maximum Length (characters) \ - * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t - ype. \ - * @return number $max_length \ - */ - public function get_max_length() { + * Get Maximum Length (characters) \ + * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t + * ype. \ + * + * @return number $max_length \ + */ + public function get_max_length() + { return $this->max_length; } /** - * Set Maximum Length (characters) \ - * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t - ype. \ - * @param number $max_length \ - */ - public function set_max_length ($max_length) { + * Set Maximum Length (characters) \ + * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t + * ype. \ + * + * @param number $max_length \ + */ + public function set_max_length($max_length) + { $this->max_length = $max_length; } /** - * Get Multiple Line \ - * If true the response input will be a text area supporting multiple lines of input. If false the response input will be a - text input only supporting one line responses. \ - * @return boolean $multiple_line \ - */ - public function get_multiple_line() { + * Get Multiple Line \ + * If true the response input will be a text area supporting multiple lines of input. If false the response input will be a + * text input only supporting one line responses. \ + * + * @return boolean $multiple_line \ + */ + public function get_multiple_line() + { return $this->multiple_line; } /** - * Set Multiple Line \ - * If true the response input will be a text area supporting multiple lines of input. If false the response input will be a - text input only supporting one line responses. \ - * @param boolean $multiple_line \ - */ - public function set_multiple_line ($multiple_line) { + * Set Multiple Line \ + * If true the response input will be a text area supporting multiple lines of input. If false the response input will be a + * text input only supporting one line responses. \ + * + * @param boolean $multiple_line \ + */ + public function set_multiple_line($multiple_line) + { $this->multiple_line = $multiple_line; } /** - * Get Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @return boolean $spellcheck \ - */ - public function get_spellcheck() { + * Get Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @return boolean $spellcheck \ + */ + public function get_spellcheck() + { return $this->spellcheck; } /** - * Set Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @param boolean $spellcheck \ - */ - public function set_spellcheck ($spellcheck) { + * Set Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @param boolean $spellcheck \ + */ + public function set_spellcheck($spellcheck) + { $this->spellcheck = $spellcheck; } /** - * Get Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @return boolean $case_sensitive \ - */ - public function get_case_sensitive() { + * Get Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @return boolean $case_sensitive \ + */ + public function get_case_sensitive() + { return $this->case_sensitive; } /** - * Set Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @param boolean $case_sensitive \ - */ - public function set_case_sensitive ($case_sensitive) { + * Set Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @param boolean $case_sensitive \ + */ + public function set_case_sensitive($case_sensitive) + { $this->case_sensitive = $case_sensitive; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/clozetext_metadata.php b/src/Entities/QuestionTypes/clozetext_metadata.php index 095cec1b..57c6c433 100644 --- a/src/Entities/QuestionTypes/clozetext_metadata.php +++ b/src/Entities/QuestionTypes/clozetext_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozetext_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozetext_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/clozetext_response_container.php b/src/Entities/QuestionTypes/clozetext_response_container.php index bd52170b..50740788 100644 --- a/src/Entities/QuestionTypes/clozetext_response_container.php +++ b/src/Entities/QuestionTypes/clozetext_response_container.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozetext_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozetext_response_container extends BaseQuestionTypeAttribute +{ protected $height; protected $width; protected $placeholder; protected $input_type; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } /** - * Get Input type \ - * Type of input \ - * @return string $input_type \ - */ - public function get_input_type() { + * Get Input type \ + * Type of input \ + * + * @return string $input_type \ + */ + public function get_input_type() + { return $this->input_type; } /** - * Set Input type \ - * Type of input \ - * @param string $input_type \ - */ - public function set_input_type ($input_type) { + * Set Input type \ + * Type of input \ + * + * @param string $input_type \ + */ + public function set_input_type($input_type) + { $this->input_type = $input_type; } - + } diff --git a/src/Entities/QuestionTypes/clozetext_response_containers_item.php b/src/Entities/QuestionTypes/clozetext_response_containers_item.php index 6ff37228..1a025c09 100644 --- a/src/Entities/QuestionTypes/clozetext_response_containers_item.php +++ b/src/Entities/QuestionTypes/clozetext_response_containers_item.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozetext_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozetext_response_containers_item extends BaseQuestionTypeAttribute +{ protected $height; protected $width; protected $placeholder; protected $input_type; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } /** - * Get Input type \ - * Type of input \ - * @return string $input_type \ - */ - public function get_input_type() { + * Get Input type \ + * Type of input \ + * + * @return string $input_type \ + */ + public function get_input_type() + { return $this->input_type; } /** - * Set Input type \ - * Type of input \ - * @param string $input_type \ - */ - public function set_input_type ($input_type) { + * Set Input type \ + * Type of input \ + * + * @param string $input_type \ + */ + public function set_input_type($input_type) + { $this->input_type = $input_type; } - + } diff --git a/src/Entities/QuestionTypes/clozetext_ui_style.php b/src/Entities/QuestionTypes/clozetext_ui_style.php index fd6fec72..d419689e 100644 --- a/src/Entities/QuestionTypes/clozetext_ui_style.php +++ b/src/Entities/QuestionTypes/clozetext_ui_style.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozetext_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozetext_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/clozetext_validation.php b/src/Entities/QuestionTypes/clozetext_validation.php index 87ba5c32..b557ec12 100644 --- a/src/Entities/QuestionTypes/clozetext_validation.php +++ b/src/Entities/QuestionTypes/clozetext_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozetext_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozetext_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return clozetext_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return clozetext_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param clozetext_validation_valid_response $valid_response \ - */ - public function set_valid_response (clozetext_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param clozetext_validation_valid_response $valid_response \ + */ + public function set_valid_response(clozetext_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/clozetext_validation_alt_responses_item.php b/src/Entities/QuestionTypes/clozetext_validation_alt_responses_item.php index f110afa8..274114a0 100644 --- a/src/Entities/QuestionTypes/clozetext_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/clozetext_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozetext_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozetext_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/clozetext_validation_valid_response.php b/src/Entities/QuestionTypes/clozetext_validation_valid_response.php index 57f9daab..bb6f59c6 100644 --- a/src/Entities/QuestionTypes/clozetext_validation_valid_response.php +++ b/src/Entities/QuestionTypes/clozetext_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class clozetext_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class clozetext_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing the valid responses for each {{response}} in the template in corresponding order. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing the valid responses for each {{response}} in the template in corresponding order. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing the valid responses for each {{response}} in the template in corresponding order. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing the valid responses for each {{response}} in the template in corresponding order. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/counter.php b/src/Entities/QuestionTypes/counter.php index f1d1cf82..728602bd 100644 --- a/src/Entities/QuestionTypes/counter.php +++ b/src/Entities/QuestionTypes/counter.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class counter extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class counter extends BaseQuestionType +{ protected $type; protected $metadata; protected $length; @@ -16,147 +17,175 @@ class counter extends BaseQuestionType { protected $title; protected $template; protected $show_minutes; - + public function __construct( - $type, - $length - ) - { - $this->type = $type; - $this->length = $length; - } + $type, + $length + ) { + $this->type = $type; + $this->length = $length; + } /** - * Get Feature Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Feature Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Feature Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Feature Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get metadata \ - * \ - * @return object $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return object $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param object $metadata \ - */ - public function set_metadata ($metadata) { + * Set metadata \ + * \ + * + * @param object $metadata \ + */ + public function set_metadata($metadata) + { $this->metadata = $metadata; } /** - * Get Length \ - * Counter length in seconds \ - * @return number $length \ - */ - public function get_length() { + * Get Length \ + * Counter length in seconds \ + * + * @return number $length \ + */ + public function get_length() + { return $this->length; } /** - * Set Length \ - * Counter length in seconds \ - * @param number $length \ - */ - public function set_length ($length) { + * Set Length \ + * Counter length in seconds \ + * + * @param number $length \ + */ + public function set_length($length) + { $this->length = $length; } /** - * Get Direction \ - * Direction for the counter to count, options: 'up', 'down' \ - * @return string $direction \ - */ - public function get_direction() { + * Get Direction \ + * Direction for the counter to count, options: 'up', 'down' \ + * + * @return string $direction \ + */ + public function get_direction() + { return $this->direction; } /** - * Set Direction \ - * Direction for the counter to count, options: 'up', 'down' \ - * @param string $direction \ - */ - public function set_direction ($direction) { + * Set Direction \ + * Direction for the counter to count, options: 'up', 'down' \ + * + * @param string $direction \ + */ + public function set_direction($direction) + { $this->direction = $direction; } /** - * Get Title \ - * Title visible on the counter UI \ - * @return string $title \ - */ - public function get_title() { + * Get Title \ + * Title visible on the counter UI \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Title \ - * Title visible on the counter UI \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Title \ + * Title visible on the counter UI \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } /** - * Get Template \ - * Counter text content, {num} denotes the location of the counter number \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * Counter text content, {num} denotes the location of the counter number \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * Counter text content, {num} denotes the location of the counter number \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * Counter text content, {num} denotes the location of the counter number \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Show Minutes? \ - * Determines the display format for the counter. If true then the format is mm:ss, if false only the seconds are displayed - . \ - * @return boolean $show_minutes \ - */ - public function get_show_minutes() { + * Get Show Minutes? \ + * Determines the display format for the counter. If true then the format is mm:ss, if false only the seconds are displayed + * . \ + * + * @return boolean $show_minutes \ + */ + public function get_show_minutes() + { return $this->show_minutes; } /** - * Set Show Minutes? \ - * Determines the display format for the counter. If true then the format is mm:ss, if false only the seconds are displayed - . \ - * @param boolean $show_minutes \ - */ - public function set_show_minutes ($show_minutes) { + * Set Show Minutes? \ + * Determines the display format for the counter. If true then the format is mm:ss, if false only the seconds are displayed + * . \ + * + * @param boolean $show_minutes \ + */ + public function set_show_minutes($show_minutes) + { $this->show_minutes = $show_minutes; } - - public function get_widget_type() { - return 'feature'; + + public function get_widget_type() + { + return 'feature'; } } diff --git a/src/Entities/QuestionTypes/custom.php b/src/Entities/QuestionTypes/custom.php index 41c63448..fdeb5fb4 100644 --- a/src/Entities/QuestionTypes/custom.php +++ b/src/Entities/QuestionTypes/custom.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class custom extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class custom extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -19,213 +20,253 @@ class custom extends BaseQuestionType { protected $js; protected $css; protected $version; - + public function __construct( - $type, - $custom_type, - $js, - $version - ) - { - $this->type = $type; - $this->custom_type = $custom_type; - $this->js = $js; - $this->version = $version; - } - - /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + $type, + $custom_type, + $js, + $version + ) { + $this->type = $type; + $this->custom_type = $custom_type; + $this->js = $js; + $this->version = $version; + } + + /** + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return custom_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return custom_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param custom_metadata $metadata \ - */ - public function set_metadata (custom_metadata $metadata) { + * Set metadata \ + * \ + * + * @param custom_metadata $metadata \ + */ + public function set_metadata(custom_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return custom_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return custom_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param custom_ui_style $ui_style \ - */ - public function set_ui_style (custom_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param custom_ui_style $ui_style \ + */ + public function set_ui_style(custom_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Custom type \ - * A key that identifies this custom type. \ - * @return string $custom_type \ - */ - public function get_custom_type() { + * Get Custom type \ + * A key that identifies this custom type. \ + * + * @return string $custom_type \ + */ + public function get_custom_type() + { return $this->custom_type; } /** - * Set Custom type \ - * A key that identifies this custom type. \ - * @param string $custom_type \ - */ - public function set_custom_type ($custom_type) { + * Set Custom type \ + * A key that identifies this custom type. \ + * + * @param string $custom_type \ + */ + public function set_custom_type($custom_type) + { $this->custom_type = $custom_type; } /** - * Get JavaScript file \ - * A URL to a JavaScript file which defines an AMD module for the question. See this knowledgebase article for more information. \ - * @return string $js \ - */ - public function get_js() { + * Get JavaScript file \ + * A URL to a JavaScript file which defines an AMD module for the question. See this knowledgebase article for more information. \ + * + * @return string $js \ + */ + public function get_js() + { return $this->js; } /** - * Set JavaScript file \ - * A URL to a JavaScript file which defines an AMD module for the question. See this knowledgebase article for more information. \ - * @param string $js \ - */ - public function set_js ($js) { + * Set JavaScript file \ + * A URL to a JavaScript file which defines an AMD module for the question. See this knowledgebase article for more information. \ + * + * @param string $js \ + */ + public function set_js($js) + { $this->js = $js; } /** - * Get CSS file \ - * A URL to a CSS file containing styles for the question. \ - * @return string $css \ - */ - public function get_css() { + * Get CSS file \ + * A URL to a CSS file containing styles for the question. \ + * + * @return string $css \ + */ + public function get_css() + { return $this->css; } /** - * Set CSS file \ - * A URL to a CSS file containing styles for the question. \ - * @param string $css \ - */ - public function set_css ($css) { + * Set CSS file \ + * A URL to a CSS file containing styles for the question. \ + * + * @param string $css \ + */ + public function set_css($css) + { $this->css = $css; } /** - * Get Version \ - * A number that identifies the version of the question e.g. v0.1.0. \ - * @return string $version \ - */ - public function get_version() { + * Get Version \ + * A number that identifies the version of the question e.g. v0.1.0. \ + * + * @return string $version \ + */ + public function get_version() + { return $this->version; } /** - * Set Version \ - * A number that identifies the version of the question e.g. v0.1.0. \ - * @param string $version \ - */ - public function set_version ($version) { + * Set Version \ + * A number that identifies the version of the question e.g. v0.1.0. \ + * + * @param string $version \ + */ + public function set_version($version) + { $this->version = $version; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/custom_metadata.php b/src/Entities/QuestionTypes/custom_metadata.php index eb99b1af..af8fbf51 100644 --- a/src/Entities/QuestionTypes/custom_metadata.php +++ b/src/Entities/QuestionTypes/custom_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class custom_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class custom_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/custom_ui_style.php b/src/Entities/QuestionTypes/custom_ui_style.php index 2b977cfc..2c468848 100644 --- a/src/Entities/QuestionTypes/custom_ui_style.php +++ b/src/Entities/QuestionTypes/custom_ui_style.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class custom_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class custom_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/formula.php b/src/Entities/QuestionTypes/formula.php index e3020003..fdaa9799 100644 --- a/src/Entities/QuestionTypes/formula.php +++ b/src/Entities/QuestionTypes/formula.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -23,283 +24,339 @@ class formula extends BaseQuestionType { protected $symbols_keyboard; protected $response_container; protected $response_containers; - + public function __construct( - $type - ) - { - $this->type = $type; - } + $type + ) { + $this->type = $type; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return formula_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return formula_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param formula_metadata $metadata \ - */ - public function set_metadata (formula_metadata $metadata) { + * Set metadata \ + * \ + * + * @param formula_metadata $metadata \ + */ + public function set_metadata(formula_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return formula_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return formula_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param formula_ui_style $ui_style \ - */ - public function set_ui_style (formula_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param formula_ui_style $ui_style \ + */ + public function set_ui_style(formula_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return formula_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return formula_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param formula_validation $validation \ - */ - public function set_validation (formula_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param formula_validation $validation \ + */ + public function set_validation(formula_validation $validation) + { $this->validation = $validation; } /** - * Get Latex / Template Markup \ - * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. - If present, only the {{response}} areas will be editable. \ - * @return string $template \ - */ - public function get_template() { + * Get Latex / Template Markup \ + * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. + * If present, only the {{response}} areas will be editable. \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Latex / Template Markup \ - * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. - If present, only the {{response}} areas will be editable. \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Latex / Template Markup \ + * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. + * If present, only the {{response}} areas will be editable. \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Math symbols \ - * Custom symbols to appear in the math symbol toolbars (or keyboard on touch devices). The first item in each group is vis - ible in the main toolbar. On hover, the other items are shown in a sub-toolbar. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Math symbols \ + * Custom symbols to appear in the math symbol toolbars (or keyboard on touch devices). The first item in each group is vis + * ible in the main toolbar. On hover, the other items are shown in a sub-toolbar. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Math symbols \ - * Custom symbols to appear in the math symbol toolbars (or keyboard on touch devices). The first item in each group is vis - ible in the main toolbar. On hover, the other items are shown in a sub-toolbar. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Math symbols \ + * Custom symbols to appear in the math symbol toolbars (or keyboard on touch devices). The first item in each group is vis + * ible in the main toolbar. On hover, the other items are shown in a sub-toolbar. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } /** - * Get Math symbols (keyboard) \ - * Custom symbols to appear in the math symbols keyboard on touch devices. \ - * @return array $symbols_keyboard \ - */ - public function get_symbols_keyboard() { + * Get Math symbols (keyboard) \ + * Custom symbols to appear in the math symbols keyboard on touch devices. \ + * + * @return array $symbols_keyboard \ + */ + public function get_symbols_keyboard() + { return $this->symbols_keyboard; } /** - * Set Math symbols (keyboard) \ - * Custom symbols to appear in the math symbols keyboard on touch devices. \ - * @param array $symbols_keyboard \ - */ - public function set_symbols_keyboard (array $symbols_keyboard) { + * Set Math symbols (keyboard) \ + * Custom symbols to appear in the math symbols keyboard on touch devices. \ + * + * @param array $symbols_keyboard \ + */ + public function set_symbols_keyboard(array $symbols_keyboard) + { $this->symbols_keyboard = $symbols_keyboard; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return formula_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return formula_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param formula_response_container $response_container \ - */ - public function set_response_container (formula_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param formula_response_container $response_container \ + */ + public function set_response_container(formula_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/formulaV2.php b/src/Entities/QuestionTypes/formulaV2.php index 91ad9eba..1b3ef683 100644 --- a/src/Entities/QuestionTypes/formulaV2.php +++ b/src/Entities/QuestionTypes/formulaV2.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2 extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2 extends BaseQuestionType +{ protected $handwriting_recognises; protected $is_math; protected $metadata; @@ -26,339 +27,407 @@ class formulaV2 extends BaseQuestionType { protected $symbols; protected $response_container; protected $response_containers; - + public function __construct( - $type, - formulaV2_ui_style $ui_style - ) - { - $this->type = $type; - $this->ui_style = $ui_style; - } + $type, + formulaV2_ui_style $ui_style + ) { + $this->type = $type; + $this->ui_style = $ui_style; + } /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return formulaV2_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return formulaV2_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param formulaV2_metadata $metadata \ - */ - public function set_metadata (formulaV2_metadata $metadata) { + * Set metadata \ + * \ + * + * @param formulaV2_metadata $metadata \ + */ + public function set_metadata(formulaV2_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return formulaV2_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return formulaV2_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param formulaV2_ui_style $ui_style \ - */ - public function set_ui_style (formulaV2_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param formulaV2_ui_style $ui_style \ + */ + public function set_ui_style(formulaV2_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return formulaV2_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return formulaV2_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param formulaV2_validation $validation \ - */ - public function set_validation (formulaV2_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param formulaV2_validation $validation \ + */ + public function set_validation(formulaV2_validation $validation) + { $this->validation = $validation; } /** - * Get Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @return array $text_blocks \ - */ - public function get_text_blocks() { + * Get Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @return array $text_blocks \ + */ + public function get_text_blocks() + { return $this->text_blocks; } /** - * Set Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @param array $text_blocks \ - */ - public function set_text_blocks (array $text_blocks) { + * Set Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @param array $text_blocks \ + */ + public function set_text_blocks(array $text_blocks) + { $this->text_blocks = $text_blocks; } /** - * Get Latex / Template Markup \ - * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. - If present, only the {{response}} areas will be editable. \ - * @return string $template \ - */ - public function get_template() { + * Get Latex / Template Markup \ + * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. + * If present, only the {{response}} areas will be editable. \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Latex / Template Markup \ - * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. - If present, only the {{response}} areas will be editable. \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Latex / Template Markup \ + * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. + * If present, only the {{response}} areas will be editable. \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Custom Number Pad \ - * \ - * @return array $numberPad \ - */ - public function get_numberPad() { + * Get Custom Number Pad \ + * \ + * + * @return array $numberPad \ + */ + public function get_numberPad() + { return $this->numberPad; } /** - * Set Custom Number Pad \ - * \ - * @param array $numberPad \ - */ - public function set_numberPad (array $numberPad) { + * Set Custom Number Pad \ + * \ + * + * @param array $numberPad \ + */ + public function set_numberPad(array $numberPad) + { $this->numberPad = $numberPad; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return formulaV2_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return formulaV2_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param formulaV2_response_container $response_container \ - */ - public function set_response_container (formulaV2_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param formulaV2_response_container $response_container \ + */ + public function set_response_container(formulaV2_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/formulaV2_metadata.php b/src/Entities/QuestionTypes/formulaV2_metadata.php index 0189bc9c..9cd9b0b1 100644 --- a/src/Entities/QuestionTypes/formulaV2_metadata.php +++ b/src/Entities/QuestionTypes/formulaV2_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/formulaV2_response_container.php b/src/Entities/QuestionTypes/formulaV2_response_container.php index 287b8ca7..22b297cf 100644 --- a/src/Entities/QuestionTypes/formulaV2_response_container.php +++ b/src/Entities/QuestionTypes/formulaV2_response_container.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2_response_container extends BaseQuestionTypeAttribute +{ protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/formulaV2_response_containers_item.php b/src/Entities/QuestionTypes/formulaV2_response_containers_item.php index 1d4363cf..2620eb21 100644 --- a/src/Entities/QuestionTypes/formulaV2_response_containers_item.php +++ b/src/Entities/QuestionTypes/formulaV2_response_containers_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2_response_containers_item extends BaseQuestionTypeAttribute +{ protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/formulaV2_ui_style.php b/src/Entities/QuestionTypes/formulaV2_ui_style.php index 5e69f003..17902915 100644 --- a/src/Entities/QuestionTypes/formulaV2_ui_style.php +++ b/src/Entities/QuestionTypes/formulaV2_ui_style.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $response_font_scale; protected $type; protected $min_width; protected $transparent_background; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Response font scale \ - * This scales the font relative to the question's font size. \ - * @return string $response_font_scale \ - */ - public function get_response_font_scale() { + * Get Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @return string $response_font_scale \ + */ + public function get_response_font_scale() + { return $this->response_font_scale; } /** - * Set Response font scale \ - * This scales the font relative to the question's font size. \ - * @param string $response_font_scale \ - */ - public function set_response_font_scale ($response_font_scale) { + * Set Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @param string $response_font_scale \ + */ + public function set_response_font_scale($response_font_scale) + { $this->response_font_scale = $response_font_scale; } /** - * Get Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @return string $min_width \ - */ - public function get_min_width() { + * Get Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @return string $min_width \ + */ + public function get_min_width() + { return $this->min_width; } /** - * Set Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @param string $min_width \ - */ - public function set_min_width ($min_width) { + * Set Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @param string $min_width \ + */ + public function set_min_width($min_width) + { $this->min_width = $min_width; } /** - * Get Transparent background \ - * Determines whether the area housing nested response areas should be transparent \ - * @return boolean $transparent_background \ - */ - public function get_transparent_background() { + * Get Transparent background \ + * Determines whether the area housing nested response areas should be transparent \ + * + * @return boolean $transparent_background \ + */ + public function get_transparent_background() + { return $this->transparent_background; } /** - * Set Transparent background \ - * Determines whether the area housing nested response areas should be transparent \ - * @param boolean $transparent_background \ - */ - public function set_transparent_background ($transparent_background) { + * Set Transparent background \ + * Determines whether the area housing nested response areas should be transparent \ + * + * @param boolean $transparent_background \ + */ + public function set_transparent_background($transparent_background) + { $this->transparent_background = $transparent_background; } - + } diff --git a/src/Entities/QuestionTypes/formulaV2_validation.php b/src/Entities/QuestionTypes/formulaV2_validation.php index 8c6b2db7..f516d163 100644 --- a/src/Entities/QuestionTypes/formulaV2_validation.php +++ b/src/Entities/QuestionTypes/formulaV2_validation.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return formulaV2_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return formulaV2_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param formulaV2_validation_valid_response $valid_response \ - */ - public function set_valid_response (formulaV2_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param formulaV2_validation_valid_response $valid_response \ + */ + public function set_valid_response(formulaV2_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/formulaV2_validation_alt_responses_item.php b/src/Entities/QuestionTypes/formulaV2_validation_alt_responses_item.php index 1430df51..54d90bb4 100644 --- a/src/Entities/QuestionTypes/formulaV2_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/formulaV2_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array of objects containing the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array of objects containing the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array of objects containing the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array of objects containing the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/formulaV2_validation_alt_responses_item_value_item.php b/src/Entities/QuestionTypes/formulaV2_validation_alt_responses_item_value_item.php index c32cd361..f2fd1b8f 100644 --- a/src/Entities/QuestionTypes/formulaV2_validation_alt_responses_item_value_item.php +++ b/src/Entities/QuestionTypes/formulaV2_validation_alt_responses_item_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute +{ protected $method; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Method \ - * The method used to compare user input against the valid response value. \ - * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function get_method() { + * Get Method \ + * The method used to compare user input against the valid response value. \ + * + * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function get_method() + { return $this->method; } /** - * Set Method \ - * The method used to compare user input against the valid response value. \ - * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function set_method ($method) { + * Set Method \ + * The method used to compare user input against the valid response value. \ + * + * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function set_method($method) + { $this->method = $method; } - + } diff --git a/src/Entities/QuestionTypes/formulaV2_validation_valid_response.php b/src/Entities/QuestionTypes/formulaV2_validation_valid_response.php index 6755b368..6eaa214f 100644 --- a/src/Entities/QuestionTypes/formulaV2_validation_valid_response.php +++ b/src/Entities/QuestionTypes/formulaV2_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array of objects containing the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array of objects containing the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array of objects containing the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array of objects containing the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/formulaV2_validation_valid_response_value_item.php b/src/Entities/QuestionTypes/formulaV2_validation_valid_response_value_item.php index a0a6eb4d..8bef05be 100644 --- a/src/Entities/QuestionTypes/formulaV2_validation_valid_response_value_item.php +++ b/src/Entities/QuestionTypes/formulaV2_validation_valid_response_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaV2_validation_valid_response_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaV2_validation_valid_response_value_item extends BaseQuestionTypeAttribute +{ protected $method; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Method \ - * The method used to compare user input against the valid response value. \ - * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function get_method() { + * Get Method \ + * The method used to compare user input against the valid response value. \ + * + * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function get_method() + { return $this->method; } /** - * Set Method \ - * The method used to compare user input against the valid response value. \ - * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function set_method ($method) { + * Set Method \ + * The method used to compare user input against the valid response value. \ + * + * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function set_method($method) + { $this->method = $method; } - + } diff --git a/src/Entities/QuestionTypes/formula_dev.php b/src/Entities/QuestionTypes/formula_dev.php index 62442043..88bcee6a 100644 --- a/src/Entities/QuestionTypes/formula_dev.php +++ b/src/Entities/QuestionTypes/formula_dev.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev extends BaseQuestionType +{ protected $handwriting_recognises; protected $is_math; protected $metadata; @@ -26,339 +27,407 @@ class formula_dev extends BaseQuestionType { protected $symbols; protected $response_container; protected $response_containers; - + public function __construct( - $type, - formula_dev_ui_style $ui_style - ) - { - $this->type = $type; - $this->ui_style = $ui_style; - } + $type, + formula_dev_ui_style $ui_style + ) { + $this->type = $type; + $this->ui_style = $ui_style; + } /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return formula_dev_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return formula_dev_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param formula_dev_metadata $metadata \ - */ - public function set_metadata (formula_dev_metadata $metadata) { + * Set metadata \ + * \ + * + * @param formula_dev_metadata $metadata \ + */ + public function set_metadata(formula_dev_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return formula_dev_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return formula_dev_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param formula_dev_ui_style $ui_style \ - */ - public function set_ui_style (formula_dev_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param formula_dev_ui_style $ui_style \ + */ + public function set_ui_style(formula_dev_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return formula_dev_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return formula_dev_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param formula_dev_validation $validation \ - */ - public function set_validation (formula_dev_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param formula_dev_validation $validation \ + */ + public function set_validation(formula_dev_validation $validation) + { $this->validation = $validation; } /** - * Get Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @return array $text_blocks \ - */ - public function get_text_blocks() { + * Get Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @return array $text_blocks \ + */ + public function get_text_blocks() + { return $this->text_blocks; } /** - * Set Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @param array $text_blocks \ - */ - public function set_text_blocks (array $text_blocks) { + * Set Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @param array $text_blocks \ + */ + public function set_text_blocks(array $text_blocks) + { $this->text_blocks = $text_blocks; } /** - * Get Latex / Template Markup \ - * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. - If present, only the {{response}} areas will be editable. \ - * @return string $template \ - */ - public function get_template() { + * Get Latex / Template Markup \ + * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. + * If present, only the {{response}} areas will be editable. \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Latex / Template Markup \ - * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. - If present, only the {{response}} areas will be editable. \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Latex / Template Markup \ + * A string containing latex math to be rendered on initialisation. The template markup tag {{response}} is also supported. + * If present, only the {{response}} areas will be editable. \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Custom Number Pad \ - * \ - * @return array $numberPad \ - */ - public function get_numberPad() { + * Get Custom Number Pad \ + * \ + * + * @return array $numberPad \ + */ + public function get_numberPad() + { return $this->numberPad; } /** - * Set Custom Number Pad \ - * \ - * @param array $numberPad \ - */ - public function set_numberPad (array $numberPad) { + * Set Custom Number Pad \ + * \ + * + * @param array $numberPad \ + */ + public function set_numberPad(array $numberPad) + { $this->numberPad = $numberPad; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return formula_dev_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return formula_dev_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param formula_dev_response_container $response_container \ - */ - public function set_response_container (formula_dev_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param formula_dev_response_container $response_container \ + */ + public function set_response_container(formula_dev_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/formula_dev_metadata.php b/src/Entities/QuestionTypes/formula_dev_metadata.php index 0b58cf09..93ea1403 100644 --- a/src/Entities/QuestionTypes/formula_dev_metadata.php +++ b/src/Entities/QuestionTypes/formula_dev_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/formula_dev_response_container.php b/src/Entities/QuestionTypes/formula_dev_response_container.php index 908c316f..b55975a6 100644 --- a/src/Entities/QuestionTypes/formula_dev_response_container.php +++ b/src/Entities/QuestionTypes/formula_dev_response_container.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev_response_container extends BaseQuestionTypeAttribute +{ protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/formula_dev_response_containers_item.php b/src/Entities/QuestionTypes/formula_dev_response_containers_item.php index 91df9262..c71cd6fd 100644 --- a/src/Entities/QuestionTypes/formula_dev_response_containers_item.php +++ b/src/Entities/QuestionTypes/formula_dev_response_containers_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev_response_containers_item extends BaseQuestionTypeAttribute +{ protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/formula_dev_ui_style.php b/src/Entities/QuestionTypes/formula_dev_ui_style.php index cd0ce543..0f9ed3d0 100644 --- a/src/Entities/QuestionTypes/formula_dev_ui_style.php +++ b/src/Entities/QuestionTypes/formula_dev_ui_style.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $response_font_scale; protected $type; protected $min_width; protected $transparent_background; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Response font scale \ - * This scales the font relative to the question's font size. \ - * @return string $response_font_scale \ - */ - public function get_response_font_scale() { + * Get Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @return string $response_font_scale \ + */ + public function get_response_font_scale() + { return $this->response_font_scale; } /** - * Set Response font scale \ - * This scales the font relative to the question's font size. \ - * @param string $response_font_scale \ - */ - public function set_response_font_scale ($response_font_scale) { + * Set Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @param string $response_font_scale \ + */ + public function set_response_font_scale($response_font_scale) + { $this->response_font_scale = $response_font_scale; } /** - * Get Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @return string $min_width \ - */ - public function get_min_width() { + * Get Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @return string $min_width \ + */ + public function get_min_width() + { return $this->min_width; } /** - * Set Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @param string $min_width \ - */ - public function set_min_width ($min_width) { + * Set Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @param string $min_width \ + */ + public function set_min_width($min_width) + { $this->min_width = $min_width; } /** - * Get Transparent background \ - * Determines whether the area housing nested response areas should be transparent \ - * @return boolean $transparent_background \ - */ - public function get_transparent_background() { + * Get Transparent background \ + * Determines whether the area housing nested response areas should be transparent \ + * + * @return boolean $transparent_background \ + */ + public function get_transparent_background() + { return $this->transparent_background; } /** - * Set Transparent background \ - * Determines whether the area housing nested response areas should be transparent \ - * @param boolean $transparent_background \ - */ - public function set_transparent_background ($transparent_background) { + * Set Transparent background \ + * Determines whether the area housing nested response areas should be transparent \ + * + * @param boolean $transparent_background \ + */ + public function set_transparent_background($transparent_background) + { $this->transparent_background = $transparent_background; } - + } diff --git a/src/Entities/QuestionTypes/formula_dev_validation.php b/src/Entities/QuestionTypes/formula_dev_validation.php index 98058251..a941d726 100644 --- a/src/Entities/QuestionTypes/formula_dev_validation.php +++ b/src/Entities/QuestionTypes/formula_dev_validation.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return formula_dev_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return formula_dev_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param formula_dev_validation_valid_response $valid_response \ - */ - public function set_valid_response (formula_dev_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param formula_dev_validation_valid_response $valid_response \ + */ + public function set_valid_response(formula_dev_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/formula_dev_validation_alt_responses_item.php b/src/Entities/QuestionTypes/formula_dev_validation_alt_responses_item.php index ed2c55c6..d9ab6d99 100644 --- a/src/Entities/QuestionTypes/formula_dev_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/formula_dev_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array of objects containing the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array of objects containing the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array of objects containing the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array of objects containing the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/formula_dev_validation_alt_responses_item_value_item.php b/src/Entities/QuestionTypes/formula_dev_validation_alt_responses_item_value_item.php index dd806718..7640ffea 100644 --- a/src/Entities/QuestionTypes/formula_dev_validation_alt_responses_item_value_item.php +++ b/src/Entities/QuestionTypes/formula_dev_validation_alt_responses_item_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute +{ protected $method; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Method \ - * The method used to compare user input against the valid response value. \ - * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function get_method() { + * Get Method \ + * The method used to compare user input against the valid response value. \ + * + * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function get_method() + { return $this->method; } /** - * Set Method \ - * The method used to compare user input against the valid response value. \ - * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function set_method ($method) { + * Set Method \ + * The method used to compare user input against the valid response value. \ + * + * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function set_method($method) + { $this->method = $method; } - + } diff --git a/src/Entities/QuestionTypes/formula_dev_validation_valid_response.php b/src/Entities/QuestionTypes/formula_dev_validation_valid_response.php index cbfca35e..4f74cfad 100644 --- a/src/Entities/QuestionTypes/formula_dev_validation_valid_response.php +++ b/src/Entities/QuestionTypes/formula_dev_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array of objects containing the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array of objects containing the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array of objects containing the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array of objects containing the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/formula_dev_validation_valid_response_value_item.php b/src/Entities/QuestionTypes/formula_dev_validation_valid_response_value_item.php index 4c206f8d..c9c45d3f 100644 --- a/src/Entities/QuestionTypes/formula_dev_validation_valid_response_value_item.php +++ b/src/Entities/QuestionTypes/formula_dev_validation_valid_response_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_dev_validation_valid_response_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_dev_validation_valid_response_value_item extends BaseQuestionTypeAttribute +{ protected $method; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Method \ - * The method used to compare user input against the valid response value. \ - * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function get_method() { + * Get Method \ + * The method used to compare user input against the valid response value. \ + * + * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function get_method() + { return $this->method; } /** - * Set Method \ - * The method used to compare user input against the valid response value. \ - * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function set_method ($method) { + * Set Method \ + * The method used to compare user input against the valid response value. \ + * + * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function set_method($method) + { $this->method = $method; } - + } diff --git a/src/Entities/QuestionTypes/formula_metadata.php b/src/Entities/QuestionTypes/formula_metadata.php index 1507727a..e5a353fc 100644 --- a/src/Entities/QuestionTypes/formula_metadata.php +++ b/src/Entities/QuestionTypes/formula_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/formula_response_container.php b/src/Entities/QuestionTypes/formula_response_container.php index 9a3778ed..18560b8d 100644 --- a/src/Entities/QuestionTypes/formula_response_container.php +++ b/src/Entities/QuestionTypes/formula_response_container.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_response_container extends BaseQuestionTypeAttribute +{ protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/formula_response_containers_item.php b/src/Entities/QuestionTypes/formula_response_containers_item.php index 699364dd..80bfa595 100644 --- a/src/Entities/QuestionTypes/formula_response_containers_item.php +++ b/src/Entities/QuestionTypes/formula_response_containers_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_response_containers_item extends BaseQuestionTypeAttribute +{ protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/formula_symbols_item.php b/src/Entities/QuestionTypes/formula_symbols_item.php index f96f615a..49dccb7e 100644 --- a/src/Entities/QuestionTypes/formula_symbols_item.php +++ b/src/Entities/QuestionTypes/formula_symbols_item.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_symbols_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_symbols_item extends BaseQuestionTypeAttribute +{ protected $symbol; protected $group; protected $title; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Symbol \ - * Latex symbol \ - * @return string $symbol \ - */ - public function get_symbol() { + * Get Symbol \ + * Latex symbol \ + * + * @return string $symbol \ + */ + public function get_symbol() + { return $this->symbol; } /** - * Set Symbol \ - * Latex symbol \ - * @param string $symbol \ - */ - public function set_symbol ($symbol) { + * Set Symbol \ + * Latex symbol \ + * + * @param string $symbol \ + */ + public function set_symbol($symbol) + { $this->symbol = $symbol; } /** - * Get Group \ - * Determines which toolbar the symbol appears in \ - * @return string $group \ - */ - public function get_group() { + * Get Group \ + * Determines which toolbar the symbol appears in \ + * + * @return string $group \ + */ + public function get_group() + { return $this->group; } /** - * Set Group \ - * Determines which toolbar the symbol appears in \ - * @param string $group \ - */ - public function set_group ($group) { + * Set Group \ + * Determines which toolbar the symbol appears in \ + * + * @param string $group \ + */ + public function set_group($group) + { $this->group = $group; } /** - * Get Title \ - * Symbol title (optional) \ - * @return string $title \ - */ - public function get_title() { + * Get Title \ + * Symbol title (optional) \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Title \ - * Symbol title (optional) \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Title \ + * Symbol title (optional) \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } - + } diff --git a/src/Entities/QuestionTypes/formula_symbols_keyboard_item.php b/src/Entities/QuestionTypes/formula_symbols_keyboard_item.php index 8b6b95de..0c1553bd 100644 --- a/src/Entities/QuestionTypes/formula_symbols_keyboard_item.php +++ b/src/Entities/QuestionTypes/formula_symbols_keyboard_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_symbols_keyboard_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_symbols_keyboard_item extends BaseQuestionTypeAttribute +{ protected $symbol; protected $title; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Symbol \ - * Latex symbol \ - * @return string $symbol \ - */ - public function get_symbol() { + * Get Symbol \ + * Latex symbol \ + * + * @return string $symbol \ + */ + public function get_symbol() + { return $this->symbol; } /** - * Set Symbol \ - * Latex symbol \ - * @param string $symbol \ - */ - public function set_symbol ($symbol) { + * Set Symbol \ + * Latex symbol \ + * + * @param string $symbol \ + */ + public function set_symbol($symbol) + { $this->symbol = $symbol; } /** - * Get Title \ - * Symbol title (optional) \ - * @return string $title \ - */ - public function get_title() { + * Get Title \ + * Symbol title (optional) \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Title \ - * Symbol title (optional) \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Title \ + * Symbol title (optional) \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } - + } diff --git a/src/Entities/QuestionTypes/formula_ui_style.php b/src/Entities/QuestionTypes/formula_ui_style.php index b337be94..517956fc 100644 --- a/src/Entities/QuestionTypes/formula_ui_style.php +++ b/src/Entities/QuestionTypes/formula_ui_style.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/formula_validation.php b/src/Entities/QuestionTypes/formula_validation.php index 0d1add3b..8c12c414 100644 --- a/src/Entities/QuestionTypes/formula_validation.php +++ b/src/Entities/QuestionTypes/formula_validation.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return formula_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return formula_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param formula_validation_valid_response $valid_response \ - */ - public function set_valid_response (formula_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param formula_validation_valid_response $valid_response \ + */ + public function set_valid_response(formula_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/formula_validation_alt_responses_item.php b/src/Entities/QuestionTypes/formula_validation_alt_responses_item.php index 73964351..e3ea60eb 100644 --- a/src/Entities/QuestionTypes/formula_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/formula_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array of objects containing the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array of objects containing the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array of objects containing the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array of objects containing the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/formula_validation_alt_responses_item_value_item.php b/src/Entities/QuestionTypes/formula_validation_alt_responses_item_value_item.php index be0f007d..a7ccba98 100644 --- a/src/Entities/QuestionTypes/formula_validation_alt_responses_item_value_item.php +++ b/src/Entities/QuestionTypes/formula_validation_alt_responses_item_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute +{ protected $method; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Method \ - * The method used to compare user input against the valid response value. \ - * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function get_method() { + * Get Method \ + * The method used to compare user input against the valid response value. \ + * + * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function get_method() + { return $this->method; } /** - * Set Method \ - * The method used to compare user input against the valid response value. \ - * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function set_method ($method) { + * Set Method \ + * The method used to compare user input against the valid response value. \ + * + * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function set_method($method) + { $this->method = $method; } - + } diff --git a/src/Entities/QuestionTypes/formula_validation_valid_response.php b/src/Entities/QuestionTypes/formula_validation_valid_response.php index 622cb2aa..a61074e0 100644 --- a/src/Entities/QuestionTypes/formula_validation_valid_response.php +++ b/src/Entities/QuestionTypes/formula_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array of objects containing the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array of objects containing the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array of objects containing the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array of objects containing the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/formula_validation_valid_response_value_item.php b/src/Entities/QuestionTypes/formula_validation_valid_response_value_item.php index 6535dda2..497be2fc 100644 --- a/src/Entities/QuestionTypes/formula_validation_valid_response_value_item.php +++ b/src/Entities/QuestionTypes/formula_validation_valid_response_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formula_validation_valid_response_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formula_validation_valid_response_value_item extends BaseQuestionTypeAttribute +{ protected $method; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Method \ - * The method used to compare user input against the valid response value. \ - * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function get_method() { + * Get Method \ + * The method used to compare user input against the valid response value. \ + * + * @return string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function get_method() + { return $this->method; } /** - * Set Method \ - * The method used to compare user input against the valid response value. \ - * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ - */ - public function set_method ($method) { + * Set Method \ + * The method used to compare user input against the valid response value. \ + * + * @param string $method ie. equivSymbolic, equivLiteral, equivValue, isSimplified, isFactorised, isExpanded, isUnit, isTrue, stringMatch, equivSyntax \ + */ + public function set_method($method) + { $this->method = $method; } - + } diff --git a/src/Entities/QuestionTypes/formulaessay.php b/src/Entities/QuestionTypes/formulaessay.php index c243629e..4c73b872 100644 --- a/src/Entities/QuestionTypes/formulaessay.php +++ b/src/Entities/QuestionTypes/formulaessay.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaessay extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaessay extends BaseQuestionType +{ protected $handwriting_recognises; protected $is_math; protected $metadata; @@ -21,245 +22,293 @@ class formulaessay extends BaseQuestionType { protected $showHints; protected $numberPad; protected $symbols; - + public function __construct( - $type, - formulaessay_ui_style $ui_style - ) - { - $this->type = $type; - $this->ui_style = $ui_style; - } + $type, + formulaessay_ui_style $ui_style + ) { + $this->type = $type; + $this->ui_style = $ui_style; + } /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return formulaessay_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return formulaessay_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param formulaessay_metadata $metadata \ - */ - public function set_metadata (formulaessay_metadata $metadata) { + * Set metadata \ + * \ + * + * @param formulaessay_metadata $metadata \ + */ + public function set_metadata(formulaessay_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return formulaessay_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return formulaessay_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param formulaessay_ui_style $ui_style \ - */ - public function set_ui_style (formulaessay_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param formulaessay_ui_style $ui_style \ + */ + public function set_ui_style(formulaessay_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @return formulaessay_validation $validation \ - */ - public function get_validation() { + * Get Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @return formulaessay_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @param formulaessay_validation $validation \ - */ - public function set_validation (formulaessay_validation $validation) { + * Set Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @param formulaessay_validation $validation \ + */ + public function set_validation(formulaessay_validation $validation) + { $this->validation = $validation; } /** - * Get Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @return array $text_blocks \ - */ - public function get_text_blocks() { + * Get Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @return array $text_blocks \ + */ + public function get_text_blocks() + { return $this->text_blocks; } /** - * Set Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @param array $text_blocks \ - */ - public function set_text_blocks (array $text_blocks) { + * Set Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @param array $text_blocks \ + */ + public function set_text_blocks(array $text_blocks) + { $this->text_blocks = $text_blocks; } /** - * Get Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Custom Number Pad \ - * \ - * @return array $numberPad \ - */ - public function get_numberPad() { + * Get Custom Number Pad \ + * \ + * + * @return array $numberPad \ + */ + public function get_numberPad() + { return $this->numberPad; } /** - * Set Custom Number Pad \ - * \ - * @param array $numberPad \ - */ - public function set_numberPad (array $numberPad) { + * Set Custom Number Pad \ + * \ + * + * @param array $numberPad \ + */ + public function set_numberPad(array $numberPad) + { $this->numberPad = $numberPad; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/formulaessay_metadata.php b/src/Entities/QuestionTypes/formulaessay_metadata.php index 3d3e93ce..b7930da8 100644 --- a/src/Entities/QuestionTypes/formulaessay_metadata.php +++ b/src/Entities/QuestionTypes/formulaessay_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaessay_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaessay_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/formulaessay_ui_style.php b/src/Entities/QuestionTypes/formulaessay_ui_style.php index 0a143811..b69d2491 100644 --- a/src/Entities/QuestionTypes/formulaessay_ui_style.php +++ b/src/Entities/QuestionTypes/formulaessay_ui_style.php @@ -5,132 +5,156 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaessay_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaessay_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $response_font_scale; protected $default_mode; protected $max_lines; protected $text_formatting_options; protected $keyboard_below_response_area; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Response font scale \ - * This scales the font relative to the question's font size. \ - * @return string $response_font_scale \ - */ - public function get_response_font_scale() { + * Get Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @return string $response_font_scale \ + */ + public function get_response_font_scale() + { return $this->response_font_scale; } /** - * Set Response font scale \ - * This scales the font relative to the question's font size. \ - * @param string $response_font_scale \ - */ - public function set_response_font_scale ($response_font_scale) { + * Set Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @param string $response_font_scale \ + */ + public function set_response_font_scale($response_font_scale) + { $this->response_font_scale = $response_font_scale; } /** - * Get Default mode \ - * The default mode of the first line when question is first focused \ - * @return string $default_mode \ - */ - public function get_default_mode() { + * Get Default mode \ + * The default mode of the first line when question is first focused \ + * + * @return string $default_mode \ + */ + public function get_default_mode() + { return $this->default_mode; } /** - * Set Default mode \ - * The default mode of the first line when question is first focused \ - * @param string $default_mode \ - */ - public function set_default_mode ($default_mode) { + * Set Default mode \ + * The default mode of the first line when question is first focused \ + * + * @param string $default_mode \ + */ + public function set_default_mode($default_mode) + { $this->default_mode = $default_mode; } /** - * Get Maximum lines \ - * Limits the number of lines of text / math that can be entered. \ - * @return number $max_lines \ - */ - public function get_max_lines() { + * Get Maximum lines \ + * Limits the number of lines of text / math that can be entered. \ + * + * @return number $max_lines \ + */ + public function get_max_lines() + { return $this->max_lines; } /** - * Set Maximum lines \ - * Limits the number of lines of text / math that can be entered. \ - * @param number $max_lines \ - */ - public function set_max_lines ($max_lines) { + * Set Maximum lines \ + * Limits the number of lines of text / math that can be entered. \ + * + * @param number $max_lines \ + */ + public function set_max_lines($max_lines) + { $this->max_lines = $max_lines; } /** - * Get Text Formatting Options \ - * An array containing strings of text formatting options to make available. \ - * @return array $text_formatting_options \ - */ - public function get_text_formatting_options() { + * Get Text Formatting Options \ + * An array containing strings of text formatting options to make available. \ + * + * @return array $text_formatting_options \ + */ + public function get_text_formatting_options() + { return $this->text_formatting_options; } /** - * Set Text Formatting Options \ - * An array containing strings of text formatting options to make available. \ - * @param array $text_formatting_options \ - */ - public function set_text_formatting_options (array $text_formatting_options) { + * Set Text Formatting Options \ + * An array containing strings of text formatting options to make available. \ + * + * @param array $text_formatting_options \ + */ + public function set_text_formatting_options(array $text_formatting_options) + { $this->text_formatting_options = $text_formatting_options; } /** - * Get Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @return boolean $keyboard_below_response_area \ - */ - public function get_keyboard_below_response_area() { + * Get Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @return boolean $keyboard_below_response_area \ + */ + public function get_keyboard_below_response_area() + { return $this->keyboard_below_response_area; } /** - * Set Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @param boolean $keyboard_below_response_area \ - */ - public function set_keyboard_below_response_area ($keyboard_below_response_area) { + * Set Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @param boolean $keyboard_below_response_area \ + */ + public function set_keyboard_below_response_area($keyboard_below_response_area) + { $this->keyboard_below_response_area = $keyboard_below_response_area; } - + } diff --git a/src/Entities/QuestionTypes/formulaessay_validation.php b/src/Entities/QuestionTypes/formulaessay_validation.php index d5adc0d7..d5949ba9 100644 --- a/src/Entities/QuestionTypes/formulaessay_validation.php +++ b/src/Entities/QuestionTypes/formulaessay_validation.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulaessay_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulaessay_validation extends BaseQuestionTypeAttribute +{ protected $max_score; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Max Score \ - * The highest score a marker can award to this question response. \ - * @return number $max_score \ - */ - public function get_max_score() { + * Get Max Score \ + * The highest score a marker can award to this question response. \ + * + * @return number $max_score \ + */ + public function get_max_score() + { return $this->max_score; } /** - * Set Max Score \ - * The highest score a marker can award to this question response. \ - * @param number $max_score \ - */ - public function set_max_score ($max_score) { + * Set Max Score \ + * The highest score a marker can award to this question response. \ + * + * @param number $max_score \ + */ + public function set_max_score($max_score) + { $this->max_score = $max_score; } - + } diff --git a/src/Entities/QuestionTypes/formulainput.php b/src/Entities/QuestionTypes/formulainput.php index f95817ff..31293a3f 100644 --- a/src/Entities/QuestionTypes/formulainput.php +++ b/src/Entities/QuestionTypes/formulainput.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulainput extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulainput extends BaseQuestionType +{ protected $type; protected $metadata; protected $handwriting_recognises; @@ -18,181 +19,217 @@ class formulainput extends BaseQuestionType { protected $container; protected $ui_style; protected $input; - + public function __construct( - $type, - formulainput_ui_style $ui_style - ) - { - $this->type = $type; - $this->ui_style = $ui_style; - } + $type, + formulainput_ui_style $ui_style + ) { + $this->type = $type; + $this->ui_style = $ui_style; + } /** - * Get Feature Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Feature Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Feature Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Feature Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get metadata \ - * \ - * @return object $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return object $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param object $metadata \ - */ - public function set_metadata ($metadata) { + * Set metadata \ + * \ + * + * @param object $metadata \ + */ + public function set_metadata($metadata) + { $this->metadata = $metadata; } /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Show Hints \ - * Whether to show hints or not \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Whether to show hints or not \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Whether to show hints or not \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Whether to show hints or not \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Initial Value \ - * LaTeX math to display when rendered. \ - * @return string $value \ - */ - public function get_value() { + * Get Initial Value \ + * LaTeX math to display when rendered. \ + * + * @return string $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Initial Value \ - * LaTeX math to display when rendered. \ - * @param string $value \ - */ - public function set_value ($value) { + * Set Initial Value \ + * LaTeX math to display when rendered. \ + * + * @param string $value \ + */ + public function set_value($value) + { $this->value = $value; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } /** - * Get Container (global) \ - * Object that defines styles for the input container. \ - * @return formulainput_container $container \ - */ - public function get_container() { + * Get Container (global) \ + * Object that defines styles for the input container. \ + * + * @return formulainput_container $container \ + */ + public function get_container() + { return $this->container; } /** - * Set Container (global) \ - * Object that defines styles for the input container. \ - * @param formulainput_container $container \ - */ - public function set_container (formulainput_container $container) { + * Set Container (global) \ + * Object that defines styles for the input container. \ + * + * @param formulainput_container $container \ + */ + public function set_container(formulainput_container $container) + { $this->container = $container; } /** - * Get UI Style \ - * Object used to control different aspects of the UI \ - * @return formulainput_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get UI Style \ + * Object used to control different aspects of the UI \ + * + * @return formulainput_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set UI Style \ - * Object used to control different aspects of the UI \ - * @param formulainput_ui_style $ui_style \ - */ - public function set_ui_style (formulainput_ui_style $ui_style) { + * Set UI Style \ + * Object used to control different aspects of the UI \ + * + * @param formulainput_ui_style $ui_style \ + */ + public function set_ui_style(formulainput_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Input selector \ - * CSS selector for input elements which will receive the entered LaTeX math. \ - * @return string $input \ - */ - public function get_input() { + * Get Input selector \ + * CSS selector for input elements which will receive the entered LaTeX math. \ + * + * @return string $input \ + */ + public function get_input() + { return $this->input; } /** - * Set Input selector \ - * CSS selector for input elements which will receive the entered LaTeX math. \ - * @param string $input \ - */ - public function set_input ($input) { + * Set Input selector \ + * CSS selector for input elements which will receive the entered LaTeX math. \ + * + * @param string $input \ + */ + public function set_input($input) + { $this->input = $input; } - - public function get_widget_type() { - return 'feature'; + + public function get_widget_type() + { + return 'feature'; } } diff --git a/src/Entities/QuestionTypes/formulainput_container.php b/src/Entities/QuestionTypes/formulainput_container.php index fdf9d595..2b1a172a 100644 --- a/src/Entities/QuestionTypes/formulainput_container.php +++ b/src/Entities/QuestionTypes/formulainput_container.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulainput_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulainput_container extends BaseQuestionTypeAttribute +{ protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Input height \ - * The height of the input containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Input height \ + * The height of the input containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Input height \ - * The height of the input containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Input height \ + * The height of the input containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Input width \ - * The width of the input containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Input width \ + * The width of the input containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Input width \ - * The width of the input containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Input width \ + * The width of the input containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/formulainput_ui_style.php b/src/Entities/QuestionTypes/formulainput_ui_style.php index 95f65c89..2cf1e247 100644 --- a/src/Entities/QuestionTypes/formulainput_ui_style.php +++ b/src/Entities/QuestionTypes/formulainput_ui_style.php @@ -5,56 +5,64 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class formulainput_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class formulainput_ui_style extends BaseQuestionTypeAttribute +{ protected $type; protected $min_width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Input minimum width \ - * Controls the minimum width of the input area, e.g. 550px \ - * @return string $min_width \ - */ - public function get_min_width() { + * Get Input minimum width \ + * Controls the minimum width of the input area, e.g. 550px \ + * + * @return string $min_width \ + */ + public function get_min_width() + { return $this->min_width; } /** - * Set Input minimum width \ - * Controls the minimum width of the input area, e.g. 550px \ - * @param string $min_width \ - */ - public function set_min_width ($min_width) { + * Set Input minimum width \ + * Controls the minimum width of the input area, e.g. 550px \ + * + * @param string $min_width \ + */ + public function set_min_width($min_width) + { $this->min_width = $min_width; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting.php b/src/Entities/QuestionTypes/graphplotting.php index f4f00417..db37bd13 100644 --- a/src/Entities/QuestionTypes/graphplotting.php +++ b/src/Entities/QuestionTypes/graphplotting.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -30,413 +31,497 @@ class graphplotting extends BaseQuestionType { protected $background_image; protected $display_points; protected $background_shapes; - + public function __construct( - $type - ) - { - $this->type = $type; - } + $type + ) { + $this->type = $type; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return graphplotting_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return graphplotting_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param graphplotting_metadata $metadata \ - */ - public function set_metadata (graphplotting_metadata $metadata) { + * Set metadata \ + * \ + * + * @param graphplotting_metadata $metadata \ + */ + public function set_metadata(graphplotting_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return graphplotting_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return graphplotting_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param graphplotting_ui_style $ui_style \ - */ - public function set_ui_style (graphplotting_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param graphplotting_ui_style $ui_style \ + */ + public function set_ui_style(graphplotting_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return graphplotting_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return graphplotting_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param graphplotting_validation $validation \ - */ - public function set_validation (graphplotting_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param graphplotting_validation $validation \ + */ + public function set_validation(graphplotting_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Mode [Deprecated] \ - * Defines the plotting mode to load. Possible values are: "all", "point", "line" \ - * @return string $mode \ - */ - public function get_mode() { + * Get Mode [Deprecated] \ + * Defines the plotting mode to load. Possible values are: "all", "point", "line" \ + * + * @return string $mode \ + */ + public function get_mode() + { return $this->mode; } /** - * Set Mode [Deprecated] \ - * Defines the plotting mode to load. Possible values are: "all", "point", "line" \ - * @param string $mode \ - */ - public function set_mode ($mode) { + * Set Mode [Deprecated] \ + * Defines the plotting mode to load. Possible values are: "all", "point", "line" \ + * + * @param string $mode \ + */ + public function set_mode($mode) + { $this->mode = $mode; } /** - * Get Axis X \ - * Defines if Axis should be shown in the Cartesian plane \ - * @return graphplotting_axis_x $axis_x \ - */ - public function get_axis_x() { + * Get Axis X \ + * Defines if Axis should be shown in the Cartesian plane \ + * + * @return graphplotting_axis_x $axis_x \ + */ + public function get_axis_x() + { return $this->axis_x; } /** - * Set Axis X \ - * Defines if Axis should be shown in the Cartesian plane \ - * @param graphplotting_axis_x $axis_x \ - */ - public function set_axis_x (graphplotting_axis_x $axis_x) { + * Set Axis X \ + * Defines if Axis should be shown in the Cartesian plane \ + * + * @param graphplotting_axis_x $axis_x \ + */ + public function set_axis_x(graphplotting_axis_x $axis_x) + { $this->axis_x = $axis_x; } /** - * Get Axis Y \ - * Defines if Axis X should be shown in the Cartesian plane \ - * @return graphplotting_axis_y $axis_y \ - */ - public function get_axis_y() { + * Get Axis Y \ + * Defines if Axis X should be shown in the Cartesian plane \ + * + * @return graphplotting_axis_y $axis_y \ + */ + public function get_axis_y() + { return $this->axis_y; } /** - * Set Axis Y \ - * Defines if Axis X should be shown in the Cartesian plane \ - * @param graphplotting_axis_y $axis_y \ - */ - public function set_axis_y (graphplotting_axis_y $axis_y) { + * Set Axis Y \ + * Defines if Axis X should be shown in the Cartesian plane \ + * + * @param graphplotting_axis_y $axis_y \ + */ + public function set_axis_y(graphplotting_axis_y $axis_y) + { $this->axis_y = $axis_y; } /** - * Get Canvas \ - * Specifies the canvas representing the Cartesian plane in which the user will be plotting \ - * @return graphplotting_canvas $canvas \ - */ - public function get_canvas() { + * Get Canvas \ + * Specifies the canvas representing the Cartesian plane in which the user will be plotting \ + * + * @return graphplotting_canvas $canvas \ + */ + public function get_canvas() + { return $this->canvas; } /** - * Set Canvas \ - * Specifies the canvas representing the Cartesian plane in which the user will be plotting \ - * @param graphplotting_canvas $canvas \ - */ - public function set_canvas (graphplotting_canvas $canvas) { + * Set Canvas \ + * Specifies the canvas representing the Cartesian plane in which the user will be plotting \ + * + * @param graphplotting_canvas $canvas \ + */ + public function set_canvas(graphplotting_canvas $canvas) + { $this->canvas = $canvas; } /** - * Get Grid \ - * Defines the Grid to be drawn in the Cartesian plane \ - * @return graphplotting_grid $grid \ - */ - public function get_grid() { + * Get Grid \ + * Defines the Grid to be drawn in the Cartesian plane \ + * + * @return graphplotting_grid $grid \ + */ + public function get_grid() + { return $this->grid; } /** - * Set Grid \ - * Defines the Grid to be drawn in the Cartesian plane \ - * @param graphplotting_grid $grid \ - */ - public function set_grid (graphplotting_grid $grid) { + * Set Grid \ + * Defines the Grid to be drawn in the Cartesian plane \ + * + * @param graphplotting_grid $grid \ + */ + public function set_grid(graphplotting_grid $grid) + { $this->grid = $grid; } /** - * Get Annotation \ - * Object used to add annotations to the question. Eg, labels, comments, titles \ - * @return graphplotting_annotation $annotation \ - */ - public function get_annotation() { + * Get Annotation \ + * Object used to add annotations to the question. Eg, labels, comments, titles \ + * + * @return graphplotting_annotation $annotation \ + */ + public function get_annotation() + { return $this->annotation; } /** - * Set Annotation \ - * Object used to add annotations to the question. Eg, labels, comments, titles \ - * @param graphplotting_annotation $annotation \ - */ - public function set_annotation (graphplotting_annotation $annotation) { + * Set Annotation \ + * Object used to add annotations to the question. Eg, labels, comments, titles \ + * + * @param graphplotting_annotation $annotation \ + */ + public function set_annotation(graphplotting_annotation $annotation) + { $this->annotation = $annotation; } /** - * Get Toolbar \ - * Object that defines which tools are available and other options for the toolbar. \ - * @return graphplotting_toolbar $toolbar \ - */ - public function get_toolbar() { + * Get Toolbar \ + * Object that defines which tools are available and other options for the toolbar. \ + * + * @return graphplotting_toolbar $toolbar \ + */ + public function get_toolbar() + { return $this->toolbar; } /** - * Set Toolbar \ - * Object that defines which tools are available and other options for the toolbar. \ - * @param graphplotting_toolbar $toolbar \ - */ - public function set_toolbar (graphplotting_toolbar $toolbar) { + * Set Toolbar \ + * Object that defines which tools are available and other options for the toolbar. \ + * + * @param graphplotting_toolbar $toolbar \ + */ + public function set_toolbar(graphplotting_toolbar $toolbar) + { $this->toolbar = $toolbar; } /** - * Get Draw Label Zero \ - * Defines whether to draw '0' label \ - * @return boolean $draw_zero \ - */ - public function get_draw_zero() { + * Get Draw Label Zero \ + * Defines whether to draw '0' label \ + * + * @return boolean $draw_zero \ + */ + public function get_draw_zero() + { return $this->draw_zero; } /** - * Set Draw Label Zero \ - * Defines whether to draw '0' label \ - * @param boolean $draw_zero \ - */ - public function set_draw_zero ($draw_zero) { + * Set Draw Label Zero \ + * Defines whether to draw '0' label \ + * + * @param boolean $draw_zero \ + */ + public function set_draw_zero($draw_zero) + { $this->draw_zero = $draw_zero; } /** - * Get Background image \ - * \ - * @return graphplotting_background_image $background_image \ - */ - public function get_background_image() { + * Get Background image \ + * \ + * + * @return graphplotting_background_image $background_image \ + */ + public function get_background_image() + { return $this->background_image; } /** - * Set Background image \ - * \ - * @param graphplotting_background_image $background_image \ - */ - public function set_background_image (graphplotting_background_image $background_image) { + * Set Background image \ + * \ + * + * @param graphplotting_background_image $background_image \ + */ + public function set_background_image(graphplotting_background_image $background_image) + { $this->background_image = $background_image; } /** - * Get Show Background Shape Points \ - * Defines whether to show points for background shapes or not \ - * @return boolean $display_points \ - */ - public function get_display_points() { + * Get Show Background Shape Points \ + * Defines whether to show points for background shapes or not \ + * + * @return boolean $display_points \ + */ + public function get_display_points() + { return $this->display_points; } /** - * Set Show Background Shape Points \ - * Defines whether to show points for background shapes or not \ - * @param boolean $display_points \ - */ - public function set_display_points ($display_points) { + * Set Show Background Shape Points \ + * Defines whether to show points for background shapes or not \ + * + * @param boolean $display_points \ + */ + public function set_display_points($display_points) + { $this->display_points = $display_points; } /** - * Get Background Shapes \ - * Shapes that will be displayed as stimulus in the the background of the Canvas. Users will be able to see them but not be - able to interact with them. \ - * @return $background_shapes \ - */ - public function get_background_shapes() { + * Get Background Shapes \ + * Shapes that will be displayed as stimulus in the the background of the Canvas. Users will be able to see them but not be + * able to interact with them. \ + * + * @return $background_shapes \ + */ + public function get_background_shapes() + { return $this->background_shapes; } /** - * Set Background Shapes \ - * Shapes that will be displayed as stimulus in the the background of the Canvas. Users will be able to see them but not be - able to interact with them. \ - * @param $background_shapes \ - */ - public function set_background_shapes ($background_shapes) { + * Set Background Shapes \ + * Shapes that will be displayed as stimulus in the the background of the Canvas. Users will be able to see them but not be + * able to interact with them. \ + * + * @param $background_shapes \ + */ + public function set_background_shapes($background_shapes) + { $this->background_shapes = $background_shapes; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/graphplotting_annotation.php b/src/Entities/QuestionTypes/graphplotting_annotation.php index 4c5d0986..4760b955 100644 --- a/src/Entities/QuestionTypes/graphplotting_annotation.php +++ b/src/Entities/QuestionTypes/graphplotting_annotation.php @@ -5,111 +5,131 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_annotation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_annotation extends BaseQuestionTypeAttribute +{ protected $title; protected $label_top; protected $label_right; protected $label_bottom; protected $label_left; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Title \ - * The graph title \ - * @return string $title \ - */ - public function get_title() { + * Get Title \ + * The graph title \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Title \ - * The graph title \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Title \ + * The graph title \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } /** - * Get Label top \ - * Label for the top of the graph \ - * @return string $label_top \ - */ - public function get_label_top() { + * Get Label top \ + * Label for the top of the graph \ + * + * @return string $label_top \ + */ + public function get_label_top() + { return $this->label_top; } /** - * Set Label top \ - * Label for the top of the graph \ - * @param string $label_top \ - */ - public function set_label_top ($label_top) { + * Set Label top \ + * Label for the top of the graph \ + * + * @param string $label_top \ + */ + public function set_label_top($label_top) + { $this->label_top = $label_top; } /** - * Get Label right \ - * Label for the right of the graph \ - * @return string $label_right \ - */ - public function get_label_right() { + * Get Label right \ + * Label for the right of the graph \ + * + * @return string $label_right \ + */ + public function get_label_right() + { return $this->label_right; } /** - * Set Label right \ - * Label for the right of the graph \ - * @param string $label_right \ - */ - public function set_label_right ($label_right) { + * Set Label right \ + * Label for the right of the graph \ + * + * @param string $label_right \ + */ + public function set_label_right($label_right) + { $this->label_right = $label_right; } /** - * Get Label bottom \ - * Label for the bottom of the graph \ - * @return string $label_bottom \ - */ - public function get_label_bottom() { + * Get Label bottom \ + * Label for the bottom of the graph \ + * + * @return string $label_bottom \ + */ + public function get_label_bottom() + { return $this->label_bottom; } /** - * Set Label bottom \ - * Label for the bottom of the graph \ - * @param string $label_bottom \ - */ - public function set_label_bottom ($label_bottom) { + * Set Label bottom \ + * Label for the bottom of the graph \ + * + * @param string $label_bottom \ + */ + public function set_label_bottom($label_bottom) + { $this->label_bottom = $label_bottom; } /** - * Get Label left \ - * Label for the left of the graph \ - * @return string $label_left \ - */ - public function get_label_left() { + * Get Label left \ + * Label for the left of the graph \ + * + * @return string $label_left \ + */ + public function get_label_left() + { return $this->label_left; } /** - * Set Label left \ - * Label for the left of the graph \ - * @param string $label_left \ - */ - public function set_label_left ($label_left) { + * Set Label left \ + * Label for the left of the graph \ + * + * @param string $label_left \ + */ + public function set_label_left($label_left) + { $this->label_left = $label_left; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_axis_x.php b/src/Entities/QuestionTypes/graphplotting_axis_x.php index af5f3baa..b1914c90 100644 --- a/src/Entities/QuestionTypes/graphplotting_axis_x.php +++ b/src/Entities/QuestionTypes/graphplotting_axis_x.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_axis_x extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_axis_x extends BaseQuestionTypeAttribute +{ protected $ticks_distance; protected $hide_ticks; protected $draw_labels; @@ -17,156 +18,187 @@ class graphplotting_axis_x extends BaseQuestionTypeAttribute { protected $show_last_arrow; protected $show_axis_label; protected $axis_label; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Ticks distance \ - * The distance between the ticks displayed in the axis \ - * @return number $ticks_distance \ - */ - public function get_ticks_distance() { + * Get Ticks distance \ + * The distance between the ticks displayed in the axis \ + * + * @return number $ticks_distance \ + */ + public function get_ticks_distance() + { return $this->ticks_distance; } /** - * Set Ticks distance \ - * The distance between the ticks displayed in the axis \ - * @param number $ticks_distance \ - */ - public function set_ticks_distance ($ticks_distance) { + * Set Ticks distance \ + * The distance between the ticks displayed in the axis \ + * + * @param number $ticks_distance \ + */ + public function set_ticks_distance($ticks_distance) + { $this->ticks_distance = $ticks_distance; } /** - * Get Hide ticks \ - * Defines if ticks are rendered in the axis \ - * @return boolean $hide_ticks \ - */ - public function get_hide_ticks() { + * Get Hide ticks \ + * Defines if ticks are rendered in the axis \ + * + * @return boolean $hide_ticks \ + */ + public function get_hide_ticks() + { return $this->hide_ticks; } /** - * Set Hide ticks \ - * Defines if ticks are rendered in the axis \ - * @param boolean $hide_ticks \ - */ - public function set_hide_ticks ($hide_ticks) { + * Set Hide ticks \ + * Defines if ticks are rendered in the axis \ + * + * @param boolean $hide_ticks \ + */ + public function set_hide_ticks($hide_ticks) + { $this->hide_ticks = $hide_ticks; } /** - * Get Draw labels \ - * Defines if labels are rendered in the axis \ - * @return boolean $draw_labels \ - */ - public function get_draw_labels() { + * Get Draw labels \ + * Defines if labels are rendered in the axis \ + * + * @return boolean $draw_labels \ + */ + public function get_draw_labels() + { return $this->draw_labels; } /** - * Set Draw labels \ - * Defines if labels are rendered in the axis \ - * @param boolean $draw_labels \ - */ - public function set_draw_labels ($draw_labels) { + * Set Draw labels \ + * Defines if labels are rendered in the axis \ + * + * @param boolean $draw_labels \ + */ + public function set_draw_labels($draw_labels) + { $this->draw_labels = $draw_labels; } /** - * Get Comma in label \ - * Inserts comma to separate thousands in a number \ - * @return boolean $comma_in_label \ - */ - public function get_comma_in_label() { + * Get Comma in label \ + * Inserts comma to separate thousands in a number \ + * + * @return boolean $comma_in_label \ + */ + public function get_comma_in_label() + { return $this->comma_in_label; } /** - * Set Comma in label \ - * Inserts comma to separate thousands in a number \ - * @param boolean $comma_in_label \ - */ - public function set_comma_in_label ($comma_in_label) { + * Set Comma in label \ + * Inserts comma to separate thousands in a number \ + * + * @param boolean $comma_in_label \ + */ + public function set_comma_in_label($comma_in_label) + { $this->comma_in_label = $comma_in_label; } /** - * Get Show first arrow \ - * Defines if an arrow should be rendered in the lower end of the axis \ - * @return boolean $show_first_arrow \ - */ - public function get_show_first_arrow() { + * Get Show first arrow \ + * Defines if an arrow should be rendered in the lower end of the axis \ + * + * @return boolean $show_first_arrow \ + */ + public function get_show_first_arrow() + { return $this->show_first_arrow; } /** - * Set Show first arrow \ - * Defines if an arrow should be rendered in the lower end of the axis \ - * @param boolean $show_first_arrow \ - */ - public function set_show_first_arrow ($show_first_arrow) { + * Set Show first arrow \ + * Defines if an arrow should be rendered in the lower end of the axis \ + * + * @param boolean $show_first_arrow \ + */ + public function set_show_first_arrow($show_first_arrow) + { $this->show_first_arrow = $show_first_arrow; } /** - * Get Show last arrow \ - * Defines if an arrow should be rendered in the higher end of the axis \ - * @return boolean $show_last_arrow \ - */ - public function get_show_last_arrow() { + * Get Show last arrow \ + * Defines if an arrow should be rendered in the higher end of the axis \ + * + * @return boolean $show_last_arrow \ + */ + public function get_show_last_arrow() + { return $this->show_last_arrow; } /** - * Set Show last arrow \ - * Defines if an arrow should be rendered in the higher end of the axis \ - * @param boolean $show_last_arrow \ - */ - public function set_show_last_arrow ($show_last_arrow) { + * Set Show last arrow \ + * Defines if an arrow should be rendered in the higher end of the axis \ + * + * @param boolean $show_last_arrow \ + */ + public function set_show_last_arrow($show_last_arrow) + { $this->show_last_arrow = $show_last_arrow; } /** - * Get Show axis label \ - * Defines if the axis label should be rendered \ - * @return boolean $show_axis_label \ - */ - public function get_show_axis_label() { + * Get Show axis label \ + * Defines if the axis label should be rendered \ + * + * @return boolean $show_axis_label \ + */ + public function get_show_axis_label() + { return $this->show_axis_label; } /** - * Set Show axis label \ - * Defines if the axis label should be rendered \ - * @param boolean $show_axis_label \ - */ - public function set_show_axis_label ($show_axis_label) { + * Set Show axis label \ + * Defines if the axis label should be rendered \ + * + * @param boolean $show_axis_label \ + */ + public function set_show_axis_label($show_axis_label) + { $this->show_axis_label = $show_axis_label; } /** - * Get Axis label \ - * Defines the label to be rendered next to X axis \ - * @return string $axis_label \ - */ - public function get_axis_label() { + * Get Axis label \ + * Defines the label to be rendered next to X axis \ + * + * @return string $axis_label \ + */ + public function get_axis_label() + { return $this->axis_label; } /** - * Set Axis label \ - * Defines the label to be rendered next to X axis \ - * @param string $axis_label \ - */ - public function set_axis_label ($axis_label) { + * Set Axis label \ + * Defines the label to be rendered next to X axis \ + * + * @param string $axis_label \ + */ + public function set_axis_label($axis_label) + { $this->axis_label = $axis_label; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_axis_y.php b/src/Entities/QuestionTypes/graphplotting_axis_y.php index 70d0279e..59a52661 100644 --- a/src/Entities/QuestionTypes/graphplotting_axis_y.php +++ b/src/Entities/QuestionTypes/graphplotting_axis_y.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_axis_y extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_axis_y extends BaseQuestionTypeAttribute +{ protected $ticks_distance; protected $hide_ticks; protected $draw_labels; @@ -17,156 +18,187 @@ class graphplotting_axis_y extends BaseQuestionTypeAttribute { protected $show_last_arrow; protected $show_axis_label; protected $axis_label; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Ticks distance \ - * The distance between the ticks displayed in the axis \ - * @return number $ticks_distance \ - */ - public function get_ticks_distance() { + * Get Ticks distance \ + * The distance between the ticks displayed in the axis \ + * + * @return number $ticks_distance \ + */ + public function get_ticks_distance() + { return $this->ticks_distance; } /** - * Set Ticks distance \ - * The distance between the ticks displayed in the axis \ - * @param number $ticks_distance \ - */ - public function set_ticks_distance ($ticks_distance) { + * Set Ticks distance \ + * The distance between the ticks displayed in the axis \ + * + * @param number $ticks_distance \ + */ + public function set_ticks_distance($ticks_distance) + { $this->ticks_distance = $ticks_distance; } /** - * Get Hide ticks \ - * Defines if ticks are rendered in the axis \ - * @return boolean $hide_ticks \ - */ - public function get_hide_ticks() { + * Get Hide ticks \ + * Defines if ticks are rendered in the axis \ + * + * @return boolean $hide_ticks \ + */ + public function get_hide_ticks() + { return $this->hide_ticks; } /** - * Set Hide ticks \ - * Defines if ticks are rendered in the axis \ - * @param boolean $hide_ticks \ - */ - public function set_hide_ticks ($hide_ticks) { + * Set Hide ticks \ + * Defines if ticks are rendered in the axis \ + * + * @param boolean $hide_ticks \ + */ + public function set_hide_ticks($hide_ticks) + { $this->hide_ticks = $hide_ticks; } /** - * Get Draw labels \ - * Defines if labels are rendered in the axis \ - * @return boolean $draw_labels \ - */ - public function get_draw_labels() { + * Get Draw labels \ + * Defines if labels are rendered in the axis \ + * + * @return boolean $draw_labels \ + */ + public function get_draw_labels() + { return $this->draw_labels; } /** - * Set Draw labels \ - * Defines if labels are rendered in the axis \ - * @param boolean $draw_labels \ - */ - public function set_draw_labels ($draw_labels) { + * Set Draw labels \ + * Defines if labels are rendered in the axis \ + * + * @param boolean $draw_labels \ + */ + public function set_draw_labels($draw_labels) + { $this->draw_labels = $draw_labels; } /** - * Get Comma in label \ - * Inserts comma to separate thousands in a number \ - * @return boolean $comma_in_label \ - */ - public function get_comma_in_label() { + * Get Comma in label \ + * Inserts comma to separate thousands in a number \ + * + * @return boolean $comma_in_label \ + */ + public function get_comma_in_label() + { return $this->comma_in_label; } /** - * Set Comma in label \ - * Inserts comma to separate thousands in a number \ - * @param boolean $comma_in_label \ - */ - public function set_comma_in_label ($comma_in_label) { + * Set Comma in label \ + * Inserts comma to separate thousands in a number \ + * + * @param boolean $comma_in_label \ + */ + public function set_comma_in_label($comma_in_label) + { $this->comma_in_label = $comma_in_label; } /** - * Get Show first arrow \ - * Defines if an arrow should be rendered in the lower end of the axis \ - * @return boolean $show_first_arrow \ - */ - public function get_show_first_arrow() { + * Get Show first arrow \ + * Defines if an arrow should be rendered in the lower end of the axis \ + * + * @return boolean $show_first_arrow \ + */ + public function get_show_first_arrow() + { return $this->show_first_arrow; } /** - * Set Show first arrow \ - * Defines if an arrow should be rendered in the lower end of the axis \ - * @param boolean $show_first_arrow \ - */ - public function set_show_first_arrow ($show_first_arrow) { + * Set Show first arrow \ + * Defines if an arrow should be rendered in the lower end of the axis \ + * + * @param boolean $show_first_arrow \ + */ + public function set_show_first_arrow($show_first_arrow) + { $this->show_first_arrow = $show_first_arrow; } /** - * Get Show last arrow \ - * Defines if an arrow should be rendered in the higher end of the axis \ - * @return boolean $show_last_arrow \ - */ - public function get_show_last_arrow() { + * Get Show last arrow \ + * Defines if an arrow should be rendered in the higher end of the axis \ + * + * @return boolean $show_last_arrow \ + */ + public function get_show_last_arrow() + { return $this->show_last_arrow; } /** - * Set Show last arrow \ - * Defines if an arrow should be rendered in the higher end of the axis \ - * @param boolean $show_last_arrow \ - */ - public function set_show_last_arrow ($show_last_arrow) { + * Set Show last arrow \ + * Defines if an arrow should be rendered in the higher end of the axis \ + * + * @param boolean $show_last_arrow \ + */ + public function set_show_last_arrow($show_last_arrow) + { $this->show_last_arrow = $show_last_arrow; } /** - * Get Show axis label \ - * Defines if the axis label should be rendered \ - * @return boolean $show_axis_label \ - */ - public function get_show_axis_label() { + * Get Show axis label \ + * Defines if the axis label should be rendered \ + * + * @return boolean $show_axis_label \ + */ + public function get_show_axis_label() + { return $this->show_axis_label; } /** - * Set Show axis label \ - * Defines if the axis label should be rendered \ - * @param boolean $show_axis_label \ - */ - public function set_show_axis_label ($show_axis_label) { + * Set Show axis label \ + * Defines if the axis label should be rendered \ + * + * @param boolean $show_axis_label \ + */ + public function set_show_axis_label($show_axis_label) + { $this->show_axis_label = $show_axis_label; } /** - * Get Axis label \ - * Defines the label to be rendered next to Y axis \ - * @return string $axis_label \ - */ - public function get_axis_label() { + * Get Axis label \ + * Defines the label to be rendered next to Y axis \ + * + * @return string $axis_label \ + */ + public function get_axis_label() + { return $this->axis_label; } /** - * Set Axis label \ - * Defines the label to be rendered next to Y axis \ - * @param string $axis_label \ - */ - public function set_axis_label ($axis_label) { + * Set Axis label \ + * Defines the label to be rendered next to Y axis \ + * + * @param string $axis_label \ + */ + public function set_axis_label($axis_label) + { $this->axis_label = $axis_label; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_background_image.php b/src/Entities/QuestionTypes/graphplotting_background_image.php index d616e0dd..51a74847 100644 --- a/src/Entities/QuestionTypes/graphplotting_background_image.php +++ b/src/Entities/QuestionTypes/graphplotting_background_image.php @@ -5,130 +5,154 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_background_image extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_background_image extends BaseQuestionTypeAttribute +{ protected $src; protected $x; protected $y; protected $width; protected $height; protected $opacity; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Image source \ - * \ - * @return string $src \ - */ - public function get_src() { + * Get Image source \ + * \ + * + * @return string $src \ + */ + public function get_src() + { return $this->src; } /** - * Set Image source \ - * \ - * @param string $src \ - */ - public function set_src ($src) { + * Set Image source \ + * \ + * + * @param string $src \ + */ + public function set_src($src) + { $this->src = $src; } /** - * Get X \ - * X coordinate of the image's centre \ - * @return number $x \ - */ - public function get_x() { + * Get X \ + * X coordinate of the image's centre \ + * + * @return number $x \ + */ + public function get_x() + { return $this->x; } /** - * Set X \ - * X coordinate of the image's centre \ - * @param number $x \ - */ - public function set_x ($x) { + * Set X \ + * X coordinate of the image's centre \ + * + * @param number $x \ + */ + public function set_x($x) + { $this->x = $x; } /** - * Get Y \ - * Y coordinate of the image's centre \ - * @return number $y \ - */ - public function get_y() { + * Get Y \ + * Y coordinate of the image's centre \ + * + * @return number $y \ + */ + public function get_y() + { return $this->y; } /** - * Set Y \ - * Y coordinate of the image's centre \ - * @param number $y \ - */ - public function set_y ($y) { + * Set Y \ + * Y coordinate of the image's centre \ + * + * @param number $y \ + */ + public function set_y($y) + { $this->y = $y; } /** - * Get Width (%) \ - * Image width in percentage of the canvas width \ - * @return number $width \ - */ - public function get_width() { + * Get Width (%) \ + * Image width in percentage of the canvas width \ + * + * @return number $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width (%) \ - * Image width in percentage of the canvas width \ - * @param number $width \ - */ - public function set_width ($width) { + * Set Width (%) \ + * Image width in percentage of the canvas width \ + * + * @param number $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height (%) \ - * Image height in percentage of the canvas height \ - * @return number $height \ - */ - public function get_height() { + * Get Height (%) \ + * Image height in percentage of the canvas height \ + * + * @return number $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height (%) \ - * Image height in percentage of the canvas height \ - * @param number $height \ - */ - public function set_height ($height) { + * Set Height (%) \ + * Image height in percentage of the canvas height \ + * + * @param number $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Opacity (%) \ - * Percentage value defining how opaque the image is \ - * @return number $opacity \ - */ - public function get_opacity() { + * Get Opacity (%) \ + * Percentage value defining how opaque the image is \ + * + * @return number $opacity \ + */ + public function get_opacity() + { return $this->opacity; } /** - * Set Opacity (%) \ - * Percentage value defining how opaque the image is \ - * @param number $opacity \ - */ - public function set_opacity ($opacity) { + * Set Opacity (%) \ + * Percentage value defining how opaque the image is \ + * + * @param number $opacity \ + */ + public function set_opacity($opacity) + { $this->opacity = $opacity; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_canvas.php b/src/Entities/QuestionTypes/graphplotting_canvas.php index bb20a06e..91e98f1d 100644 --- a/src/Entities/QuestionTypes/graphplotting_canvas.php +++ b/src/Entities/QuestionTypes/graphplotting_canvas.php @@ -5,130 +5,154 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_canvas extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_canvas extends BaseQuestionTypeAttribute +{ protected $snap_to; protected $show_hover_position; protected $x_min; protected $x_max; protected $y_min; protected $y_max; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Snap to \ - * Defines the snap applied on points, possible values are: "grid", "ticks" or a numeric value \ - * @return string/number $snap_to \ - */ - public function get_snap_to() { + * Get Snap to \ + * Defines the snap applied on points, possible values are: "grid", "ticks" or a numeric value \ + * + * @return string/number $snap_to \ + */ + public function get_snap_to() + { return $this->snap_to; } /** - * Set Snap to \ - * Defines the snap applied on points, possible values are: "grid", "ticks" or a numeric value \ - * @param string/number $snap_to \ - */ - public function set_snap_to ($snap_to) { + * Set Snap to \ + * Defines the snap applied on points, possible values are: "grid", "ticks" or a numeric value \ + * + * @param string /number $snap_to \ + */ + public function set_snap_to($snap_to) + { $this->snap_to = $snap_to; } /** - * Get Show hover position \ - * Defines if the position of a point should be displayed when hovering over or dragging it \ - * @return boolean $show_hover_position \ - */ - public function get_show_hover_position() { + * Get Show hover position \ + * Defines if the position of a point should be displayed when hovering over or dragging it \ + * + * @return boolean $show_hover_position \ + */ + public function get_show_hover_position() + { return $this->show_hover_position; } /** - * Set Show hover position \ - * Defines if the position of a point should be displayed when hovering over or dragging it \ - * @param boolean $show_hover_position \ - */ - public function set_show_hover_position ($show_hover_position) { + * Set Show hover position \ + * Defines if the position of a point should be displayed when hovering over or dragging it \ + * + * @param boolean $show_hover_position \ + */ + public function set_show_hover_position($show_hover_position) + { $this->show_hover_position = $show_hover_position; } /** - * Get X min \ - * X axis lower value \ - * @return number $x_min \ - */ - public function get_x_min() { + * Get X min \ + * X axis lower value \ + * + * @return number $x_min \ + */ + public function get_x_min() + { return $this->x_min; } /** - * Set X min \ - * X axis lower value \ - * @param number $x_min \ - */ - public function set_x_min ($x_min) { + * Set X min \ + * X axis lower value \ + * + * @param number $x_min \ + */ + public function set_x_min($x_min) + { $this->x_min = $x_min; } /** - * Get X max \ - * X axis higher value \ - * @return number $x_max \ - */ - public function get_x_max() { + * Get X max \ + * X axis higher value \ + * + * @return number $x_max \ + */ + public function get_x_max() + { return $this->x_max; } /** - * Set X max \ - * X axis higher value \ - * @param number $x_max \ - */ - public function set_x_max ($x_max) { + * Set X max \ + * X axis higher value \ + * + * @param number $x_max \ + */ + public function set_x_max($x_max) + { $this->x_max = $x_max; } /** - * Get Y min \ - * Y axis lower value \ - * @return number $y_min \ - */ - public function get_y_min() { + * Get Y min \ + * Y axis lower value \ + * + * @return number $y_min \ + */ + public function get_y_min() + { return $this->y_min; } /** - * Set Y min \ - * Y axis lower value \ - * @param number $y_min \ - */ - public function set_y_min ($y_min) { + * Set Y min \ + * Y axis lower value \ + * + * @param number $y_min \ + */ + public function set_y_min($y_min) + { $this->y_min = $y_min; } /** - * Get Y max \ - * Y axis higher value \ - * @return number $y_max \ - */ - public function get_y_max() { + * Get Y max \ + * Y axis higher value \ + * + * @return number $y_max \ + */ + public function get_y_max() + { return $this->y_max; } /** - * Set Y max \ - * Y axis higher value \ - * @param number $y_max \ - */ - public function set_y_max ($y_max) { + * Set Y max \ + * Y axis higher value \ + * + * @param number $y_max \ + */ + public function set_y_max($y_max) + { $this->y_max = $y_max; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_grid.php b/src/Entities/QuestionTypes/graphplotting_grid.php index 5df492ee..ab49144a 100644 --- a/src/Entities/QuestionTypes/graphplotting_grid.php +++ b/src/Entities/QuestionTypes/graphplotting_grid.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_grid extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_grid extends BaseQuestionTypeAttribute +{ protected $x_distance; protected $y_distance; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get x_distance \ - * Distance between grid lines perpendicular to the X axis \ - * @return number $x_distance \ - */ - public function get_x_distance() { + * Get x_distance \ + * Distance between grid lines perpendicular to the X axis \ + * + * @return number $x_distance \ + */ + public function get_x_distance() + { return $this->x_distance; } /** - * Set x_distance \ - * Distance between grid lines perpendicular to the X axis \ - * @param number $x_distance \ - */ - public function set_x_distance ($x_distance) { + * Set x_distance \ + * Distance between grid lines perpendicular to the X axis \ + * + * @param number $x_distance \ + */ + public function set_x_distance($x_distance) + { $this->x_distance = $x_distance; } /** - * Get y_distance \ - * Distance between grid lines perpendicular to the Y axis \ - * @return number $y_distance \ - */ - public function get_y_distance() { + * Get y_distance \ + * Distance between grid lines perpendicular to the Y axis \ + * + * @return number $y_distance \ + */ + public function get_y_distance() + { return $this->y_distance; } /** - * Set y_distance \ - * Distance between grid lines perpendicular to the Y axis \ - * @param number $y_distance \ - */ - public function set_y_distance ($y_distance) { + * Set y_distance \ + * Distance between grid lines perpendicular to the Y axis \ + * + * @param number $y_distance \ + */ + public function set_y_distance($y_distance) + { $this->y_distance = $y_distance; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_metadata.php b/src/Entities/QuestionTypes/graphplotting_metadata.php index 42fb06c9..2cbf0b49 100644 --- a/src/Entities/QuestionTypes/graphplotting_metadata.php +++ b/src/Entities/QuestionTypes/graphplotting_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_toolbar.php b/src/Entities/QuestionTypes/graphplotting_toolbar.php index f53e842c..0fb80039 100644 --- a/src/Entities/QuestionTypes/graphplotting_toolbar.php +++ b/src/Entities/QuestionTypes/graphplotting_toolbar.php @@ -5,75 +5,87 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_toolbar extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_toolbar extends BaseQuestionTypeAttribute +{ protected $tools; protected $default_tool; protected $controls; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Tools \ - * An array containing either strings or a nested array of strings, defining the buttons or dropdown groups of tools that a - re available in the toolbar for this question. \ - * @return array $tools \ - */ - public function get_tools() { + * Get Tools \ + * An array containing either strings or a nested array of strings, defining the buttons or dropdown groups of tools that a + * re available in the toolbar for this question. \ + * + * @return array $tools \ + */ + public function get_tools() + { return $this->tools; } /** - * Set Tools \ - * An array containing either strings or a nested array of strings, defining the buttons or dropdown groups of tools that a - re available in the toolbar for this question. \ - * @param array $tools \ - */ - public function set_tools (array $tools) { + * Set Tools \ + * An array containing either strings or a nested array of strings, defining the buttons or dropdown groups of tools that a + * re available in the toolbar for this question. \ + * + * @param array $tools \ + */ + public function set_tools(array $tools) + { $this->tools = $tools; } /** - * Get Default Tool \ - * The tool that will be set when the question is loaded. \ - * @return string $default_tool \ - */ - public function get_default_tool() { + * Get Default Tool \ + * The tool that will be set when the question is loaded. \ + * + * @return string $default_tool \ + */ + public function get_default_tool() + { return $this->default_tool; } /** - * Set Default Tool \ - * The tool that will be set when the question is loaded. \ - * @param string $default_tool \ - */ - public function set_default_tool ($default_tool) { + * Set Default Tool \ + * The tool that will be set when the question is loaded. \ + * + * @param string $default_tool \ + */ + public function set_default_tool($default_tool) + { $this->default_tool = $default_tool; } /** - * Get Controls \ - * Determines options a user has for controlling graph elements. \ - * @return array $controls \ - */ - public function get_controls() { + * Get Controls \ + * Determines options a user has for controlling graph elements. \ + * + * @return array $controls \ + */ + public function get_controls() + { return $this->controls; } /** - * Set Controls \ - * Determines options a user has for controlling graph elements. \ - * @param array $controls \ - */ - public function set_controls (array $controls) { + * Set Controls \ + * Determines options a user has for controlling graph elements. \ + * + * @param array $controls \ + */ + public function set_controls(array $controls) + { $this->controls = $controls; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_ui_style.php b/src/Entities/QuestionTypes/graphplotting_ui_style.php index 2c657943..31e52a05 100644 --- a/src/Entities/QuestionTypes/graphplotting_ui_style.php +++ b/src/Entities/QuestionTypes/graphplotting_ui_style.php @@ -5,138 +5,162 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; protected $height; protected $width; protected $margin; protected $graph_controls; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Height \ - * The height of the graph with trailing px unit eg. "600px". \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the graph with trailing px unit eg. "600px". \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the graph with trailing px unit eg. "600px". \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the graph with trailing px unit eg. "600px". \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the graph with trailing px unit eg. "600px". \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the graph with trailing px unit eg. "600px". \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the graph with trailing px unit eg. "600px". \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the graph with trailing px unit eg. "600px". \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Margin \ - * The margin around the graph to make room for labels, can be a single value eg "20px" or a css formatted string eg "20px - 10px 20px" for margins with different values on each side, see MDN Margin Reference for more information. Note: Margin will default to 20px if there is a - label and the margin value is not set. \ - * @return string $margin \ - */ - public function get_margin() { + * Get Margin \ + * The margin around the graph to make room for labels, can be a single value eg "20px" or a css formatted string eg "20px + * 10px 20px" for margins with different values on each side, see MDN Margin Reference for more information. Note: Margin will default to 20px if there is a + * label and the margin value is not set. \ + * + * @return string $margin \ + */ + public function get_margin() + { return $this->margin; } /** - * Set Margin \ - * The margin around the graph to make room for labels, can be a single value eg "20px" or a css formatted string eg "20px - 10px 20px" for margins with different values on each side, see MDN Margin Reference for more information. Note: Margin will default to 20px if there is a - label and the margin value is not set. \ - * @param string $margin \ - */ - public function set_margin ($margin) { + * Set Margin \ + * The margin around the graph to make room for labels, can be a single value eg "20px" or a css formatted string eg "20px + * 10px 20px" for margins with different values on each side, see MDN Margin Reference for more information. Note: Margin will default to 20px if there is a + * label and the margin value is not set. \ + * + * @param string $margin \ + */ + public function set_margin($margin) + { $this->margin = $margin; } /** - * Get Graph Control Options (deprecated) \ - * Deprecated This attribute has been deprecated; consider using toolbar.contro - ls instead. \ - * @return string $graph_controls ie. reset, delete \ - */ - public function get_graph_controls() { + * Get Graph Control Options (deprecated) \ + * Deprecated This attribute has been deprecated; consider using toolbar.contro + * ls instead. \ + * + * @return string $graph_controls ie. reset, delete \ + */ + public function get_graph_controls() + { return $this->graph_controls; } /** - * Set Graph Control Options (deprecated) \ - * Deprecated This attribute has been deprecated; consider using toolbar.contro - ls instead. \ - * @param string $graph_controls ie. reset, delete \ - */ - public function set_graph_controls ($graph_controls) { + * Set Graph Control Options (deprecated) \ + * Deprecated This attribute has been deprecated; consider using toolbar.contro + * ls instead. \ + * + * @param string $graph_controls ie. reset, delete \ + */ + public function set_graph_controls($graph_controls) + { $this->graph_controls = $graph_controls; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_validation.php b/src/Entities/QuestionTypes/graphplotting_validation.php index 3b63f113..c3b6f0d5 100644 --- a/src/Entities/QuestionTypes/graphplotting_validation.php +++ b/src/Entities/QuestionTypes/graphplotting_validation.php @@ -5,140 +5,164 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $ignore_repeated_shapes; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return graphplotting_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return graphplotting_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param graphplotting_validation_valid_response $valid_response \ - */ - public function set_valid_response (graphplotting_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param graphplotting_validation_valid_response $valid_response \ + */ + public function set_valid_response(graphplotting_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Ignore repeated shapes \ - * When set to 'yes', scoring will ignore shapes which are plotted multiple times within the same composition (authored val - ue is treated separately to student's response). When the value is set to 'strict', the shapes are only considered equal - if the points are equivalent, not just the position and slope. See the knowledgebase article for more details: http://d - ocs.learnosity.com/assessment/questions/knowledgebase/graphplotting_ignore_repeated_shapes \ - * @return string $ignore_repeated_shapes ie. no, yes, strict \ - */ - public function get_ignore_repeated_shapes() { + * Get Ignore repeated shapes \ + * When set to 'yes', scoring will ignore shapes which are plotted multiple times within the same composition (authored val + * ue is treated separately to student's response). When the value is set to 'strict', the shapes are only considered equal + * if the points are equivalent, not just the position and slope. See the knowledgebase article for more details: http://d + * ocs.learnosity.com/assessment/questions/knowledgebase/graphplotting_ignore_repeated_shapes \ + * + * @return string $ignore_repeated_shapes ie. no, yes, strict \ + */ + public function get_ignore_repeated_shapes() + { return $this->ignore_repeated_shapes; } /** - * Set Ignore repeated shapes \ - * When set to 'yes', scoring will ignore shapes which are plotted multiple times within the same composition (authored val - ue is treated separately to student's response). When the value is set to 'strict', the shapes are only considered equal - if the points are equivalent, not just the position and slope. See the knowledgebase article for more details: http://d - ocs.learnosity.com/assessment/questions/knowledgebase/graphplotting_ignore_repeated_shapes \ - * @param string $ignore_repeated_shapes ie. no, yes, strict \ - */ - public function set_ignore_repeated_shapes ($ignore_repeated_shapes) { + * Set Ignore repeated shapes \ + * When set to 'yes', scoring will ignore shapes which are plotted multiple times within the same composition (authored val + * ue is treated separately to student's response). When the value is set to 'strict', the shapes are only considered equal + * if the points are equivalent, not just the position and slope. See the knowledgebase article for more details: http://d + * ocs.learnosity.com/assessment/questions/knowledgebase/graphplotting_ignore_repeated_shapes \ + * + * @param string $ignore_repeated_shapes ie. no, yes, strict \ + */ + public function set_ignore_repeated_shapes($ignore_repeated_shapes) + { $this->ignore_repeated_shapes = $ignore_repeated_shapes; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_validation_alt_responses_item.php b/src/Entities/QuestionTypes/graphplotting_validation_alt_responses_item.php index cfe16814..5772efc8 100644 --- a/src/Entities/QuestionTypes/graphplotting_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/graphplotting_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * The response value that indicates the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * The response value that indicates the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * The response value that indicates the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * The response value that indicates the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/graphplotting_validation_valid_response.php b/src/Entities/QuestionTypes/graphplotting_validation_valid_response.php index 857f1659..0a127aaa 100644 --- a/src/Entities/QuestionTypes/graphplotting_validation_valid_response.php +++ b/src/Entities/QuestionTypes/graphplotting_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class graphplotting_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class graphplotting_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * The response value that indicates the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * The response value that indicates the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * The response value that indicates the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * The response value that indicates the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/highlight.php b/src/Entities/QuestionTypes/highlight.php index 129ce7b0..9a47ab59 100644 --- a/src/Entities/QuestionTypes/highlight.php +++ b/src/Entities/QuestionTypes/highlight.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class highlight extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class highlight extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -20,233 +21,277 @@ class highlight extends BaseQuestionType { protected $img_src; protected $line_color; protected $line_width; - + public function __construct( - $type, - $img_src - ) - { - $this->type = $type; - $this->img_src = $img_src; - } + $type, + $img_src + ) { + $this->type = $type; + $this->img_src = $img_src; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return highlight_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return highlight_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param highlight_metadata $metadata \ - */ - public function set_metadata (highlight_metadata $metadata) { + * Set metadata \ + * \ + * + * @param highlight_metadata $metadata \ + */ + public function set_metadata(highlight_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return highlight_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return highlight_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param highlight_ui_style $ui_style \ - */ - public function set_ui_style (highlight_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param highlight_ui_style $ui_style \ + */ + public function set_ui_style(highlight_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @return highlight_validation $validation \ - */ - public function get_validation() { + * Get Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @return highlight_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @param highlight_validation $validation \ - */ - public function set_validation (highlight_validation $validation) { + * Set Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @param highlight_validation $validation \ + */ + public function set_validation(highlight_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Image Source \ - * The absolute URL of the background image. \ - * @return string $img_src \ - */ - public function get_img_src() { + * Get Image Source \ + * The absolute URL of the background image. \ + * + * @return string $img_src \ + */ + public function get_img_src() + { return $this->img_src; } /** - * Set Image Source \ - * The absolute URL of the background image. \ - * @param string $img_src \ - */ - public function set_img_src ($img_src) { + * Set Image Source \ + * The absolute URL of the background image. \ + * + * @param string $img_src \ + */ + public function set_img_src($img_src) + { $this->img_src = $img_src; } /** - * Get Line Color Options \ - * Color of the painted line, expressed as a HTML color code. Examples of acceptable formats: '#FFFFFF', 'white', 'rgb(255, - 255, 255)', 'rgba(255, 0, 0, 0.8)'. \ - * @return array $line_color \ - */ - public function get_line_color() { + * Get Line Color Options \ + * Color of the painted line, expressed as a HTML color code. Examples of acceptable formats: '#FFFFFF', 'white', 'rgb(255, + * 255, 255)', 'rgba(255, 0, 0, 0.8)'. \ + * + * @return array $line_color \ + */ + public function get_line_color() + { return $this->line_color; } /** - * Set Line Color Options \ - * Color of the painted line, expressed as a HTML color code. Examples of acceptable formats: '#FFFFFF', 'white', 'rgb(255, - 255, 255)', 'rgba(255, 0, 0, 0.8)'. \ - * @param array $line_color \ - */ - public function set_line_color (array $line_color) { + * Set Line Color Options \ + * Color of the painted line, expressed as a HTML color code. Examples of acceptable formats: '#FFFFFF', 'white', 'rgb(255, + * 255, 255)', 'rgba(255, 0, 0, 0.8)'. \ + * + * @param array $line_color \ + */ + public function set_line_color(array $line_color) + { $this->line_color = $line_color; } /** - * Get Line Width (pixels) \ - * Width of the painted line, in pixels. \ - * @return number $line_width \ - */ - public function get_line_width() { + * Get Line Width (pixels) \ + * Width of the painted line, in pixels. \ + * + * @return number $line_width \ + */ + public function get_line_width() + { return $this->line_width; } /** - * Set Line Width (pixels) \ - * Width of the painted line, in pixels. \ - * @param number $line_width \ - */ - public function set_line_width ($line_width) { + * Set Line Width (pixels) \ + * Width of the painted line, in pixels. \ + * + * @param number $line_width \ + */ + public function set_line_width($line_width) + { $this->line_width = $line_width; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/highlight_metadata.php b/src/Entities/QuestionTypes/highlight_metadata.php index 59b0bb0c..bace6585 100644 --- a/src/Entities/QuestionTypes/highlight_metadata.php +++ b/src/Entities/QuestionTypes/highlight_metadata.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class highlight_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class highlight_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/highlight_ui_style.php b/src/Entities/QuestionTypes/highlight_ui_style.php index 11e89753..703e993f 100644 --- a/src/Entities/QuestionTypes/highlight_ui_style.php +++ b/src/Entities/QuestionTypes/highlight_ui_style.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class highlight_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class highlight_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } - + } diff --git a/src/Entities/QuestionTypes/highlight_validation.php b/src/Entities/QuestionTypes/highlight_validation.php index 66066978..c643d508 100644 --- a/src/Entities/QuestionTypes/highlight_validation.php +++ b/src/Entities/QuestionTypes/highlight_validation.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class highlight_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class highlight_validation extends BaseQuestionTypeAttribute +{ protected $max_score; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Max Score \ - * The highest score a marker can award to this question response. \ - * @return number $max_score \ - */ - public function get_max_score() { + * Get Max Score \ + * The highest score a marker can award to this question response. \ + * + * @return number $max_score \ + */ + public function get_max_score() + { return $this->max_score; } /** - * Set Max Score \ - * The highest score a marker can award to this question response. \ - * @param number $max_score \ - */ - public function set_max_score ($max_score) { + * Set Max Score \ + * The highest score a marker can award to this question response. \ + * + * @param number $max_score \ + */ + public function set_max_score($max_score) + { $this->max_score = $max_score; } - + } diff --git a/src/Entities/QuestionTypes/hotspot.php b/src/Entities/QuestionTypes/hotspot.php index 124df314..36b8a031 100644 --- a/src/Entities/QuestionTypes/hotspot.php +++ b/src/Entities/QuestionTypes/hotspot.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class hotspot extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class hotspot extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -23,279 +24,335 @@ class hotspot extends BaseQuestionType { protected $area_attributes; protected $max_width; protected $multiple_responses; - + public function __construct( - $type - ) - { - $this->type = $type; - } + $type + ) { + $this->type = $type; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return hotspot_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return hotspot_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param hotspot_metadata $metadata \ - */ - public function set_metadata (hotspot_metadata $metadata) { + * Set metadata \ + * \ + * + * @param hotspot_metadata $metadata \ + */ + public function set_metadata(hotspot_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return hotspot_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return hotspot_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param hotspot_ui_style $ui_style \ - */ - public function set_ui_style (hotspot_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param hotspot_ui_style $ui_style \ + */ + public function set_ui_style(hotspot_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return hotspot_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return hotspot_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param hotspot_validation $validation \ - */ - public function set_validation (hotspot_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param hotspot_validation $validation \ + */ + public function set_validation(hotspot_validation $validation) + { $this->validation = $validation; } /** - * Get Stimulus Image \ - * Define an image to be annotated. \ - * @return hotspot_image $image \ - */ - public function get_image() { + * Get Stimulus Image \ + * Define an image to be annotated. \ + * + * @return hotspot_image $image \ + */ + public function get_image() + { return $this->image; } /** - * Set Stimulus Image \ - * Define an image to be annotated. \ - * @param hotspot_image $image \ - */ - public function set_image (hotspot_image $image) { + * Set Stimulus Image \ + * Define an image to be annotated. \ + * + * @param hotspot_image $image \ + */ + public function set_image(hotspot_image $image) + { $this->image = $image; } /** - * Get Areas \ - * An array of validation areas for the stimulus image. \ - * @return array $areas \ - */ - public function get_areas() { + * Get Areas \ + * An array of validation areas for the stimulus image. \ + * + * @return array $areas \ + */ + public function get_areas() + { return $this->areas; } /** - * Set Areas \ - * An array of validation areas for the stimulus image. \ - * @param array $areas \ - */ - public function set_areas (array $areas) { + * Set Areas \ + * An array of validation areas for the stimulus image. \ + * + * @param array $areas \ + */ + public function set_areas(array $areas) + { $this->areas = $areas; } /** - * Get Area Attributes \ - * \ - * @return hotspot_area_attributes $area_attributes \ - */ - public function get_area_attributes() { + * Get Area Attributes \ + * \ + * + * @return hotspot_area_attributes $area_attributes \ + */ + public function get_area_attributes() + { return $this->area_attributes; } /** - * Set Area Attributes \ - * \ - * @param hotspot_area_attributes $area_attributes \ - */ - public function set_area_attributes (hotspot_area_attributes $area_attributes) { + * Set Area Attributes \ + * \ + * + * @param hotspot_area_attributes $area_attributes \ + */ + public function set_area_attributes(hotspot_area_attributes $area_attributes) + { $this->area_attributes = $area_attributes; } /** - * Get Max Width \ - * Max width of response area. Define in em, px; or set to 'none' to stretch to full width of container. \ - * @return string $max_width \ - */ - public function get_max_width() { + * Get Max Width \ + * Max width of response area. Define in em, px; or set to 'none' to stretch to full width of container. \ + * + * @return string $max_width \ + */ + public function get_max_width() + { return $this->max_width; } /** - * Set Max Width \ - * Max width of response area. Define in em, px; or set to 'none' to stretch to full width of container. \ - * @param string $max_width \ - */ - public function set_max_width ($max_width) { + * Set Max Width \ + * Max width of response area. Define in em, px; or set to 'none' to stretch to full width of container. \ + * + * @param string $max_width \ + */ + public function set_max_width($max_width) + { $this->max_width = $max_width; } /** - * Get Multiple responses \ - * If multiple_responses is true the user will be able to select multiple hotspots. \ - * @return boolean $multiple_responses \ - */ - public function get_multiple_responses() { + * Get Multiple responses \ + * If multiple_responses is true the user will be able to select multiple hotspots. \ + * + * @return boolean $multiple_responses \ + */ + public function get_multiple_responses() + { return $this->multiple_responses; } /** - * Set Multiple responses \ - * If multiple_responses is true the user will be able to select multiple hotspots. \ - * @param boolean $multiple_responses \ - */ - public function set_multiple_responses ($multiple_responses) { + * Set Multiple responses \ + * If multiple_responses is true the user will be able to select multiple hotspots. \ + * + * @param boolean $multiple_responses \ + */ + public function set_multiple_responses($multiple_responses) + { $this->multiple_responses = $multiple_responses; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/hotspot_area_attributes.php b/src/Entities/QuestionTypes/hotspot_area_attributes.php index 7ff8a3cd..1104a824 100644 --- a/src/Entities/QuestionTypes/hotspot_area_attributes.php +++ b/src/Entities/QuestionTypes/hotspot_area_attributes.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class hotspot_area_attributes extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class hotspot_area_attributes extends BaseQuestionTypeAttribute +{ protected $global; protected $individual; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Global \ - * Attributes for all hotspots. \ - * @return hotspot_area_attributes_global $global \ - */ - public function get_global() { + * Get Global \ + * Attributes for all hotspots. \ + * + * @return hotspot_area_attributes_global $global \ + */ + public function get_global() + { return $this->global; } /** - * Set Global \ - * Attributes for all hotspots. \ - * @param hotspot_area_attributes_global $global \ - */ - public function set_global (hotspot_area_attributes_global $global) { + * Set Global \ + * Attributes for all hotspots. \ + * + * @param hotspot_area_attributes_global $global \ + */ + public function set_global(hotspot_area_attributes_global $global) + { $this->global = $global; } /** - * Get Individual \ - * Individual attributes per hotspot that have precedence over the global hotspot attributes \ - * @return array $individual \ - */ - public function get_individual() { + * Get Individual \ + * Individual attributes per hotspot that have precedence over the global hotspot attributes \ + * + * @return array $individual \ + */ + public function get_individual() + { return $this->individual; } /** - * Set Individual \ - * Individual attributes per hotspot that have precedence over the global hotspot attributes \ - * @param array $individual \ - */ - public function set_individual (array $individual) { + * Set Individual \ + * Individual attributes per hotspot that have precedence over the global hotspot attributes \ + * + * @param array $individual \ + */ + public function set_individual(array $individual) + { $this->individual = $individual; } - + } diff --git a/src/Entities/QuestionTypes/hotspot_area_attributes_global.php b/src/Entities/QuestionTypes/hotspot_area_attributes_global.php index e2b7722b..ece0b365 100644 --- a/src/Entities/QuestionTypes/hotspot_area_attributes_global.php +++ b/src/Entities/QuestionTypes/hotspot_area_attributes_global.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class hotspot_area_attributes_global extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class hotspot_area_attributes_global extends BaseQuestionTypeAttribute +{ protected $fill; protected $stroke; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Fill \ - * An RGBA string defining the fill for all hotspots. \ - * @return string $fill \ - */ - public function get_fill() { + * Get Fill \ + * An RGBA string defining the fill for all hotspots. \ + * + * @return string $fill \ + */ + public function get_fill() + { return $this->fill; } /** - * Set Fill \ - * An RGBA string defining the fill for all hotspots. \ - * @param string $fill \ - */ - public function set_fill ($fill) { + * Set Fill \ + * An RGBA string defining the fill for all hotspots. \ + * + * @param string $fill \ + */ + public function set_fill($fill) + { $this->fill = $fill; } /** - * Get Stroke \ - * An RGBA string defining the stroke for all hotspots. \ - * @return string $stroke \ - */ - public function get_stroke() { + * Get Stroke \ + * An RGBA string defining the stroke for all hotspots. \ + * + * @return string $stroke \ + */ + public function get_stroke() + { return $this->stroke; } /** - * Set Stroke \ - * An RGBA string defining the stroke for all hotspots. \ - * @param string $stroke \ - */ - public function set_stroke ($stroke) { + * Set Stroke \ + * An RGBA string defining the stroke for all hotspots. \ + * + * @param string $stroke \ + */ + public function set_stroke($stroke) + { $this->stroke = $stroke; } - + } diff --git a/src/Entities/QuestionTypes/hotspot_area_attributes_individual_item.php b/src/Entities/QuestionTypes/hotspot_area_attributes_individual_item.php index aa2c7a21..5871bf3b 100644 --- a/src/Entities/QuestionTypes/hotspot_area_attributes_individual_item.php +++ b/src/Entities/QuestionTypes/hotspot_area_attributes_individual_item.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class hotspot_area_attributes_individual_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class hotspot_area_attributes_individual_item extends BaseQuestionTypeAttribute +{ protected $area; protected $label; protected $fill; protected $stroke; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Area \ - * \ - * @return string $area ie. \ - */ - public function get_area() { + * Get Area \ + * \ + * + * @return string $area ie. \ + */ + public function get_area() + { return $this->area; } /** - * Set Area \ - * \ - * @param string $area ie. \ - */ - public function set_area ($area) { + * Set Area \ + * \ + * + * @param string $area ie. \ + */ + public function set_area($area) + { $this->area = $area; } /** - * Get Label \ - * A label for the hotspot that is not shown to the student, but is useful when reviewing student responses \ - * @return string $label \ - */ - public function get_label() { + * Get Label \ + * A label for the hotspot that is not shown to the student, but is useful when reviewing student responses \ + * + * @return string $label \ + */ + public function get_label() + { return $this->label; } /** - * Set Label \ - * A label for the hotspot that is not shown to the student, but is useful when reviewing student responses \ - * @param string $label \ - */ - public function set_label ($label) { + * Set Label \ + * A label for the hotspot that is not shown to the student, but is useful when reviewing student responses \ + * + * @param string $label \ + */ + public function set_label($label) + { $this->label = $label; } /** - * Get Fill \ - * An RGBA string defining the fill for the hotspot \ - * @return string $fill \ - */ - public function get_fill() { + * Get Fill \ + * An RGBA string defining the fill for the hotspot \ + * + * @return string $fill \ + */ + public function get_fill() + { return $this->fill; } /** - * Set Fill \ - * An RGBA string defining the fill for the hotspot \ - * @param string $fill \ - */ - public function set_fill ($fill) { + * Set Fill \ + * An RGBA string defining the fill for the hotspot \ + * + * @param string $fill \ + */ + public function set_fill($fill) + { $this->fill = $fill; } /** - * Get Stroke \ - * An RGBA string defining the stroke for the hotspot \ - * @return string $stroke \ - */ - public function get_stroke() { + * Get Stroke \ + * An RGBA string defining the stroke for the hotspot \ + * + * @return string $stroke \ + */ + public function get_stroke() + { return $this->stroke; } /** - * Set Stroke \ - * An RGBA string defining the stroke for the hotspot \ - * @param string $stroke \ - */ - public function set_stroke ($stroke) { + * Set Stroke \ + * An RGBA string defining the stroke for the hotspot \ + * + * @param string $stroke \ + */ + public function set_stroke($stroke) + { $this->stroke = $stroke; } - + } diff --git a/src/Entities/QuestionTypes/hotspot_image.php b/src/Entities/QuestionTypes/hotspot_image.php index a033ef51..be4918f4 100644 --- a/src/Entities/QuestionTypes/hotspot_image.php +++ b/src/Entities/QuestionTypes/hotspot_image.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class hotspot_image extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class hotspot_image extends BaseQuestionTypeAttribute +{ protected $source; protected $width; protected $height; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Source URL \ - * The image that should be displayed. \ - * @return string $source \ - */ - public function get_source() { + * Get Source URL \ + * The image that should be displayed. \ + * + * @return string $source \ + */ + public function get_source() + { return $this->source; } /** - * Set Source URL \ - * The image that should be displayed. \ - * @param string $source \ - */ - public function set_source ($source) { + * Set Source URL \ + * The image that should be displayed. \ + * + * @param string $source \ + */ + public function set_source($source) + { $this->source = $source; } /** - * Get Width in pixels \ - * The pixel width of the image is needed to calculate the aspect ratio of the image. \ - * @return number $width \ - */ - public function get_width() { + * Get Width in pixels \ + * The pixel width of the image is needed to calculate the aspect ratio of the image. \ + * + * @return number $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width in pixels \ - * The pixel width of the image is needed to calculate the aspect ratio of the image. \ - * @param number $width \ - */ - public function set_width ($width) { + * Set Width in pixels \ + * The pixel width of the image is needed to calculate the aspect ratio of the image. \ + * + * @param number $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height in pixels \ - * The pixel height of the image is needed to calculate the aspect ratio of the image. \ - * @return number $height \ - */ - public function get_height() { + * Get Height in pixels \ + * The pixel height of the image is needed to calculate the aspect ratio of the image. \ + * + * @return number $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height in pixels \ - * The pixel height of the image is needed to calculate the aspect ratio of the image. \ - * @param number $height \ - */ - public function set_height ($height) { + * Set Height in pixels \ + * The pixel height of the image is needed to calculate the aspect ratio of the image. \ + * + * @param number $height \ + */ + public function set_height($height) + { $this->height = $height; } - + } diff --git a/src/Entities/QuestionTypes/hotspot_metadata.php b/src/Entities/QuestionTypes/hotspot_metadata.php index 5ace5b03..8dfd9c23 100644 --- a/src/Entities/QuestionTypes/hotspot_metadata.php +++ b/src/Entities/QuestionTypes/hotspot_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class hotspot_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class hotspot_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/hotspot_ui_style.php b/src/Entities/QuestionTypes/hotspot_ui_style.php index 26632a5c..3db04c68 100644 --- a/src/Entities/QuestionTypes/hotspot_ui_style.php +++ b/src/Entities/QuestionTypes/hotspot_ui_style.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class hotspot_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class hotspot_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/hotspot_validation.php b/src/Entities/QuestionTypes/hotspot_validation.php index 46b8fbf6..3aaf01bd 100644 --- a/src/Entities/QuestionTypes/hotspot_validation.php +++ b/src/Entities/QuestionTypes/hotspot_validation.php @@ -5,100 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class hotspot_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class hotspot_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; + protected $alt_responses; protected $rounding; - public function __construct( - ) + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return hotspot_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return hotspot_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param hotspot_validation_valid_response $valid_response \ - */ - public function set_valid_response (hotspot_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param hotspot_validation_valid_response $valid_response \ + */ + public function set_valid_response(hotspot_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { + return $this->alt_responses; + } + + /** + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { + $this->alt_responses = $alt_responses; + } + + /** + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - public function get_alt_responses() { - // TODO: Hardcode this stuff until Kerem fix the hotspot question type to support `alt_responses` - return null; - } } diff --git a/src/Entities/QuestionTypes/hotspot_validation_alt_responses_item.php b/src/Entities/QuestionTypes/hotspot_validation_alt_responses_item.php new file mode 100644 index 00000000..5f8cad78 --- /dev/null +++ b/src/Entities/QuestionTypes/hotspot_validation_alt_responses_item.php @@ -0,0 +1,66 @@ +score; + } + + /** + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { + $this->score = $score; + } + + /** + * Get Value \ + * An array containing a single valid response or many if multiple_responses is true. \ + * + * @return array $value \ + */ + public function get_value() + { + return $this->value; + } + + /** + * Set Value \ + * An array containing a single valid response or many if multiple_responses is true. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { + $this->value = $value; + } + + +} + diff --git a/src/Entities/QuestionTypes/hotspot_validation_valid_response.php b/src/Entities/QuestionTypes/hotspot_validation_valid_response.php index 83a457b7..a8b9c483 100644 --- a/src/Entities/QuestionTypes/hotspot_validation_valid_response.php +++ b/src/Entities/QuestionTypes/hotspot_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class hotspot_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class hotspot_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing a single valid response or many if multiple_responses is true. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing a single valid response or many if multiple_responses is true. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing a single valid response or many if multiple_responses is true. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing a single valid response or many if multiple_responses is true. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeassociation.php b/src/Entities/QuestionTypes/imageclozeassociation.php index 562f634f..5732506c 100644 --- a/src/Entities/QuestionTypes/imageclozeassociation.php +++ b/src/Entities/QuestionTypes/imageclozeassociation.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeassociation extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeassociation extends BaseQuestionType +{ protected $ui_style; protected $image; protected $response_positions; @@ -25,323 +26,387 @@ class imageclozeassociation extends BaseQuestionType { protected $img_src; protected $possible_responses; protected $duplicate_responses; - + public function __construct( - imageclozeassociation_image $image, - array $response_positions, - $type, - array $possible_responses - ) - { - $this->image = $image; - $this->response_positions = $response_positions; - $this->type = $type; - $this->possible_responses = $possible_responses; - } - - /** - * Get ui_style \ - * \ - * @return imageclozeassociation_ui_style $ui_style \ - */ - public function get_ui_style() { + imageclozeassociation_image $image, + array $response_positions, + $type, + array $possible_responses + ) { + $this->image = $image; + $this->response_positions = $response_positions; + $this->type = $type; + $this->possible_responses = $possible_responses; + } + + /** + * Get ui_style \ + * \ + * + * @return imageclozeassociation_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param imageclozeassociation_ui_style $ui_style \ - */ - public function set_ui_style (imageclozeassociation_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param imageclozeassociation_ui_style $ui_style \ + */ + public function set_ui_style(imageclozeassociation_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Image parameters \ - * Defines the attributes/metadata for the image \ - * @return imageclozeassociation_image $image \ - */ - public function get_image() { + * Get Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @return imageclozeassociation_image $image \ + */ + public function get_image() + { return $this->image; } /** - * Set Image parameters \ - * Defines the attributes/metadata for the image \ - * @param imageclozeassociation_image $image \ - */ - public function set_image (imageclozeassociation_image $image) { + * Set Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @param imageclozeassociation_image $image \ + */ + public function set_image(imageclozeassociation_image $image) + { $this->image = $image; } /** - * Get Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @return array $response_positions \ - */ - public function get_response_positions() { + * Get Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @return array $response_positions \ + */ + public function get_response_positions() + { return $this->response_positions; } /** - * Set Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @param array $response_positions \ - */ - public function set_response_positions (array $response_positions) { + * Set Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @param array $response_positions \ + */ + public function set_response_positions(array $response_positions) + { $this->response_positions = $response_positions; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return imageclozeassociation_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return imageclozeassociation_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param imageclozeassociation_response_container $response_container \ - */ - public function set_response_container (imageclozeassociation_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param imageclozeassociation_response_container $response_container \ + */ + public function set_response_container(imageclozeassociation_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return imageclozeassociation_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return imageclozeassociation_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param imageclozeassociation_metadata $metadata \ - */ - public function set_metadata (imageclozeassociation_metadata $metadata) { + * Set metadata \ + * \ + * + * @param imageclozeassociation_metadata $metadata \ + */ + public function set_metadata(imageclozeassociation_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return imageclozeassociation_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return imageclozeassociation_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param imageclozeassociation_validation $validation \ - */ - public function set_validation (imageclozeassociation_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param imageclozeassociation_validation $validation \ + */ + public function set_validation(imageclozeassociation_validation $validation) + { $this->validation = $validation; } /** - * Get Image URI \ - * Absolute URI for the background image. \ - * @return string $img_src \ - */ - public function get_img_src() { + * Get Image URI \ + * Absolute URI for the background image. \ + * + * @return string $img_src \ + */ + public function get_img_src() + { return $this->img_src; } /** - * Set Image URI \ - * Absolute URI for the background image. \ - * @param string $img_src \ - */ - public function set_img_src ($img_src) { + * Set Image URI \ + * Absolute URI for the background image. \ + * + * @param string $img_src \ + */ + public function set_img_src($img_src) + { $this->img_src = $img_src; } /** - * Get Possible Responses \ - * Array of strings values that need to be dragged to the actual response position. \ - * @return array $possible_responses \ - */ - public function get_possible_responses() { + * Get Possible Responses \ + * Array of strings values that need to be dragged to the actual response position. \ + * + * @return array $possible_responses \ + */ + public function get_possible_responses() + { return $this->possible_responses; } /** - * Set Possible Responses \ - * Array of strings values that need to be dragged to the actual response position. \ - * @param array $possible_responses \ - */ - public function set_possible_responses (array $possible_responses) { + * Set Possible Responses \ + * Array of strings values that need to be dragged to the actual response position. \ + * + * @param array $possible_responses \ + */ + public function set_possible_responses(array $possible_responses) + { $this->possible_responses = $possible_responses; } /** - * Get Duplicate responses \ - * When true the items from the possible_responses will be reusable infinite times. \ - * @return boolean $duplicate_responses \ - */ - public function get_duplicate_responses() { + * Get Duplicate responses \ + * When true the items from the possible_responses will be reusable infinite times. \ + * + * @return boolean $duplicate_responses \ + */ + public function get_duplicate_responses() + { return $this->duplicate_responses; } /** - * Set Duplicate responses \ - * When true the items from the possible_responses will be reusable infinite times. \ - * @param boolean $duplicate_responses \ - */ - public function set_duplicate_responses ($duplicate_responses) { + * Set Duplicate responses \ + * When true the items from the possible_responses will be reusable infinite times. \ + * + * @param boolean $duplicate_responses \ + */ + public function set_duplicate_responses($duplicate_responses) + { $this->duplicate_responses = $duplicate_responses; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/imageclozeassociation_image.php b/src/Entities/QuestionTypes/imageclozeassociation_image.php index c0c93583..aa101734 100644 --- a/src/Entities/QuestionTypes/imageclozeassociation_image.php +++ b/src/Entities/QuestionTypes/imageclozeassociation_image.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeassociation_image extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeassociation_image extends BaseQuestionTypeAttribute +{ protected $src; protected $alt; protected $title; protected $scale; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Image URI \ - * \ - * @return string $src \ - */ - public function get_src() { + * Get Image URI \ + * \ + * + * @return string $src \ + */ + public function get_src() + { return $this->src; } /** - * Set Image URI \ - * \ - * @param string $src \ - */ - public function set_src ($src) { + * Set Image URI \ + * \ + * + * @param string $src \ + */ + public function set_src($src) + { $this->src = $src; } /** - * Get Image alternative text \ - * \ - * @return string $alt \ - */ - public function get_alt() { + * Get Image alternative text \ + * \ + * + * @return string $alt \ + */ + public function get_alt() + { return $this->alt; } /** - * Set Image alternative text \ - * \ - * @param string $alt \ - */ - public function set_alt ($alt) { + * Set Image alternative text \ + * \ + * + * @param string $alt \ + */ + public function set_alt($alt) + { $this->alt = $alt; } /** - * Get Image title \ - * \ - * @return string $title \ - */ - public function get_title() { + * Get Image title \ + * \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Image title \ - * \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Image title \ + * \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } /** - * Get Image scale \ - * Allow image to be scaled along with font size \ - * @return boolean $scale \ - */ - public function get_scale() { + * Get Image scale \ + * Allow image to be scaled along with font size \ + * + * @return boolean $scale \ + */ + public function get_scale() + { return $this->scale; } /** - * Set Image scale \ - * Allow image to be scaled along with font size \ - * @param boolean $scale \ - */ - public function set_scale ($scale) { + * Set Image scale \ + * Allow image to be scaled along with font size \ + * + * @param boolean $scale \ + */ + public function set_scale($scale) + { $this->scale = $scale; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeassociation_metadata.php b/src/Entities/QuestionTypes/imageclozeassociation_metadata.php index 57d2d357..83f88a0e 100644 --- a/src/Entities/QuestionTypes/imageclozeassociation_metadata.php +++ b/src/Entities/QuestionTypes/imageclozeassociation_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeassociation_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeassociation_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeassociation_response_container.php b/src/Entities/QuestionTypes/imageclozeassociation_response_container.php index 3f668a46..aeabe51d 100644 --- a/src/Entities/QuestionTypes/imageclozeassociation_response_container.php +++ b/src/Entities/QuestionTypes/imageclozeassociation_response_container.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeassociation_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeassociation_response_container extends BaseQuestionTypeAttribute +{ protected $pointer; protected $height; protected $width; protected $wordwrap; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @return string $pointer \ - */ - public function get_pointer() { + * Get Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @return string $pointer \ + */ + public function get_pointer() + { return $this->pointer; } /** - * Set Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @param string $pointer \ - */ - public function set_pointer ($pointer) { + * Set Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @param string $pointer \ + */ + public function set_pointer($pointer) + { $this->pointer = $pointer; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Wordwrap \ - * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ - * @return boolean $wordwrap \ - */ - public function get_wordwrap() { + * Get Wordwrap \ + * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ + * + * @return boolean $wordwrap \ + */ + public function get_wordwrap() + { return $this->wordwrap; } /** - * Set Wordwrap \ - * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ - * @param boolean $wordwrap \ - */ - public function set_wordwrap ($wordwrap) { + * Set Wordwrap \ + * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ + * + * @param boolean $wordwrap \ + */ + public function set_wordwrap($wordwrap) + { $this->wordwrap = $wordwrap; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeassociation_response_containers_item.php b/src/Entities/QuestionTypes/imageclozeassociation_response_containers_item.php index c909950a..f66c3959 100644 --- a/src/Entities/QuestionTypes/imageclozeassociation_response_containers_item.php +++ b/src/Entities/QuestionTypes/imageclozeassociation_response_containers_item.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeassociation_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeassociation_response_containers_item extends BaseQuestionTypeAttribute +{ protected $pointer; protected $height; protected $width; protected $wordwrap; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @return string $pointer \ - */ - public function get_pointer() { + * Get Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @return string $pointer \ + */ + public function get_pointer() + { return $this->pointer; } /** - * Set Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @param string $pointer \ - */ - public function set_pointer ($pointer) { + * Set Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @param string $pointer \ + */ + public function set_pointer($pointer) + { $this->pointer = $pointer; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Wordwrap \ - * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ - * @return boolean $wordwrap \ - */ - public function get_wordwrap() { + * Get Wordwrap \ + * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ + * + * @return boolean $wordwrap \ + */ + public function get_wordwrap() + { return $this->wordwrap; } /** - * Set Wordwrap \ - * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ - * @param boolean $wordwrap \ - */ - public function set_wordwrap ($wordwrap) { + * Set Wordwrap \ + * Determines if the possible response text should wrap or show an ellipsis when placed in a response container. \ + * + * @param boolean $wordwrap \ + */ + public function set_wordwrap($wordwrap) + { $this->wordwrap = $wordwrap; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeassociation_ui_style.php b/src/Entities/QuestionTypes/imageclozeassociation_ui_style.php index 1b269037..1d8ead62 100644 --- a/src/Entities/QuestionTypes/imageclozeassociation_ui_style.php +++ b/src/Entities/QuestionTypes/imageclozeassociation_ui_style.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeassociation_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeassociation_ui_style extends BaseQuestionTypeAttribute +{ protected $possibility_list_position; protected $fontsize; protected $validation_stem_numeration; protected $show_drag_handle; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Possibility List Position \ - * Defines where the possibility list sits relative to the input zone. \ - * @return string $possibility_list_position \ - */ - public function get_possibility_list_position() { + * Get Possibility List Position \ + * Defines where the possibility list sits relative to the input zone. \ + * + * @return string $possibility_list_position \ + */ + public function get_possibility_list_position() + { return $this->possibility_list_position; } /** - * Set Possibility List Position \ - * Defines where the possibility list sits relative to the input zone. \ - * @param string $possibility_list_position \ - */ - public function set_possibility_list_position ($possibility_list_position) { + * Set Possibility List Position \ + * Defines where the possibility list sits relative to the input zone. \ + * + * @param string $possibility_list_position \ + */ + public function set_possibility_list_position($possibility_list_position) + { $this->possibility_list_position = $possibility_list_position; } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Show drag handle \ - * Determines whether to show the drag handle. \ - * @return boolean $show_drag_handle \ - */ - public function get_show_drag_handle() { + * Get Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @return boolean $show_drag_handle \ + */ + public function get_show_drag_handle() + { return $this->show_drag_handle; } /** - * Set Show drag handle \ - * Determines whether to show the drag handle. \ - * @param boolean $show_drag_handle \ - */ - public function set_show_drag_handle ($show_drag_handle) { + * Set Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @param boolean $show_drag_handle \ + */ + public function set_show_drag_handle($show_drag_handle) + { $this->show_drag_handle = $show_drag_handle; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeassociation_validation.php b/src/Entities/QuestionTypes/imageclozeassociation_validation.php index f86c8a24..e831cdb3 100644 --- a/src/Entities/QuestionTypes/imageclozeassociation_validation.php +++ b/src/Entities/QuestionTypes/imageclozeassociation_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeassociation_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeassociation_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return imageclozeassociation_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return imageclozeassociation_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param imageclozeassociation_validation_valid_response $valid_response \ - */ - public function set_valid_response (imageclozeassociation_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param imageclozeassociation_validation_valid_response $valid_response \ + */ + public function set_valid_response(imageclozeassociation_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeassociation_validation_alt_responses_item.php b/src/Entities/QuestionTypes/imageclozeassociation_validation_alt_responses_item.php index fda4b3d6..bef32493 100644 --- a/src/Entities/QuestionTypes/imageclozeassociation_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/imageclozeassociation_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeassociation_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeassociation_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeassociation_validation_valid_response.php b/src/Entities/QuestionTypes/imageclozeassociation_validation_valid_response.php index cd8d723f..48a4bde9 100644 --- a/src/Entities/QuestionTypes/imageclozeassociation_validation_valid_response.php +++ b/src/Entities/QuestionTypes/imageclozeassociation_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeassociation_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeassociation_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing the valid responses for each response in response_positions in corresponding order. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing the valid responses for each response in response_positions in corresponding order. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing the valid responses for each response in response_positions in corresponding order. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing the valid responses for each response in response_positions in corresponding order. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozechemistry.php b/src/Entities/QuestionTypes/imageclozechemistry.php index ca9943c1..55d96ea1 100644 --- a/src/Entities/QuestionTypes/imageclozechemistry.php +++ b/src/Entities/QuestionTypes/imageclozechemistry.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozechemistry extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozechemistry extends BaseQuestionType +{ protected $image; protected $response_positions; protected $response_container; @@ -27,361 +28,433 @@ class imageclozechemistry extends BaseQuestionType { protected $numberPad; protected $showHints; protected $symbols; - + public function __construct( - imageclozechemistry_image $image, - array $response_positions, - array $response_containers, - $type - ) - { - $this->image = $image; - $this->response_positions = $response_positions; - $this->response_containers = $response_containers; - $this->type = $type; - } - - /** - * Get Image parameters \ - * Defines the attributes/metadata for the image \ - * @return imageclozechemistry_image $image \ - */ - public function get_image() { + imageclozechemistry_image $image, + array $response_positions, + array $response_containers, + $type + ) { + $this->image = $image; + $this->response_positions = $response_positions; + $this->response_containers = $response_containers; + $this->type = $type; + } + + /** + * Get Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @return imageclozechemistry_image $image \ + */ + public function get_image() + { return $this->image; } /** - * Set Image parameters \ - * Defines the attributes/metadata for the image \ - * @param imageclozechemistry_image $image \ - */ - public function set_image (imageclozechemistry_image $image) { + * Set Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @param imageclozechemistry_image $image \ + */ + public function set_image(imageclozechemistry_image $image) + { $this->image = $image; } /** - * Get Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @return array $response_positions \ - */ - public function get_response_positions() { + * Get Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @return array $response_positions \ + */ + public function get_response_positions() + { return $this->response_positions; } /** - * Set Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @param array $response_positions \ - */ - public function set_response_positions (array $response_positions) { + * Set Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @param array $response_positions \ + */ + public function set_response_positions(array $response_positions) + { $this->response_positions = $response_positions; } /** - * Get Response Container (global) \ - * Define the template and dimensions for all response containers \ - * @return imageclozechemistry_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Define the template and dimensions for all response containers \ + * + * @return imageclozechemistry_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Define the template and dimensions for all response containers \ - * @param imageclozechemistry_response_container $response_container \ - */ - public function set_response_container (imageclozechemistry_response_container $response_container) { + * Set Response Container (global) \ + * Define the template and dimensions for all response containers \ + * + * @param imageclozechemistry_response_container $response_container \ + */ + public function set_response_container(imageclozechemistry_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Containers (individual) \ - * Nest response containers within the question template's response areas \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Containers (individual) \ + * Nest response containers within the question template's response areas \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Containers (individual) \ - * Nest response containers within the question template's response areas \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Containers (individual) \ + * Nest response containers within the question template's response areas \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return imageclozechemistry_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return imageclozechemistry_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param imageclozechemistry_metadata $metadata \ - */ - public function set_metadata (imageclozechemistry_metadata $metadata) { + * Set metadata \ + * \ + * + * @param imageclozechemistry_metadata $metadata \ + */ + public function set_metadata(imageclozechemistry_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return imageclozechemistry_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return imageclozechemistry_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param imageclozechemistry_ui_style $ui_style \ - */ - public function set_ui_style (imageclozechemistry_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param imageclozechemistry_ui_style $ui_style \ + */ + public function set_ui_style(imageclozechemistry_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return imageclozechemistry_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return imageclozechemistry_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param imageclozechemistry_validation $validation \ - */ - public function set_validation (imageclozechemistry_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param imageclozechemistry_validation $validation \ + */ + public function set_validation(imageclozechemistry_validation $validation) + { $this->validation = $validation; } /** - * Get Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @return array $text_blocks \ - */ - public function get_text_blocks() { + * Get Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @return array $text_blocks \ + */ + public function get_text_blocks() + { return $this->text_blocks; } /** - * Set Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @param array $text_blocks \ - */ - public function set_text_blocks (array $text_blocks) { + * Set Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @param array $text_blocks \ + */ + public function set_text_blocks(array $text_blocks) + { $this->text_blocks = $text_blocks; } /** - * Get Custom Number Pad \ - * \ - * @return array $numberPad \ - */ - public function get_numberPad() { + * Get Custom Number Pad \ + * \ + * + * @return array $numberPad \ + */ + public function get_numberPad() + { return $this->numberPad; } /** - * Set Custom Number Pad \ - * \ - * @param array $numberPad \ - */ - public function set_numberPad (array $numberPad) { + * Set Custom Number Pad \ + * \ + * + * @param array $numberPad \ + */ + public function set_numberPad(array $numberPad) + { $this->numberPad = $numberPad; } /** - * Get Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/imageclozechemistry_image.php b/src/Entities/QuestionTypes/imageclozechemistry_image.php index 605cdb0c..e650ec9b 100644 --- a/src/Entities/QuestionTypes/imageclozechemistry_image.php +++ b/src/Entities/QuestionTypes/imageclozechemistry_image.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozechemistry_image extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozechemistry_image extends BaseQuestionTypeAttribute +{ protected $src; protected $alt; protected $title; protected $scale; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Image URI \ - * \ - * @return string $src \ - */ - public function get_src() { + * Get Image URI \ + * \ + * + * @return string $src \ + */ + public function get_src() + { return $this->src; } /** - * Set Image URI \ - * \ - * @param string $src \ - */ - public function set_src ($src) { + * Set Image URI \ + * \ + * + * @param string $src \ + */ + public function set_src($src) + { $this->src = $src; } /** - * Get Image alternative text \ - * \ - * @return string $alt \ - */ - public function get_alt() { + * Get Image alternative text \ + * \ + * + * @return string $alt \ + */ + public function get_alt() + { return $this->alt; } /** - * Set Image alternative text \ - * \ - * @param string $alt \ - */ - public function set_alt ($alt) { + * Set Image alternative text \ + * \ + * + * @param string $alt \ + */ + public function set_alt($alt) + { $this->alt = $alt; } /** - * Get Image title \ - * \ - * @return string $title \ - */ - public function get_title() { + * Get Image title \ + * \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Image title \ - * \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Image title \ + * \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } /** - * Get Image scale \ - * Allow image to be scaled along with font size \ - * @return boolean $scale \ - */ - public function get_scale() { + * Get Image scale \ + * Allow image to be scaled along with font size \ + * + * @return boolean $scale \ + */ + public function get_scale() + { return $this->scale; } /** - * Set Image scale \ - * Allow image to be scaled along with font size \ - * @param boolean $scale \ - */ - public function set_scale ($scale) { + * Set Image scale \ + * Allow image to be scaled along with font size \ + * + * @param boolean $scale \ + */ + public function set_scale($scale) + { $this->scale = $scale; } - + } diff --git a/src/Entities/QuestionTypes/imageclozechemistry_metadata.php b/src/Entities/QuestionTypes/imageclozechemistry_metadata.php index 1faf11ca..f46f7908 100644 --- a/src/Entities/QuestionTypes/imageclozechemistry_metadata.php +++ b/src/Entities/QuestionTypes/imageclozechemistry_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozechemistry_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozechemistry_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/imageclozechemistry_response_container.php b/src/Entities/QuestionTypes/imageclozechemistry_response_container.php index c34ae839..8edf1165 100644 --- a/src/Entities/QuestionTypes/imageclozechemistry_response_container.php +++ b/src/Entities/QuestionTypes/imageclozechemistry_response_container.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozechemistry_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozechemistry_response_container extends BaseQuestionTypeAttribute +{ protected $template; protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Template \ - * \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/imageclozechemistry_response_containers_item.php b/src/Entities/QuestionTypes/imageclozechemistry_response_containers_item.php index c23c9b81..2dedb04a 100644 --- a/src/Entities/QuestionTypes/imageclozechemistry_response_containers_item.php +++ b/src/Entities/QuestionTypes/imageclozechemistry_response_containers_item.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozechemistry_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozechemistry_response_containers_item extends BaseQuestionTypeAttribute +{ protected $template; protected $width; protected $height; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Template \ - * \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Width \ - * \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height \ - * \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } - + } diff --git a/src/Entities/QuestionTypes/imageclozechemistry_ui_style.php b/src/Entities/QuestionTypes/imageclozechemistry_ui_style.php index 2beb0567..06ebda9e 100644 --- a/src/Entities/QuestionTypes/imageclozechemistry_ui_style.php +++ b/src/Entities/QuestionTypes/imageclozechemistry_ui_style.php @@ -5,134 +5,158 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozechemistry_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozechemistry_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; protected $response_font_scale; protected $type; protected $min_width; protected $keyboard_below_response_area; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Response font scale \ - * This scales the font relative to the question's font size. \ - * @return string $response_font_scale \ - */ - public function get_response_font_scale() { + * Get Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @return string $response_font_scale \ + */ + public function get_response_font_scale() + { return $this->response_font_scale; } /** - * Set Response font scale \ - * This scales the font relative to the question's font size. \ - * @param string $response_font_scale \ - */ - public function set_response_font_scale ($response_font_scale) { + * Set Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @param string $response_font_scale \ + */ + public function set_response_font_scale($response_font_scale) + { $this->response_font_scale = $response_font_scale; } /** - * Get Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @return string $min_width \ - */ - public function get_min_width() { + * Get Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @return string $min_width \ + */ + public function get_min_width() + { return $this->min_width; } /** - * Set Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @param string $min_width \ - */ - public function set_min_width ($min_width) { + * Set Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @param string $min_width \ + */ + public function set_min_width($min_width) + { $this->min_width = $min_width; } /** - * Get Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @return boolean $keyboard_below_response_area \ - */ - public function get_keyboard_below_response_area() { + * Get Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @return boolean $keyboard_below_response_area \ + */ + public function get_keyboard_below_response_area() + { return $this->keyboard_below_response_area; } /** - * Set Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @param boolean $keyboard_below_response_area \ - */ - public function set_keyboard_below_response_area ($keyboard_below_response_area) { + * Set Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @param boolean $keyboard_below_response_area \ + */ + public function set_keyboard_below_response_area($keyboard_below_response_area) + { $this->keyboard_below_response_area = $keyboard_below_response_area; } - + } diff --git a/src/Entities/QuestionTypes/imageclozechemistry_validation.php b/src/Entities/QuestionTypes/imageclozechemistry_validation.php index af016003..3f6abf19 100644 --- a/src/Entities/QuestionTypes/imageclozechemistry_validation.php +++ b/src/Entities/QuestionTypes/imageclozechemistry_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozechemistry_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozechemistry_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid Responses \ - * An object containing the valid response score and value. \ - * @return imageclozechemistry_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid Responses \ + * An object containing the valid response score and value. \ + * + * @return imageclozechemistry_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid Responses \ - * An object containing the valid response score and value. \ - * @param imageclozechemistry_validation_valid_response $valid_response \ - */ - public function set_valid_response (imageclozechemistry_validation_valid_response $valid_response) { + * Set Valid Responses \ + * An object containing the valid response score and value. \ + * + * @param imageclozechemistry_validation_valid_response $valid_response \ + */ + public function set_valid_response(imageclozechemistry_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/imageclozechemistry_validation_alt_responses_item.php b/src/Entities/QuestionTypes/imageclozechemistry_validation_alt_responses_item.php index d29f17e6..e8c12d91 100644 --- a/src/Entities/QuestionTypes/imageclozechemistry_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/imageclozechemistry_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozechemistry_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozechemistry_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Values \ - * An array of arrays that contain the valid responses. \ - * @return array $value \ - */ - public function get_value() { + * Get Values \ + * An array of arrays that contain the valid responses. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Values \ - * An array of arrays that contain the valid responses. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Values \ + * An array of arrays that contain the valid responses. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozechemistry_validation_valid_response.php b/src/Entities/QuestionTypes/imageclozechemistry_validation_valid_response.php index 87b009be..59a8e519 100644 --- a/src/Entities/QuestionTypes/imageclozechemistry_validation_valid_response.php +++ b/src/Entities/QuestionTypes/imageclozechemistry_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozechemistry_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozechemistry_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Equation Values \ - * A collection of arrays containing objects with the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Equation Values \ + * A collection of arrays containing objects with the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Equation Values \ - * A collection of arrays containing objects with the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Equation Values \ + * A collection of arrays containing objects with the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozedropdown.php b/src/Entities/QuestionTypes/imageclozedropdown.php index 1ba81775..a61c443b 100644 --- a/src/Entities/QuestionTypes/imageclozedropdown.php +++ b/src/Entities/QuestionTypes/imageclozedropdown.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozedropdown extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozedropdown extends BaseQuestionType +{ protected $image; protected $response_positions; protected $response_container; @@ -24,307 +25,367 @@ class imageclozedropdown extends BaseQuestionType { protected $validation; protected $img_src; protected $possible_responses; - + public function __construct( - imageclozedropdown_image $image, - array $response_positions, - $type, - array $possible_responses - ) - { - $this->image = $image; - $this->response_positions = $response_positions; - $this->type = $type; - $this->possible_responses = $possible_responses; - } + imageclozedropdown_image $image, + array $response_positions, + $type, + array $possible_responses + ) { + $this->image = $image; + $this->response_positions = $response_positions; + $this->type = $type; + $this->possible_responses = $possible_responses; + } /** - * Get Image parameters \ - * Defines the attributes/metadata for the image \ - * @return imageclozedropdown_image $image \ - */ - public function get_image() { + * Get Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @return imageclozedropdown_image $image \ + */ + public function get_image() + { return $this->image; } /** - * Set Image parameters \ - * Defines the attributes/metadata for the image \ - * @param imageclozedropdown_image $image \ - */ - public function set_image (imageclozedropdown_image $image) { + * Set Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @param imageclozedropdown_image $image \ + */ + public function set_image(imageclozedropdown_image $image) + { $this->image = $image; } /** - * Get Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @return array $response_positions \ - */ - public function get_response_positions() { + * Get Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @return array $response_positions \ + */ + public function get_response_positions() + { return $this->response_positions; } /** - * Set Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @param array $response_positions \ - */ - public function set_response_positions (array $response_positions) { + * Set Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @param array $response_positions \ + */ + public function set_response_positions(array $response_positions) + { $this->response_positions = $response_positions; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return imageclozedropdown_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return imageclozedropdown_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param imageclozedropdown_response_container $response_container \ - */ - public function set_response_container (imageclozedropdown_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param imageclozedropdown_response_container $response_container \ + */ + public function set_response_container(imageclozedropdown_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return imageclozedropdown_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return imageclozedropdown_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param imageclozedropdown_metadata $metadata \ - */ - public function set_metadata (imageclozedropdown_metadata $metadata) { + * Set metadata \ + * \ + * + * @param imageclozedropdown_metadata $metadata \ + */ + public function set_metadata(imageclozedropdown_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return imageclozedropdown_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return imageclozedropdown_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param imageclozedropdown_ui_style $ui_style \ - */ - public function set_ui_style (imageclozedropdown_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param imageclozedropdown_ui_style $ui_style \ + */ + public function set_ui_style(imageclozedropdown_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return imageclozedropdown_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return imageclozedropdown_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param imageclozedropdown_validation $validation \ - */ - public function set_validation (imageclozedropdown_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param imageclozedropdown_validation $validation \ + */ + public function set_validation(imageclozedropdown_validation $validation) + { $this->validation = $validation; } /** - * Get Image URI \ - * Absolute URI for the background image. \ - * @return string $img_src \ - */ - public function get_img_src() { + * Get Image URI \ + * Absolute URI for the background image. \ + * + * @return string $img_src \ + */ + public function get_img_src() + { return $this->img_src; } /** - * Set Image URI \ - * Absolute URI for the background image. \ - * @param string $img_src \ - */ - public function set_img_src ($img_src) { + * Set Image URI \ + * Absolute URI for the background image. \ + * + * @param string $img_src \ + */ + public function set_img_src($img_src) + { $this->img_src = $img_src; } /** - * Get Possible Responses \ - * Array of string arrays. They tie to the index position of the {{response}}s found in the HTML string and are rendered in - order within the dropdown. \ - * @return array $possible_responses \ - */ - public function get_possible_responses() { + * Get Possible Responses \ + * Array of string arrays. They tie to the index position of the {{response}}s found in the HTML string and are rendered in + * order within the dropdown. \ + * + * @return array $possible_responses \ + */ + public function get_possible_responses() + { return $this->possible_responses; } /** - * Set Possible Responses \ - * Array of string arrays. They tie to the index position of the {{response}}s found in the HTML string and are rendered in - order within the dropdown. \ - * @param array $possible_responses \ - */ - public function set_possible_responses (array $possible_responses) { + * Set Possible Responses \ + * Array of string arrays. They tie to the index position of the {{response}}s found in the HTML string and are rendered in + * order within the dropdown. \ + * + * @param array $possible_responses \ + */ + public function set_possible_responses(array $possible_responses) + { $this->possible_responses = $possible_responses; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/imageclozedropdown_image.php b/src/Entities/QuestionTypes/imageclozedropdown_image.php index ef61300f..9b04ed5a 100644 --- a/src/Entities/QuestionTypes/imageclozedropdown_image.php +++ b/src/Entities/QuestionTypes/imageclozedropdown_image.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozedropdown_image extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozedropdown_image extends BaseQuestionTypeAttribute +{ protected $src; protected $alt; protected $title; protected $scale; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Image URI \ - * \ - * @return string $src \ - */ - public function get_src() { + * Get Image URI \ + * \ + * + * @return string $src \ + */ + public function get_src() + { return $this->src; } /** - * Set Image URI \ - * \ - * @param string $src \ - */ - public function set_src ($src) { + * Set Image URI \ + * \ + * + * @param string $src \ + */ + public function set_src($src) + { $this->src = $src; } /** - * Get Image alternative text \ - * \ - * @return string $alt \ - */ - public function get_alt() { + * Get Image alternative text \ + * \ + * + * @return string $alt \ + */ + public function get_alt() + { return $this->alt; } /** - * Set Image alternative text \ - * \ - * @param string $alt \ - */ - public function set_alt ($alt) { + * Set Image alternative text \ + * \ + * + * @param string $alt \ + */ + public function set_alt($alt) + { $this->alt = $alt; } /** - * Get Image title \ - * \ - * @return string $title \ - */ - public function get_title() { + * Get Image title \ + * \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Image title \ - * \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Image title \ + * \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } /** - * Get Image scale \ - * Allow image to be scaled along with font size \ - * @return boolean $scale \ - */ - public function get_scale() { + * Get Image scale \ + * Allow image to be scaled along with font size \ + * + * @return boolean $scale \ + */ + public function get_scale() + { return $this->scale; } /** - * Set Image scale \ - * Allow image to be scaled along with font size \ - * @param boolean $scale \ - */ - public function set_scale ($scale) { + * Set Image scale \ + * Allow image to be scaled along with font size \ + * + * @param boolean $scale \ + */ + public function set_scale($scale) + { $this->scale = $scale; } - + } diff --git a/src/Entities/QuestionTypes/imageclozedropdown_metadata.php b/src/Entities/QuestionTypes/imageclozedropdown_metadata.php index c65d2007..61388c42 100644 --- a/src/Entities/QuestionTypes/imageclozedropdown_metadata.php +++ b/src/Entities/QuestionTypes/imageclozedropdown_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozedropdown_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozedropdown_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/imageclozedropdown_response_container.php b/src/Entities/QuestionTypes/imageclozedropdown_response_container.php index c03c20f0..ccca8229 100644 --- a/src/Entities/QuestionTypes/imageclozedropdown_response_container.php +++ b/src/Entities/QuestionTypes/imageclozedropdown_response_container.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozedropdown_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozedropdown_response_container extends BaseQuestionTypeAttribute +{ protected $pointer; protected $height; protected $width; protected $placeholder; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @return string $pointer \ - */ - public function get_pointer() { + * Get Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @return string $pointer \ + */ + public function get_pointer() + { return $this->pointer; } /** - * Set Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @param string $pointer \ - */ - public function set_pointer ($pointer) { + * Set Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @param string $pointer \ + */ + public function set_pointer($pointer) + { $this->pointer = $pointer; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } - + } diff --git a/src/Entities/QuestionTypes/imageclozedropdown_response_containers_item.php b/src/Entities/QuestionTypes/imageclozedropdown_response_containers_item.php index db0fb031..0635e9e1 100644 --- a/src/Entities/QuestionTypes/imageclozedropdown_response_containers_item.php +++ b/src/Entities/QuestionTypes/imageclozedropdown_response_containers_item.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozedropdown_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozedropdown_response_containers_item extends BaseQuestionTypeAttribute +{ protected $pointer; protected $height; protected $width; protected $placeholder; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @return string $pointer \ - */ - public function get_pointer() { + * Get Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @return string $pointer \ + */ + public function get_pointer() + { return $this->pointer; } /** - * Set Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @param string $pointer \ - */ - public function set_pointer ($pointer) { + * Set Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @param string $pointer \ + */ + public function set_pointer($pointer) + { $this->pointer = $pointer; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } - + } diff --git a/src/Entities/QuestionTypes/imageclozedropdown_ui_style.php b/src/Entities/QuestionTypes/imageclozedropdown_ui_style.php index 5f7faef2..70e2f839 100644 --- a/src/Entities/QuestionTypes/imageclozedropdown_ui_style.php +++ b/src/Entities/QuestionTypes/imageclozedropdown_ui_style.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozedropdown_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozedropdown_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/imageclozedropdown_validation.php b/src/Entities/QuestionTypes/imageclozedropdown_validation.php index 4a40aba3..0685cf26 100644 --- a/src/Entities/QuestionTypes/imageclozedropdown_validation.php +++ b/src/Entities/QuestionTypes/imageclozedropdown_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozedropdown_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozedropdown_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return imageclozedropdown_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return imageclozedropdown_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param imageclozedropdown_validation_valid_response $valid_response \ - */ - public function set_valid_response (imageclozedropdown_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param imageclozedropdown_validation_valid_response $valid_response \ + */ + public function set_valid_response(imageclozedropdown_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/imageclozedropdown_validation_alt_responses_item.php b/src/Entities/QuestionTypes/imageclozedropdown_validation_alt_responses_item.php index 3b1b548f..24393d5e 100644 --- a/src/Entities/QuestionTypes/imageclozedropdown_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/imageclozedropdown_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozedropdown_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozedropdown_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozedropdown_validation_valid_response.php b/src/Entities/QuestionTypes/imageclozedropdown_validation_valid_response.php index ac1f2c48..2304ca85 100644 --- a/src/Entities/QuestionTypes/imageclozedropdown_validation_valid_response.php +++ b/src/Entities/QuestionTypes/imageclozedropdown_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozedropdown_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozedropdown_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing the valid responses for each response in the template in corresponding order. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing the valid responses for each response in the template in corresponding order. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing the valid responses for each response in the template in corresponding order. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing the valid responses for each response in the template in corresponding order. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeformula.php b/src/Entities/QuestionTypes/imageclozeformula.php index faf7150d..7187f70d 100644 --- a/src/Entities/QuestionTypes/imageclozeformula.php +++ b/src/Entities/QuestionTypes/imageclozeformula.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeformula extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeformula extends BaseQuestionType +{ protected $image; protected $response_positions; protected $response_container; @@ -27,361 +28,433 @@ class imageclozeformula extends BaseQuestionType { protected $numberPad; protected $showHints; protected $symbols; - + public function __construct( - imageclozeformula_image $image, - array $response_positions, - array $response_containers, - $type - ) - { - $this->image = $image; - $this->response_positions = $response_positions; - $this->response_containers = $response_containers; - $this->type = $type; - } - - /** - * Get Image parameters \ - * Defines the attributes/metadata for the image \ - * @return imageclozeformula_image $image \ - */ - public function get_image() { + imageclozeformula_image $image, + array $response_positions, + array $response_containers, + $type + ) { + $this->image = $image; + $this->response_positions = $response_positions; + $this->response_containers = $response_containers; + $this->type = $type; + } + + /** + * Get Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @return imageclozeformula_image $image \ + */ + public function get_image() + { return $this->image; } /** - * Set Image parameters \ - * Defines the attributes/metadata for the image \ - * @param imageclozeformula_image $image \ - */ - public function set_image (imageclozeformula_image $image) { + * Set Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @param imageclozeformula_image $image \ + */ + public function set_image(imageclozeformula_image $image) + { $this->image = $image; } /** - * Get Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @return array $response_positions \ - */ - public function get_response_positions() { + * Get Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @return array $response_positions \ + */ + public function get_response_positions() + { return $this->response_positions; } /** - * Set Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @param array $response_positions \ - */ - public function set_response_positions (array $response_positions) { + * Set Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @param array $response_positions \ + */ + public function set_response_positions(array $response_positions) + { $this->response_positions = $response_positions; } /** - * Get Response Container (global) \ - * Define the template and dimensions for all response containers \ - * @return imageclozeformula_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Define the template and dimensions for all response containers \ + * + * @return imageclozeformula_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Define the template and dimensions for all response containers \ - * @param imageclozeformula_response_container $response_container \ - */ - public function set_response_container (imageclozeformula_response_container $response_container) { + * Set Response Container (global) \ + * Define the template and dimensions for all response containers \ + * + * @param imageclozeformula_response_container $response_container \ + */ + public function set_response_container(imageclozeformula_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Containers (individual) \ - * Nest response containers within the question template's response areas \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Containers (individual) \ + * Nest response containers within the question template's response areas \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Containers (individual) \ - * Nest response containers within the question template's response areas \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Containers (individual) \ + * Nest response containers within the question template's response areas \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @return string $handwriting_recognises ie. standard, mathbasic \ - */ - public function get_handwriting_recognises() { + * Get Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @return string $handwriting_recognises ie. standard, mathbasic \ + */ + public function get_handwriting_recognises() + { return $this->handwriting_recognises; } /** - * Set Handwriting Recognises \ - * A string with the name of one of the available math grammar sets. \ - * @param string $handwriting_recognises ie. standard, mathbasic \ - */ - public function set_handwriting_recognises ($handwriting_recognises) { + * Set Handwriting Recognises \ + * A string with the name of one of the available math grammar sets. \ + * + * @param string $handwriting_recognises ie. standard, mathbasic \ + */ + public function set_handwriting_recognises($handwriting_recognises) + { $this->handwriting_recognises = $handwriting_recognises; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return imageclozeformula_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return imageclozeformula_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param imageclozeformula_metadata $metadata \ - */ - public function set_metadata (imageclozeformula_metadata $metadata) { + * Set metadata \ + * \ + * + * @param imageclozeformula_metadata $metadata \ + */ + public function set_metadata(imageclozeformula_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return imageclozeformula_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return imageclozeformula_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param imageclozeformula_ui_style $ui_style \ - */ - public function set_ui_style (imageclozeformula_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param imageclozeformula_ui_style $ui_style \ + */ + public function set_ui_style(imageclozeformula_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return imageclozeformula_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return imageclozeformula_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param imageclozeformula_validation $validation \ - */ - public function set_validation (imageclozeformula_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param imageclozeformula_validation $validation \ + */ + public function set_validation(imageclozeformula_validation $validation) + { $this->validation = $validation; } /** - * Get Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @return array $text_blocks \ - */ - public function get_text_blocks() { + * Get Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @return array $text_blocks \ + */ + public function get_text_blocks() + { return $this->text_blocks; } /** - * Set Text blocks \ - * List of custom text blocks. Maximum length 9 characters. \ - * @param array $text_blocks \ - */ - public function set_text_blocks (array $text_blocks) { + * Set Text blocks \ + * List of custom text blocks. Maximum length 9 characters. \ + * + * @param array $text_blocks \ + */ + public function set_text_blocks(array $text_blocks) + { $this->text_blocks = $text_blocks; } /** - * Get Custom Number Pad \ - * \ - * @return array $numberPad \ - */ - public function get_numberPad() { + * Get Custom Number Pad \ + * \ + * + * @return array $numberPad \ + */ + public function get_numberPad() + { return $this->numberPad; } /** - * Set Custom Number Pad \ - * \ - * @param array $numberPad \ - */ - public function set_numberPad (array $numberPad) { + * Set Custom Number Pad \ + * \ + * + * @param array $numberPad \ + */ + public function set_numberPad(array $numberPad) + { $this->numberPad = $numberPad; } /** - * Get Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @return boolean $showHints \ - */ - public function get_showHints() { + * Get Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @return boolean $showHints \ + */ + public function get_showHints() + { return $this->showHints; } /** - * Set Show Hints \ - * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over - a symbol group key. \ - * @param boolean $showHints \ - */ - public function set_showHints ($showHints) { + * Set Show Hints \ + * Disables hint, including keyboard shortcuts and group titles, shown on the keyboard's top left corner when hovering over + * a symbol group key. \ + * + * @param boolean $showHints \ + */ + public function set_showHints($showHints) + { $this->showHints = $showHints; } /** - * Get Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @return array $symbols \ - */ - public function get_symbols() { + * Get Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @return array $symbols \ + */ + public function get_symbols() + { return $this->symbols; } /** - * Set Symbols \ - * An array containing either strings or a nested objects of symbol definitions. \ - * @param array $symbols \ - */ - public function set_symbols (array $symbols) { + * Set Symbols \ + * An array containing either strings or a nested objects of symbol definitions. \ + * + * @param array $symbols \ + */ + public function set_symbols(array $symbols) + { $this->symbols = $symbols; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/imageclozeformula_image.php b/src/Entities/QuestionTypes/imageclozeformula_image.php index 73895497..125a1bdb 100644 --- a/src/Entities/QuestionTypes/imageclozeformula_image.php +++ b/src/Entities/QuestionTypes/imageclozeformula_image.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeformula_image extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeformula_image extends BaseQuestionTypeAttribute +{ protected $src; protected $alt; protected $title; protected $scale; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Image URI \ - * \ - * @return string $src \ - */ - public function get_src() { + * Get Image URI \ + * \ + * + * @return string $src \ + */ + public function get_src() + { return $this->src; } /** - * Set Image URI \ - * \ - * @param string $src \ - */ - public function set_src ($src) { + * Set Image URI \ + * \ + * + * @param string $src \ + */ + public function set_src($src) + { $this->src = $src; } /** - * Get Image alternative text \ - * \ - * @return string $alt \ - */ - public function get_alt() { + * Get Image alternative text \ + * \ + * + * @return string $alt \ + */ + public function get_alt() + { return $this->alt; } /** - * Set Image alternative text \ - * \ - * @param string $alt \ - */ - public function set_alt ($alt) { + * Set Image alternative text \ + * \ + * + * @param string $alt \ + */ + public function set_alt($alt) + { $this->alt = $alt; } /** - * Get Image title \ - * \ - * @return string $title \ - */ - public function get_title() { + * Get Image title \ + * \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Image title \ - * \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Image title \ + * \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } /** - * Get Image scale \ - * Allow image to be scaled along with font size \ - * @return boolean $scale \ - */ - public function get_scale() { + * Get Image scale \ + * Allow image to be scaled along with font size \ + * + * @return boolean $scale \ + */ + public function get_scale() + { return $this->scale; } /** - * Set Image scale \ - * Allow image to be scaled along with font size \ - * @param boolean $scale \ - */ - public function set_scale ($scale) { + * Set Image scale \ + * Allow image to be scaled along with font size \ + * + * @param boolean $scale \ + */ + public function set_scale($scale) + { $this->scale = $scale; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeformula_metadata.php b/src/Entities/QuestionTypes/imageclozeformula_metadata.php index f89deb95..2e1e67bd 100644 --- a/src/Entities/QuestionTypes/imageclozeformula_metadata.php +++ b/src/Entities/QuestionTypes/imageclozeformula_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeformula_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeformula_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeformula_response_container.php b/src/Entities/QuestionTypes/imageclozeformula_response_container.php index 6a3742bc..33aed583 100644 --- a/src/Entities/QuestionTypes/imageclozeformula_response_container.php +++ b/src/Entities/QuestionTypes/imageclozeformula_response_container.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeformula_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeformula_response_container extends BaseQuestionTypeAttribute +{ protected $template; protected $height; protected $width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Template \ - * \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeformula_response_containers_item.php b/src/Entities/QuestionTypes/imageclozeformula_response_containers_item.php index 79125dc2..f7d2fda2 100644 --- a/src/Entities/QuestionTypes/imageclozeformula_response_containers_item.php +++ b/src/Entities/QuestionTypes/imageclozeformula_response_containers_item.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeformula_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeformula_response_containers_item extends BaseQuestionTypeAttribute +{ protected $template; protected $width; protected $height; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Template \ - * \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Width \ - * \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height \ - * \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeformula_ui_style.php b/src/Entities/QuestionTypes/imageclozeformula_ui_style.php index 3c961135..50a6e622 100644 --- a/src/Entities/QuestionTypes/imageclozeformula_ui_style.php +++ b/src/Entities/QuestionTypes/imageclozeformula_ui_style.php @@ -5,134 +5,158 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeformula_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeformula_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; protected $response_font_scale; protected $type; protected $min_width; protected $keyboard_below_response_area; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Response font scale \ - * This scales the font relative to the question's font size. \ - * @return string $response_font_scale \ - */ - public function get_response_font_scale() { + * Get Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @return string $response_font_scale \ + */ + public function get_response_font_scale() + { return $this->response_font_scale; } /** - * Set Response font scale \ - * This scales the font relative to the question's font size. \ - * @param string $response_font_scale \ - */ - public function set_response_font_scale ($response_font_scale) { + * Set Response font scale \ + * This scales the font relative to the question's font size. \ + * + * @param string $response_font_scale \ + */ + public function set_response_font_scale($response_font_scale) + { $this->response_font_scale = $response_font_scale; } /** - * Get Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Keyboard style. See the knowledgebase article on formula keyboard types for more information. \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @return string $min_width \ - */ - public function get_min_width() { + * Get Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @return string $min_width \ + */ + public function get_min_width() + { return $this->min_width; } /** - * Set Response minimum width \ - * Controls the minimum width of the response input area, e.g. 550px \ - * @param string $min_width \ - */ - public function set_min_width ($min_width) { + * Set Response minimum width \ + * Controls the minimum width of the response input area, e.g. 550px \ + * + * @param string $min_width \ + */ + public function set_min_width($min_width) + { $this->min_width = $min_width; } /** - * Get Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @return boolean $keyboard_below_response_area \ - */ - public function get_keyboard_below_response_area() { + * Get Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @return boolean $keyboard_below_response_area \ + */ + public function get_keyboard_below_response_area() + { return $this->keyboard_below_response_area; } /** - * Set Position floating keyboard below question response area \ - * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math - editor in the question). \ - * @param boolean $keyboard_below_response_area \ - */ - public function set_keyboard_below_response_area ($keyboard_below_response_area) { + * Set Position floating keyboard below question response area \ + * If true, the floating formula keyboard will appear below the question as a whole (instead of below each individual math + * editor in the question). \ + * + * @param boolean $keyboard_below_response_area \ + */ + public function set_keyboard_below_response_area($keyboard_below_response_area) + { $this->keyboard_below_response_area = $keyboard_below_response_area; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeformula_validation.php b/src/Entities/QuestionTypes/imageclozeformula_validation.php index d1d7982b..12fd8429 100644 --- a/src/Entities/QuestionTypes/imageclozeformula_validation.php +++ b/src/Entities/QuestionTypes/imageclozeformula_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeformula_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeformula_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid Responses \ - * An object containing the valid response score and value. \ - * @return imageclozeformula_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid Responses \ + * An object containing the valid response score and value. \ + * + * @return imageclozeformula_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid Responses \ - * An object containing the valid response score and value. \ - * @param imageclozeformula_validation_valid_response $valid_response \ - */ - public function set_valid_response (imageclozeformula_validation_valid_response $valid_response) { + * Set Valid Responses \ + * An object containing the valid response score and value. \ + * + * @param imageclozeformula_validation_valid_response $valid_response \ + */ + public function set_valid_response(imageclozeformula_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeformula_validation_alt_responses_item.php b/src/Entities/QuestionTypes/imageclozeformula_validation_alt_responses_item.php index cdec24c5..c85b6ada 100644 --- a/src/Entities/QuestionTypes/imageclozeformula_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/imageclozeformula_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeformula_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeformula_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Values \ - * An array of arrays that contain the valid responses. \ - * @return array $value \ - */ - public function get_value() { + * Get Values \ + * An array of arrays that contain the valid responses. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Values \ - * An array of arrays that contain the valid responses. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Values \ + * An array of arrays that contain the valid responses. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozeformula_validation_valid_response.php b/src/Entities/QuestionTypes/imageclozeformula_validation_valid_response.php index 780fe8d1..e16fefdb 100644 --- a/src/Entities/QuestionTypes/imageclozeformula_validation_valid_response.php +++ b/src/Entities/QuestionTypes/imageclozeformula_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozeformula_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozeformula_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Equation Values \ - * A collection of arrays containing objects with the valid response. \ - * @return array $value \ - */ - public function get_value() { + * Get Equation Values \ + * A collection of arrays containing objects with the valid response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Equation Values \ - * A collection of arrays containing objects with the valid response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Equation Values \ + * A collection of arrays containing objects with the valid response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozetext.php b/src/Entities/QuestionTypes/imageclozetext.php index beed19aa..94f8bf29 100644 --- a/src/Entities/QuestionTypes/imageclozetext.php +++ b/src/Entities/QuestionTypes/imageclozetext.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozetext extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozetext extends BaseQuestionType +{ protected $image; protected $response_positions; protected $response_container; @@ -28,389 +29,465 @@ class imageclozetext extends BaseQuestionType { protected $multiple_line; protected $spellcheck; protected $case_sensitive; - + public function __construct( - imageclozetext_image $image, - array $response_positions, - $type - ) - { - $this->image = $image; - $this->response_positions = $response_positions; - $this->type = $type; - } - - /** - * Get Image parameters \ - * Defines the attributes/metadata for the image \ - * @return imageclozetext_image $image \ - */ - public function get_image() { + imageclozetext_image $image, + array $response_positions, + $type + ) { + $this->image = $image; + $this->response_positions = $response_positions; + $this->type = $type; + } + + /** + * Get Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @return imageclozetext_image $image \ + */ + public function get_image() + { return $this->image; } /** - * Set Image parameters \ - * Defines the attributes/metadata for the image \ - * @param imageclozetext_image $image \ - */ - public function set_image (imageclozetext_image $image) { + * Set Image parameters \ + * Defines the attributes/metadata for the image \ + * + * @param imageclozetext_image $image \ + */ + public function set_image(imageclozetext_image $image) + { $this->image = $image; } /** - * Get Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @return array $response_positions \ - */ - public function get_response_positions() { + * Get Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @return array $response_positions \ + */ + public function get_response_positions() + { return $this->response_positions; } /** - * Set Response Positions \ - * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th - e top left corner of the image. \ - * @param array $response_positions \ - */ - public function set_response_positions (array $response_positions) { + * Set Response Positions \ + * Array of responsePosition objects (x and y) indicating the distance of the top left corner of the response field from th + * e top left corner of the image. \ + * + * @param array $response_positions \ + */ + public function set_response_positions(array $response_positions) + { $this->response_positions = $response_positions; } /** - * Get Response Container (global) \ - * Object that defines styles for the response container. \ - * @return imageclozetext_response_container $response_container \ - */ - public function get_response_container() { + * Get Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @return imageclozetext_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response Container (global) \ - * Object that defines styles for the response container. \ - * @param imageclozetext_response_container $response_container \ - */ - public function set_response_container (imageclozetext_response_container $response_container) { + * Set Response Container (global) \ + * Object that defines styles for the response container. \ + * + * @param imageclozetext_response_container $response_container \ + */ + public function set_response_container(imageclozetext_response_container $response_container) + { $this->response_container = $response_container; } /** - * Get Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @return array $response_containers \ - */ - public function get_response_containers() { + * Get Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @return array $response_containers \ + */ + public function get_response_containers() + { return $this->response_containers; } /** - * Set Response Container (individual) \ - * Array containing objects defining each individual response container style. \ - * @param array $response_containers \ - */ - public function set_response_containers (array $response_containers) { + * Set Response Container (individual) \ + * Array containing objects defining each individual response container style. \ + * + * @param array $response_containers \ + */ + public function set_response_containers(array $response_containers) + { $this->response_containers = $response_containers; } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return imageclozetext_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return imageclozetext_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param imageclozetext_metadata $metadata \ - */ - public function set_metadata (imageclozetext_metadata $metadata) { + * Set metadata \ + * \ + * + * @param imageclozetext_metadata $metadata \ + */ + public function set_metadata(imageclozetext_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return imageclozetext_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return imageclozetext_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param imageclozetext_ui_style $ui_style \ - */ - public function set_ui_style (imageclozetext_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param imageclozetext_ui_style $ui_style \ + */ + public function set_ui_style(imageclozetext_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return imageclozetext_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return imageclozetext_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param imageclozetext_validation $validation \ - */ - public function set_validation (imageclozetext_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param imageclozetext_validation $validation \ + */ + public function set_validation(imageclozetext_validation $validation) + { $this->validation = $validation; } /** - * Get Image URI \ - * Absolute URI for the background image. \ - * @return string $img_src \ - */ - public function get_img_src() { + * Get Image URI \ + * Absolute URI for the background image. \ + * + * @return string $img_src \ + */ + public function get_img_src() + { return $this->img_src; } /** - * Set Image URI \ - * Absolute URI for the background image. \ - * @param string $img_src \ - */ - public function set_img_src ($img_src) { + * Set Image URI \ + * Absolute URI for the background image. \ + * + * @param string $img_src \ + */ + public function set_img_src($img_src) + { $this->img_src = $img_src; } /** - * Get Maximum Length (characters) \ - * Maximum number of characters that can be entered in the field. Maximum value is 250. \ - * @return number $max_length \ - */ - public function get_max_length() { + * Get Maximum Length (characters) \ + * Maximum number of characters that can be entered in the field. Maximum value is 250. \ + * + * @return number $max_length \ + */ + public function get_max_length() + { return $this->max_length; } /** - * Set Maximum Length (characters) \ - * Maximum number of characters that can be entered in the field. Maximum value is 250. \ - * @param number $max_length \ - */ - public function set_max_length ($max_length) { + * Set Maximum Length (characters) \ + * Maximum number of characters that can be entered in the field. Maximum value is 250. \ + * + * @param number $max_length \ + */ + public function set_max_length($max_length) + { $this->max_length = $max_length; } /** - * Get Character Map \ - * If true, the character map button will display within the text field. The character map will display the default set of special characters.
-If an Array, the character map button will s - how and display only the array of characters.
IMPORTANTThe HTML document w - ill require a charset of utf-8: <meta charset="utf-8"> \ - * @return $character_map \ - */ - public function get_character_map() { + * Get Character Map \ + * If true, the character map button will display within the text field. The character map will display the default set of special characters.
+ * If an Array, the character map button will s + * how and display only the array of characters.
IMPORTANTThe HTML document w + * ill require a charset of utf-8: <meta charset="utf-8"> \ + * + * @return $character_map \ + */ + public function get_character_map() + { return $this->character_map; } /** - * Set Character Map \ - * If true, the character map button will display within the text field. The character map will display the default set of special characters.
-If an Array, the character map button will s - how and display only the array of characters.
IMPORTANTThe HTML document w - ill require a charset of utf-8: <meta charset="utf-8"> \ - * @param $character_map \ - */ - public function set_character_map ($character_map) { + * Set Character Map \ + * If true, the character map button will display within the text field. The character map will display the default set of special characters.
+ * If an Array, the character map button will s + * how and display only the array of characters.
IMPORTANTThe HTML document w + * ill require a charset of utf-8: <meta charset="utf-8"> \ + * + * @param $character_map \ + */ + public function set_character_map($character_map) + { $this->character_map = $character_map; } /** - * Get Multiple Line \ - * If true the response input will be a text area supporting multiple lines of input. If false the response input will be a - text input only supporting one line responses. \ - * @return boolean $multiple_line \ - */ - public function get_multiple_line() { + * Get Multiple Line \ + * If true the response input will be a text area supporting multiple lines of input. If false the response input will be a + * text input only supporting one line responses. \ + * + * @return boolean $multiple_line \ + */ + public function get_multiple_line() + { return $this->multiple_line; } /** - * Set Multiple Line \ - * If true the response input will be a text area supporting multiple lines of input. If false the response input will be a - text input only supporting one line responses. \ - * @param boolean $multiple_line \ - */ - public function set_multiple_line ($multiple_line) { + * Set Multiple Line \ + * If true the response input will be a text area supporting multiple lines of input. If false the response input will be a + * text input only supporting one line responses. \ + * + * @param boolean $multiple_line \ + */ + public function set_multiple_line($multiple_line) + { $this->multiple_line = $multiple_line; } /** - * Get Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @return boolean $spellcheck \ - */ - public function get_spellcheck() { + * Get Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @return boolean $spellcheck \ + */ + public function get_spellcheck() + { return $this->spellcheck; } /** - * Set Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @param boolean $spellcheck \ - */ - public function set_spellcheck ($spellcheck) { + * Set Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @param boolean $spellcheck \ + */ + public function set_spellcheck($spellcheck) + { $this->spellcheck = $spellcheck; } /** - * Get Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @return boolean $case_sensitive \ - */ - public function get_case_sensitive() { + * Get Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @return boolean $case_sensitive \ + */ + public function get_case_sensitive() + { return $this->case_sensitive; } /** - * Set Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @param boolean $case_sensitive \ - */ - public function set_case_sensitive ($case_sensitive) { + * Set Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @param boolean $case_sensitive \ + */ + public function set_case_sensitive($case_sensitive) + { $this->case_sensitive = $case_sensitive; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/imageclozetext_image.php b/src/Entities/QuestionTypes/imageclozetext_image.php index 7eaf4210..b60892a9 100644 --- a/src/Entities/QuestionTypes/imageclozetext_image.php +++ b/src/Entities/QuestionTypes/imageclozetext_image.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozetext_image extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozetext_image extends BaseQuestionTypeAttribute +{ protected $src; protected $alt; protected $title; protected $scale; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Image URI \ - * \ - * @return string $src \ - */ - public function get_src() { + * Get Image URI \ + * \ + * + * @return string $src \ + */ + public function get_src() + { return $this->src; } /** - * Set Image URI \ - * \ - * @param string $src \ - */ - public function set_src ($src) { + * Set Image URI \ + * \ + * + * @param string $src \ + */ + public function set_src($src) + { $this->src = $src; } /** - * Get Image alternative text \ - * \ - * @return string $alt \ - */ - public function get_alt() { + * Get Image alternative text \ + * \ + * + * @return string $alt \ + */ + public function get_alt() + { return $this->alt; } /** - * Set Image alternative text \ - * \ - * @param string $alt \ - */ - public function set_alt ($alt) { + * Set Image alternative text \ + * \ + * + * @param string $alt \ + */ + public function set_alt($alt) + { $this->alt = $alt; } /** - * Get Image title \ - * \ - * @return string $title \ - */ - public function get_title() { + * Get Image title \ + * \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Image title \ - * \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Image title \ + * \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } /** - * Get Image scale \ - * Allow image to be scaled along with font size \ - * @return boolean $scale \ - */ - public function get_scale() { + * Get Image scale \ + * Allow image to be scaled along with font size \ + * + * @return boolean $scale \ + */ + public function get_scale() + { return $this->scale; } /** - * Set Image scale \ - * Allow image to be scaled along with font size \ - * @param boolean $scale \ - */ - public function set_scale ($scale) { + * Set Image scale \ + * Allow image to be scaled along with font size \ + * + * @param boolean $scale \ + */ + public function set_scale($scale) + { $this->scale = $scale; } - + } diff --git a/src/Entities/QuestionTypes/imageclozetext_metadata.php b/src/Entities/QuestionTypes/imageclozetext_metadata.php index 6cee8b86..a62a6706 100644 --- a/src/Entities/QuestionTypes/imageclozetext_metadata.php +++ b/src/Entities/QuestionTypes/imageclozetext_metadata.php @@ -5,113 +5,133 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozetext_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozetext_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/imageclozetext_response_container.php b/src/Entities/QuestionTypes/imageclozetext_response_container.php index 452497a4..3921fe4d 100644 --- a/src/Entities/QuestionTypes/imageclozetext_response_container.php +++ b/src/Entities/QuestionTypes/imageclozetext_response_container.php @@ -5,111 +5,131 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozetext_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozetext_response_container extends BaseQuestionTypeAttribute +{ protected $pointer; protected $height; protected $width; protected $placeholder; protected $input_type; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @return string $pointer \ - */ - public function get_pointer() { + * Get Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @return string $pointer \ + */ + public function get_pointer() + { return $this->pointer; } /** - * Set Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @param string $pointer \ - */ - public function set_pointer ($pointer) { + * Set Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @param string $pointer \ + */ + public function set_pointer($pointer) + { $this->pointer = $pointer; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } /** - * Get Input type \ - * Type of input \ - * @return string $input_type \ - */ - public function get_input_type() { + * Get Input type \ + * Type of input \ + * + * @return string $input_type \ + */ + public function get_input_type() + { return $this->input_type; } /** - * Set Input type \ - * Type of input \ - * @param string $input_type \ - */ - public function set_input_type ($input_type) { + * Set Input type \ + * Type of input \ + * + * @param string $input_type \ + */ + public function set_input_type($input_type) + { $this->input_type = $input_type; } - + } diff --git a/src/Entities/QuestionTypes/imageclozetext_response_containers_item.php b/src/Entities/QuestionTypes/imageclozetext_response_containers_item.php index 509c4b6f..08938fc7 100644 --- a/src/Entities/QuestionTypes/imageclozetext_response_containers_item.php +++ b/src/Entities/QuestionTypes/imageclozetext_response_containers_item.php @@ -5,111 +5,131 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozetext_response_containers_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozetext_response_containers_item extends BaseQuestionTypeAttribute +{ protected $pointer; protected $height; protected $width; protected $placeholder; protected $input_type; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @return string $pointer \ - */ - public function get_pointer() { + * Get Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @return string $pointer \ + */ + public function get_pointer() + { return $this->pointer; } /** - * Set Pointer \ - * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ - * @param string $pointer \ - */ - public function set_pointer ($pointer) { + * Set Pointer \ + * Add response pointer next to the response container. Values can be one of 'top', 'right', 'bottom', 'left' \ + * + * @param string $pointer \ + */ + public function set_pointer($pointer) + { $this->pointer = $pointer; } /** - * Get Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the cloze response containers including units. Example: "100px" \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the cloze response containers including units. Example: "100px" \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the cloze response containers including units. Example: "100px" \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the cloze response containers including units. Example: "100px" \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } /** - * Get Input type \ - * Type of input \ - * @return string $input_type \ - */ - public function get_input_type() { + * Get Input type \ + * Type of input \ + * + * @return string $input_type \ + */ + public function get_input_type() + { return $this->input_type; } /** - * Set Input type \ - * Type of input \ - * @param string $input_type \ - */ - public function set_input_type ($input_type) { + * Set Input type \ + * Type of input \ + * + * @param string $input_type \ + */ + public function set_input_type($input_type) + { $this->input_type = $input_type; } - + } diff --git a/src/Entities/QuestionTypes/imageclozetext_ui_style.php b/src/Entities/QuestionTypes/imageclozetext_ui_style.php index 5da8bec7..972b0cad 100644 --- a/src/Entities/QuestionTypes/imageclozetext_ui_style.php +++ b/src/Entities/QuestionTypes/imageclozetext_ui_style.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozetext_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozetext_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/imageclozetext_validation.php b/src/Entities/QuestionTypes/imageclozetext_validation.php index e322ef88..eb591ee5 100644 --- a/src/Entities/QuestionTypes/imageclozetext_validation.php +++ b/src/Entities/QuestionTypes/imageclozetext_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozetext_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozetext_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return imageclozetext_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return imageclozetext_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param imageclozetext_validation_valid_response $valid_response \ - */ - public function set_valid_response (imageclozetext_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param imageclozetext_validation_valid_response $valid_response \ + */ + public function set_valid_response(imageclozetext_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/imageclozetext_validation_alt_responses_item.php b/src/Entities/QuestionTypes/imageclozetext_validation_alt_responses_item.php index 2078a255..06747639 100644 --- a/src/Entities/QuestionTypes/imageclozetext_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/imageclozetext_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozetext_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozetext_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imageclozetext_validation_valid_response.php b/src/Entities/QuestionTypes/imageclozetext_validation_valid_response.php index 9e7af5eb..47b7db28 100644 --- a/src/Entities/QuestionTypes/imageclozetext_validation_valid_response.php +++ b/src/Entities/QuestionTypes/imageclozetext_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageclozetext_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageclozetext_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing the valid responses for each response in response_positions in corresponding order. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing the valid responses for each response in response_positions in corresponding order. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing the valid responses for each response in response_positions in corresponding order. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing the valid responses for each response in response_positions in corresponding order. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/imagetool.php b/src/Entities/QuestionTypes/imagetool.php index 57cb3ebd..84ae5b72 100644 --- a/src/Entities/QuestionTypes/imagetool.php +++ b/src/Entities/QuestionTypes/imagetool.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imagetool extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imagetool extends BaseQuestionType +{ protected $type; protected $metadata; protected $image; @@ -18,181 +19,217 @@ class imagetool extends BaseQuestionType { protected $button; protected $buttonicon; protected $label; - + public function __construct( - $type, - $image - ) - { - $this->type = $type; - $this->image = $image; - } + $type, + $image + ) { + $this->type = $type; + $this->image = $image; + } /** - * Get Feature Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Feature Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Feature Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Feature Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get metadata \ - * \ - * @return object $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return object $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param object $metadata \ - */ - public function set_metadata ($metadata) { + * Set metadata \ + * \ + * + * @param object $metadata \ + */ + public function set_metadata($metadata) + { $this->metadata = $metadata; } /** - * Get Image \ - * Supports a protractor, ruler-15-cm, ruler-30-cm, ruler-6-inches, ruler-12-inches or a URI to an image. \ - * @return string $image \ - */ - public function get_image() { + * Get Image \ + * Supports a protractor, ruler-15-cm, ruler-30-cm, ruler-6-inches, ruler-12-inches or a URI to an image. \ + * + * @return string $image \ + */ + public function get_image() + { return $this->image; } /** - * Set Image \ - * Supports a protractor, ruler-15-cm, ruler-30-cm, ruler-6-inches, ruler-12-inches or a URI to an image. \ - * @param string $image \ - */ - public function set_image ($image) { + * Set Image \ + * Supports a protractor, ruler-15-cm, ruler-30-cm, ruler-6-inches, ruler-12-inches or a URI to an image. \ + * + * @param string $image \ + */ + public function set_image($image) + { $this->image = $image; } /** - * Get Show rotate icon? \ - * Renders a rotate icon that is draggable and allows the image rotate. \ - * @return boolean $rotate \ - */ - public function get_rotate() { + * Get Show rotate icon? \ + * Renders a rotate icon that is draggable and allows the image rotate. \ + * + * @return boolean $rotate \ + */ + public function get_rotate() + { return $this->rotate; } /** - * Set Show rotate icon? \ - * Renders a rotate icon that is draggable and allows the image rotate. \ - * @param boolean $rotate \ - */ - public function set_rotate ($rotate) { + * Set Show rotate icon? \ + * Renders a rotate icon that is draggable and allows the image rotate. \ + * + * @param boolean $rotate \ + */ + public function set_rotate($rotate) + { $this->rotate = $rotate; } /** - * Get Width \ - * Width of the image in pixels. Can only be used with custom URI image. \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * Width of the image in pixels. Can only be used with custom URI image. \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * Width of the image in pixels. Can only be used with custom URI image. \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * Width of the image in pixels. Can only be used with custom URI image. \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height \ - * Height of the image in pixels. Can only be used with custom URI image. \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * Height of the image in pixels. Can only be used with custom URI image. \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * Height of the image in pixels. Can only be used with custom URI image. \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * Height of the image in pixels. Can only be used with custom URI image. \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Button \ - * Renders a button for toggling the image tool. \ - * @return boolean $button \ - */ - public function get_button() { + * Get Button \ + * Renders a button for toggling the image tool. \ + * + * @return boolean $button \ + */ + public function get_button() + { return $this->button; } /** - * Set Button \ - * Renders a button for toggling the image tool. \ - * @param boolean $button \ - */ - public function set_button ($button) { + * Set Button \ + * Renders a button for toggling the image tool. \ + * + * @param boolean $button \ + */ + public function set_button($button) + { $this->button = $button; } /** - * Get Button Icon \ - * Supports a protractor, ruler, generic or a URI to an image. \ - * @return string $buttonicon \ - */ - public function get_buttonicon() { + * Get Button Icon \ + * Supports a protractor, ruler, generic or a URI to an image. \ + * + * @return string $buttonicon \ + */ + public function get_buttonicon() + { return $this->buttonicon; } /** - * Set Button Icon \ - * Supports a protractor, ruler, generic or a URI to an image. \ - * @param string $buttonicon \ - */ - public function set_buttonicon ($buttonicon) { + * Set Button Icon \ + * Supports a protractor, ruler, generic or a URI to an image. \ + * + * @param string $buttonicon \ + */ + public function set_buttonicon($buttonicon) + { $this->buttonicon = $buttonicon; } /** - * Get Label \ - * Toggle button label text to display. \ - * @return string $label \ - */ - public function get_label() { + * Get Label \ + * Toggle button label text to display. \ + * + * @return string $label \ + */ + public function get_label() + { return $this->label; } /** - * Set Label \ - * Toggle button label text to display. \ - * @param string $label \ - */ - public function set_label ($label) { + * Set Label \ + * Toggle button label text to display. \ + * + * @param string $label \ + */ + public function set_label($label) + { $this->label = $label; } - - public function get_widget_type() { - return 'feature'; + + public function get_widget_type() + { + return 'feature'; } } diff --git a/src/Entities/QuestionTypes/imageupload.php b/src/Entities/QuestionTypes/imageupload.php index a7a24ac9..52036b93 100644 --- a/src/Entities/QuestionTypes/imageupload.php +++ b/src/Entities/QuestionTypes/imageupload.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageupload extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageupload extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -22,261 +23,313 @@ class imageupload extends BaseQuestionType { protected $imageValidationAreas; protected $max_width; protected $case_sensitive; - + public function __construct( - $type - ) - { - $this->type = $type; - } + $type + ) { + $this->type = $type; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return imageupload_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return imageupload_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param imageupload_metadata $metadata \ - */ - public function set_metadata (imageupload_metadata $metadata) { + * Set metadata \ + * \ + * + * @param imageupload_metadata $metadata \ + */ + public function set_metadata(imageupload_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return imageupload_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return imageupload_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param imageupload_ui_style $ui_style \ - */ - public function set_ui_style (imageupload_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param imageupload_ui_style $ui_style \ + */ + public function set_ui_style(imageupload_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return imageupload_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return imageupload_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param imageupload_validation $validation \ - */ - public function set_validation (imageupload_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param imageupload_validation $validation \ + */ + public function set_validation(imageupload_validation $validation) + { $this->validation = $validation; } /** - * Get Stimulus Image \ - * Define an image to be annotated. \ - * @return imageupload_image $image \ - */ - public function get_image() { + * Get Stimulus Image \ + * Define an image to be annotated. \ + * + * @return imageupload_image $image \ + */ + public function get_image() + { return $this->image; } /** - * Set Stimulus Image \ - * Define an image to be annotated. \ - * @param imageupload_image $image \ - */ - public function set_image (imageupload_image $image) { + * Set Stimulus Image \ + * Define an image to be annotated. \ + * + * @param imageupload_image $image \ + */ + public function set_image(imageupload_image $image) + { $this->image = $image; } /** - * Get Image Validation Areas \ - * An array of validation areas for an author defined image \ - * @return array $imageValidationAreas \ - */ - public function get_imageValidationAreas() { + * Get Image Validation Areas \ + * An array of validation areas for an author defined image \ + * + * @return array $imageValidationAreas \ + */ + public function get_imageValidationAreas() + { return $this->imageValidationAreas; } /** - * Set Image Validation Areas \ - * An array of validation areas for an author defined image \ - * @param array $imageValidationAreas \ - */ - public function set_imageValidationAreas (array $imageValidationAreas) { + * Set Image Validation Areas \ + * An array of validation areas for an author defined image \ + * + * @param array $imageValidationAreas \ + */ + public function set_imageValidationAreas(array $imageValidationAreas) + { $this->imageValidationAreas = $imageValidationAreas; } /** - * Get Max Width \ - * Max width of response area. Define in em, px; or set to 'none' to stretch to full width of container. \ - * @return string $max_width \ - */ - public function get_max_width() { + * Get Max Width \ + * Max width of response area. Define in em, px; or set to 'none' to stretch to full width of container. \ + * + * @return string $max_width \ + */ + public function get_max_width() + { return $this->max_width; } /** - * Set Max Width \ - * Max width of response area. Define in em, px; or set to 'none' to stretch to full width of container. \ - * @param string $max_width \ - */ - public function set_max_width ($max_width) { + * Set Max Width \ + * Max width of response area. Define in em, px; or set to 'none' to stretch to full width of container. \ + * + * @param string $max_width \ + */ + public function set_max_width($max_width) + { $this->max_width = $max_width; } /** - * Get Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @return boolean $case_sensitive \ - */ - public function get_case_sensitive() { + * Get Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @return boolean $case_sensitive \ + */ + public function get_case_sensitive() + { return $this->case_sensitive; } /** - * Set Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @param boolean $case_sensitive \ - */ - public function set_case_sensitive ($case_sensitive) { + * Set Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @param boolean $case_sensitive \ + */ + public function set_case_sensitive($case_sensitive) + { $this->case_sensitive = $case_sensitive; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/imageupload_image.php b/src/Entities/QuestionTypes/imageupload_image.php index 7a7b15e4..92570a27 100644 --- a/src/Entities/QuestionTypes/imageupload_image.php +++ b/src/Entities/QuestionTypes/imageupload_image.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageupload_image extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageupload_image extends BaseQuestionTypeAttribute +{ protected $source; protected $width; protected $height; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Source URL \ - * The image that should be displayed. \ - * @return string $source \ - */ - public function get_source() { + * Get Source URL \ + * The image that should be displayed. \ + * + * @return string $source \ + */ + public function get_source() + { return $this->source; } /** - * Set Source URL \ - * The image that should be displayed. \ - * @param string $source \ - */ - public function set_source ($source) { + * Set Source URL \ + * The image that should be displayed. \ + * + * @param string $source \ + */ + public function set_source($source) + { $this->source = $source; } /** - * Get Width in pixels \ - * The pixel width of the image is needed to calculate the aspect ratio of the image. \ - * @return number $width \ - */ - public function get_width() { + * Get Width in pixels \ + * The pixel width of the image is needed to calculate the aspect ratio of the image. \ + * + * @return number $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width in pixels \ - * The pixel width of the image is needed to calculate the aspect ratio of the image. \ - * @param number $width \ - */ - public function set_width ($width) { + * Set Width in pixels \ + * The pixel width of the image is needed to calculate the aspect ratio of the image. \ + * + * @param number $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height in pixels \ - * The pixel height of the image is needed to calculate the aspect ratio of the image. \ - * @return number $height \ - */ - public function get_height() { + * Get Height in pixels \ + * The pixel height of the image is needed to calculate the aspect ratio of the image. \ + * + * @return number $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height in pixels \ - * The pixel height of the image is needed to calculate the aspect ratio of the image. \ - * @param number $height \ - */ - public function set_height ($height) { + * Set Height in pixels \ + * The pixel height of the image is needed to calculate the aspect ratio of the image. \ + * + * @param number $height \ + */ + public function set_height($height) + { $this->height = $height; } - + } diff --git a/src/Entities/QuestionTypes/imageupload_metadata.php b/src/Entities/QuestionTypes/imageupload_metadata.php index c62f072f..d0397870 100644 --- a/src/Entities/QuestionTypes/imageupload_metadata.php +++ b/src/Entities/QuestionTypes/imageupload_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageupload_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageupload_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/imageupload_ui_style.php b/src/Entities/QuestionTypes/imageupload_ui_style.php index 13dbad29..ce4a45da 100644 --- a/src/Entities/QuestionTypes/imageupload_ui_style.php +++ b/src/Entities/QuestionTypes/imageupload_ui_style.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageupload_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageupload_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } - + } diff --git a/src/Entities/QuestionTypes/imageupload_validation.php b/src/Entities/QuestionTypes/imageupload_validation.php index c8f61433..592561d0 100644 --- a/src/Entities/QuestionTypes/imageupload_validation.php +++ b/src/Entities/QuestionTypes/imageupload_validation.php @@ -5,100 +5,116 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageupload_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageupload_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return imageupload_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return imageupload_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param imageupload_validation_valid_response $valid_response \ - */ - public function set_valid_response (imageupload_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param imageupload_validation_valid_response $valid_response \ + */ + public function set_valid_response(imageupload_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/imageupload_validation_valid_response.php b/src/Entities/QuestionTypes/imageupload_validation_valid_response.php index fc8fe092..dbd8a7bb 100644 --- a/src/Entities/QuestionTypes/imageupload_validation_valid_response.php +++ b/src/Entities/QuestionTypes/imageupload_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class imageupload_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class imageupload_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing the valid response for each validation area, in corresponding order. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing the valid response for each validation area, in corresponding order. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing the valid response for each validation area, in corresponding order. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing the valid response for each validation area, in corresponding order. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/longtext.php b/src/Entities/QuestionTypes/longtext.php index 8e77c498..be709372 100644 --- a/src/Entities/QuestionTypes/longtext.php +++ b/src/Entities/QuestionTypes/longtext.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class longtext extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class longtext extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -24,319 +25,379 @@ class longtext extends BaseQuestionType { protected $submit_over_limit; protected $placeholder; protected $show_word_limit; - + public function __construct( - $type - ) - { - $this->type = $type; - } + $type + ) { + $this->type = $type; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return longtext_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return longtext_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param longtext_metadata $metadata \ - */ - public function set_metadata (longtext_metadata $metadata) { + * Set metadata \ + * \ + * + * @param longtext_metadata $metadata \ + */ + public function set_metadata(longtext_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return longtext_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return longtext_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param longtext_ui_style $ui_style \ - */ - public function set_ui_style (longtext_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param longtext_ui_style $ui_style \ + */ + public function set_ui_style(longtext_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @return longtext_validation $validation \ - */ - public function get_validation() { + * Get Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @return longtext_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @param longtext_validation $validation \ - */ - public function set_validation (longtext_validation $validation) { + * Set Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @param longtext_validation $validation \ + */ + public function set_validation(longtext_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Text Formatting Options \ - * An array containing strings of text formatting options to make available. \ - * @return array $formatting_options \ - */ - public function get_formatting_options() { + * Get Text Formatting Options \ + * An array containing strings of text formatting options to make available. \ + * + * @return array $formatting_options \ + */ + public function get_formatting_options() + { return $this->formatting_options; } /** - * Set Text Formatting Options \ - * An array containing strings of text formatting options to make available. \ - * @param array $formatting_options \ - */ - public function set_formatting_options (array $formatting_options) { + * Set Text Formatting Options \ + * An array containing strings of text formatting options to make available. \ + * + * @param array $formatting_options \ + */ + public function set_formatting_options(array $formatting_options) + { $this->formatting_options = $formatting_options; } /** - * Get Maximum Length (words) \ - * Maximum number of words that can be entered in the field. Maximum: 100,000 chars ~ 10,000 words To Be Confirmed \ - * @return number $max_length \ - */ - public function get_max_length() { + * Get Maximum Length (words) \ + * Maximum number of words that can be entered in the field. Maximum: 100,000 chars ~ 10,000 words To Be Confirmed \ + * + * @return number $max_length \ + */ + public function get_max_length() + { return $this->max_length; } /** - * Set Maximum Length (words) \ - * Maximum number of words that can be entered in the field. Maximum: 100,000 chars ~ 10,000 words To Be Confirmed \ - * @param number $max_length \ - */ - public function set_max_length ($max_length) { + * Set Maximum Length (words) \ + * Maximum number of words that can be entered in the field. Maximum: 100,000 chars ~ 10,000 words To Be Confirmed \ + * + * @param number $max_length \ + */ + public function set_max_length($max_length) + { $this->max_length = $max_length; } /** - * Get Character Map \ - * If true, the character map button will display in the long text editor toolbar. The character map will display the default set of special characters.
-If an Array, the character map but - ton will show and display only the array of characters.
IMPORTANTThe HTML - document will require a charset of utf-8: <meta charset="utf-8"> \ - * @return $character_map \ - */ - public function get_character_map() { + * Get Character Map \ + * If true, the character map button will display in the long text editor toolbar. The character map will display the default set of special characters.
+ * If an Array, the character map but + * ton will show and display only the array of characters.
IMPORTANTThe HTML + * document will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @return $character_map \ + */ + public function get_character_map() + { return $this->character_map; } /** - * Set Character Map \ - * If true, the character map button will display in the long text editor toolbar. The character map will display the default set of special characters.
-If an Array, the character map but - ton will show and display only the array of characters.
IMPORTANTThe HTML - document will require a charset of utf-8: <meta charset="utf-8"> \ - * @param $character_map \ - */ - public function set_character_map ($character_map) { + * Set Character Map \ + * If true, the character map button will display in the long text editor toolbar. The character map will display the default set of special characters.
+ * If an Array, the character map but + * ton will show and display only the array of characters.
IMPORTANTThe HTML + * document will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @param $character_map \ + */ + public function set_character_map($character_map) + { $this->character_map = $character_map; } /** - * Get Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @return boolean $spellcheck \ - */ - public function get_spellcheck() { + * Get Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @return boolean $spellcheck \ + */ + public function get_spellcheck() + { return $this->spellcheck; } /** - * Set Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @param boolean $spellcheck \ - */ - public function set_spellcheck ($spellcheck) { + * Set Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @param boolean $spellcheck \ + */ + public function set_spellcheck($spellcheck) + { $this->spellcheck = $spellcheck; } /** - * Get Submit over limit? \ - * Determines if the user is able to save/submit when the word limit has been exceeded. \ - * @return boolean $submit_over_limit \ - */ - public function get_submit_over_limit() { + * Get Submit over limit? \ + * Determines if the user is able to save/submit when the word limit has been exceeded. \ + * + * @return boolean $submit_over_limit \ + */ + public function get_submit_over_limit() + { return $this->submit_over_limit; } /** - * Set Submit over limit? \ - * Determines if the user is able to save/submit when the word limit has been exceeded. \ - * @param boolean $submit_over_limit \ - */ - public function set_submit_over_limit ($submit_over_limit) { + * Set Submit over limit? \ + * Determines if the user is able to save/submit when the word limit has been exceeded. \ + * + * @param boolean $submit_over_limit \ + */ + public function set_submit_over_limit($submit_over_limit) + { $this->submit_over_limit = $submit_over_limit; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } /** - * Get Word Limit Setting \ - * Determines how the word limit UI will display. Options are the following strings:
"always": Word - limit is always shown and updated as the user types
"on-limit": Word limit is only displayed whe - n the word limit is exceeded
"off": No word limit it shown. \ - * @return string $show_word_limit ie. always, on-limit, off \ - */ - public function get_show_word_limit() { + * Get Word Limit Setting \ + * Determines how the word limit UI will display. Options are the following strings:
"always": Word + * limit is always shown and updated as the user types
"on-limit": Word limit is only displayed whe + * n the word limit is exceeded
"off": No word limit it shown. \ + * + * @return string $show_word_limit ie. always, on-limit, off \ + */ + public function get_show_word_limit() + { return $this->show_word_limit; } /** - * Set Word Limit Setting \ - * Determines how the word limit UI will display. Options are the following strings:
"always": Word - limit is always shown and updated as the user types
"on-limit": Word limit is only displayed whe - n the word limit is exceeded
"off": No word limit it shown. \ - * @param string $show_word_limit ie. always, on-limit, off \ - */ - public function set_show_word_limit ($show_word_limit) { + * Set Word Limit Setting \ + * Determines how the word limit UI will display. Options are the following strings:
"always": Word + * limit is always shown and updated as the user types
"on-limit": Word limit is only displayed whe + * n the word limit is exceeded
"off": No word limit it shown. \ + * + * @param string $show_word_limit ie. always, on-limit, off \ + */ + public function set_show_word_limit($show_word_limit) + { $this->show_word_limit = $show_word_limit; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/longtext_metadata.php b/src/Entities/QuestionTypes/longtext_metadata.php index ead9c904..57d2ffe4 100644 --- a/src/Entities/QuestionTypes/longtext_metadata.php +++ b/src/Entities/QuestionTypes/longtext_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class longtext_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class longtext_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/longtext_ui_style.php b/src/Entities/QuestionTypes/longtext_ui_style.php index 8043d86a..d6b2833b 100644 --- a/src/Entities/QuestionTypes/longtext_ui_style.php +++ b/src/Entities/QuestionTypes/longtext_ui_style.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class longtext_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class longtext_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $min_height; protected $max_height; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Min height \ - * The minimum height of the text input including units. Example: "100px" \ - * @return string $min_height \ - */ - public function get_min_height() { + * Get Min height \ + * The minimum height of the text input including units. Example: "100px" \ + * + * @return string $min_height \ + */ + public function get_min_height() + { return $this->min_height; } /** - * Set Min height \ - * The minimum height of the text input including units. Example: "100px" \ - * @param string $min_height \ - */ - public function set_min_height ($min_height) { + * Set Min height \ + * The minimum height of the text input including units. Example: "100px" \ + * + * @param string $min_height \ + */ + public function set_min_height($min_height) + { $this->min_height = $min_height; } /** - * Get Max height \ - * The max height of the text input including units. Example: "100px" \ - * @return string $max_height \ - */ - public function get_max_height() { + * Get Max height \ + * The max height of the text input including units. Example: "100px" \ + * + * @return string $max_height \ + */ + public function get_max_height() + { return $this->max_height; } /** - * Set Max height \ - * The max height of the text input including units. Example: "100px" \ - * @param string $max_height \ - */ - public function set_max_height ($max_height) { + * Set Max height \ + * The max height of the text input including units. Example: "100px" \ + * + * @param string $max_height \ + */ + public function set_max_height($max_height) + { $this->max_height = $max_height; } - + } diff --git a/src/Entities/QuestionTypes/longtext_validation.php b/src/Entities/QuestionTypes/longtext_validation.php index 335e88a1..fe8de826 100644 --- a/src/Entities/QuestionTypes/longtext_validation.php +++ b/src/Entities/QuestionTypes/longtext_validation.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class longtext_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class longtext_validation extends BaseQuestionTypeAttribute +{ protected $max_score; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Max Score \ - * The highest score a marker can award to this question response. \ - * @return number $max_score \ - */ - public function get_max_score() { + * Get Max Score \ + * The highest score a marker can award to this question response. \ + * + * @return number $max_score \ + */ + public function get_max_score() + { return $this->max_score; } /** - * Set Max Score \ - * The highest score a marker can award to this question response. \ - * @param number $max_score \ - */ - public function set_max_score ($max_score) { + * Set Max Score \ + * The highest score a marker can award to this question response. \ + * + * @param number $max_score \ + */ + public function set_max_score($max_score) + { $this->max_score = $max_score; } - + } diff --git a/src/Entities/QuestionTypes/mcq.php b/src/Entities/QuestionTypes/mcq.php index af93dc8b..1cde3052 100644 --- a/src/Entities/QuestionTypes/mcq.php +++ b/src/Entities/QuestionTypes/mcq.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class mcq extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class mcq extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -22,269 +23,321 @@ class mcq extends BaseQuestionType { protected $options; protected $multiple_responses; protected $shuffle_options; - + public function __construct( - $type, - array $options - ) - { - $this->type = $type; - $this->options = $options; - } + $type, + array $options + ) { + $this->type = $type; + $this->options = $options; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return mcq_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return mcq_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param mcq_metadata $metadata \ - */ - public function set_metadata (mcq_metadata $metadata) { + * Set metadata \ + * \ + * + * @param mcq_metadata $metadata \ + */ + public function set_metadata(mcq_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return mcq_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return mcq_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param mcq_ui_style $ui_style \ - */ - public function set_ui_style (mcq_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param mcq_ui_style $ui_style \ + */ + public function set_ui_style(mcq_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return mcq_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return mcq_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param mcq_validation $validation \ - */ - public function set_validation (mcq_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param mcq_validation $validation \ + */ + public function set_validation(mcq_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Multiple choice options \ - * Options support HTML for formatting or MathJax syntax. \ - * @return array $options \ - */ - public function get_options() { + * Get Multiple choice options \ + * Options support HTML for formatting or MathJax syntax. \ + * + * @return array $options \ + */ + public function get_options() + { return $this->options; } /** - * Set Multiple choice options \ - * Options support HTML for formatting or MathJax syntax. \ - * @param array $options \ - */ - public function set_options (array $options) { + * Set Multiple choice options \ + * Options support HTML for formatting or MathJax syntax. \ + * + * @param array $options \ + */ + public function set_options(array $options) + { $this->options = $options; } /** - * Get Multiple responses \ - * If multiple_responses is true the user will be able to select multiple responses using a checkbox for each response. \ - * @return boolean $multiple_responses \ - */ - public function get_multiple_responses() { + * Get Multiple responses \ + * If multiple_responses is true the user will be able to select multiple responses using a checkbox for each response. \ + * + * @return boolean $multiple_responses \ + */ + public function get_multiple_responses() + { return $this->multiple_responses; } /** - * Set Multiple responses \ - * If multiple_responses is true the user will be able to select multiple responses using a checkbox for each response. \ - * @param boolean $multiple_responses \ - */ - public function set_multiple_responses ($multiple_responses) { + * Set Multiple responses \ + * If multiple_responses is true the user will be able to select multiple responses using a checkbox for each response. \ + * + * @param boolean $multiple_responses \ + */ + public function set_multiple_responses($multiple_responses) + { $this->multiple_responses = $multiple_responses; } /** - * Get Shuffle options \ - * \ - * @return boolean $shuffle_options \ - */ - public function get_shuffle_options() { + * Get Shuffle options \ + * \ + * + * @return boolean $shuffle_options \ + */ + public function get_shuffle_options() + { return $this->shuffle_options; } /** - * Set Shuffle options \ - * \ - * @param boolean $shuffle_options \ - */ - public function set_shuffle_options ($shuffle_options) { + * Set Shuffle options \ + * \ + * + * @param boolean $shuffle_options \ + */ + public function set_shuffle_options($shuffle_options) + { $this->shuffle_options = $shuffle_options; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/mcq_metadata.php b/src/Entities/QuestionTypes/mcq_metadata.php index d7d5971c..c35b8660 100644 --- a/src/Entities/QuestionTypes/mcq_metadata.php +++ b/src/Entities/QuestionTypes/mcq_metadata.php @@ -5,136 +5,160 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class mcq_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class mcq_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; protected $response_shuffle_seed; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } /** - * Get Response shuffle seed \ - * A seed to use to randomise the order of response options. If set, the responses will be shuffled according to this seed, - and all students will see the same randomised order. \ - * @return string $response_shuffle_seed \ - */ - public function get_response_shuffle_seed() { + * Get Response shuffle seed \ + * A seed to use to randomise the order of response options. If set, the responses will be shuffled according to this seed, + * and all students will see the same randomised order. \ + * + * @return string $response_shuffle_seed \ + */ + public function get_response_shuffle_seed() + { return $this->response_shuffle_seed; } /** - * Set Response shuffle seed \ - * A seed to use to randomise the order of response options. If set, the responses will be shuffled according to this seed, - and all students will see the same randomised order. \ - * @param string $response_shuffle_seed \ - */ - public function set_response_shuffle_seed ($response_shuffle_seed) { + * Set Response shuffle seed \ + * A seed to use to randomise the order of response options. If set, the responses will be shuffled according to this seed, + * and all students will see the same randomised order. \ + * + * @param string $response_shuffle_seed \ + */ + public function set_response_shuffle_seed($response_shuffle_seed) + { $this->response_shuffle_seed = $response_shuffle_seed; } - + } diff --git a/src/Entities/QuestionTypes/mcq_options_item.php b/src/Entities/QuestionTypes/mcq_options_item.php index eeb5c529..6cba7f5e 100644 --- a/src/Entities/QuestionTypes/mcq_options_item.php +++ b/src/Entities/QuestionTypes/mcq_options_item.php @@ -5,56 +5,64 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class mcq_options_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class mcq_options_item extends BaseQuestionTypeAttribute +{ protected $value; protected $label; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Value \ - * Value for this option that would be stored as the response if selected. \ - * @return string $value \ - */ - public function get_value() { + * Get Value \ + * Value for this option that would be stored as the response if selected. \ + * + * @return string $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Value for this option that would be stored as the response if selected. \ - * @param string $value \ - */ - public function set_value ($value) { + * Set Value \ + * Value for this option that would be stored as the response if selected. \ + * + * @param string $value \ + */ + public function set_value($value) + { $this->value = $value; } /** - * Get Label \ - * Label to be displayed for this option - plain string with HTML - allowed for formatting or mathjax syntax. \ - * @return string $label \ - */ - public function get_label() { + * Get Label \ + * Label to be displayed for this option - plain string with HTML + * allowed for formatting or mathjax syntax. \ + * + * @return string $label \ + */ + public function get_label() + { return $this->label; } /** - * Set Label \ - * Label to be displayed for this option - plain string with HTML - allowed for formatting or mathjax syntax. \ - * @param string $label \ - */ - public function set_label ($label) { + * Set Label \ + * Label to be displayed for this option - plain string with HTML + * allowed for formatting or mathjax syntax. \ + * + * @param string $label \ + */ + public function set_label($label) + { $this->label = $label; } - + } diff --git a/src/Entities/QuestionTypes/mcq_ui_style.php b/src/Entities/QuestionTypes/mcq_ui_style.php index d12da175..7f1112b8 100644 --- a/src/Entities/QuestionTypes/mcq_ui_style.php +++ b/src/Entities/QuestionTypes/mcq_ui_style.php @@ -5,111 +5,131 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class mcq_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class mcq_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $type; protected $choice_label; protected $columns; protected $orientation; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Layout \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Layout \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Layout \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Layout \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Label type \ - * \ - * @return string $choice_label \ - */ - public function get_choice_label() { + * Get Label type \ + * \ + * + * @return string $choice_label \ + */ + public function get_choice_label() + { return $this->choice_label; } /** - * Set Label type \ - * \ - * @param string $choice_label \ - */ - public function set_choice_label ($choice_label) { + * Set Label type \ + * \ + * + * @param string $choice_label \ + */ + public function set_choice_label($choice_label) + { $this->choice_label = $choice_label; } /** - * Get Number of columns \ - * \ - * @return number $columns \ - */ - public function get_columns() { + * Get Number of columns \ + * \ + * + * @return number $columns \ + */ + public function get_columns() + { return $this->columns; } /** - * Set Number of columns \ - * \ - * @param number $columns \ - */ - public function set_columns ($columns) { + * Set Number of columns \ + * \ + * + * @param number $columns \ + */ + public function set_columns($columns) + { $this->columns = $columns; } /** - * Get Orientation \ - * Sorts the order of the responses vertically or horizontally \ - * @return string $orientation \ - */ - public function get_orientation() { + * Get Orientation \ + * Sorts the order of the responses vertically or horizontally \ + * + * @return string $orientation \ + */ + public function get_orientation() + { return $this->orientation; } /** - * Set Orientation \ - * Sorts the order of the responses vertically or horizontally \ - * @param string $orientation \ - */ - public function set_orientation ($orientation) { + * Set Orientation \ + * Sorts the order of the responses vertically or horizontally \ + * + * @param string $orientation \ + */ + public function set_orientation($orientation) + { $this->orientation = $orientation; } - + } diff --git a/src/Entities/QuestionTypes/mcq_validation.php b/src/Entities/QuestionTypes/mcq_validation.php index 518d8404..a7c7bc23 100644 --- a/src/Entities/QuestionTypes/mcq_validation.php +++ b/src/Entities/QuestionTypes/mcq_validation.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class mcq_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class mcq_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return mcq_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return mcq_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param mcq_validation_valid_response $valid_response \ - */ - public function set_valid_response (mcq_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param mcq_validation_valid_response $valid_response \ + */ + public function set_valid_response(mcq_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/mcq_validation_alt_responses_item.php b/src/Entities/QuestionTypes/mcq_validation_alt_responses_item.php index adf2c0c1..9dc480ff 100644 --- a/src/Entities/QuestionTypes/mcq_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/mcq_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class mcq_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class mcq_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * A list of valid answers for mcq options \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * A list of valid answers for mcq options \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * A list of valid answers for mcq options \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * A list of valid answers for mcq options \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/mcq_validation_valid_response.php b/src/Entities/QuestionTypes/mcq_validation_valid_response.php index 6151099f..69e2a94f 100644 --- a/src/Entities/QuestionTypes/mcq_validation_valid_response.php +++ b/src/Entities/QuestionTypes/mcq_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class mcq_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class mcq_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * A list of valid answers for mcq options \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * A list of valid answers for mcq options \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * A list of valid answers for mcq options \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * A list of valid answers for mcq options \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/numberline.php b/src/Entities/QuestionTypes/numberline.php index c591ca99..e5c6e63c 100644 --- a/src/Entities/QuestionTypes/numberline.php +++ b/src/Entities/QuestionTypes/numberline.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -24,301 +25,361 @@ class numberline extends BaseQuestionType { protected $snap_to_ticks; protected $snap_vertically; protected $points; - + public function __construct( - $type, - array $points - ) - { - $this->type = $type; - $this->points = $points; - } + $type, + array $points + ) { + $this->type = $type; + $this->points = $points; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return numberline_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return numberline_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param numberline_metadata $metadata \ - */ - public function set_metadata (numberline_metadata $metadata) { + * Set metadata \ + * \ + * + * @param numberline_metadata $metadata \ + */ + public function set_metadata(numberline_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return numberline_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return numberline_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param numberline_ui_style $ui_style \ - */ - public function set_ui_style (numberline_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param numberline_ui_style $ui_style \ + */ + public function set_ui_style(numberline_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return numberline_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return numberline_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param numberline_validation $validation \ - */ - public function set_validation (numberline_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param numberline_validation $validation \ + */ + public function set_validation(numberline_validation $validation) + { $this->validation = $validation; } /** - * Get Line \ - * Defines the number line \ - * @return numberline_line $line \ - */ - public function get_line() { + * Get Line \ + * Defines the number line \ + * + * @return numberline_line $line \ + */ + public function get_line() + { return $this->line; } /** - * Set Line \ - * Defines the number line \ - * @param numberline_line $line \ - */ - public function set_line (numberline_line $line) { + * Set Line \ + * Defines the number line \ + * + * @param numberline_line $line \ + */ + public function set_line(numberline_line $line) + { $this->line = $line; } /** - * Get Ticks \ - * Defines the Number line ticks \ - * @return numberline_ticks $ticks \ - */ - public function get_ticks() { + * Get Ticks \ + * Defines the Number line ticks \ + * + * @return numberline_ticks $ticks \ + */ + public function get_ticks() + { return $this->ticks; } /** - * Set Ticks \ - * Defines the Number line ticks \ - * @param numberline_ticks $ticks \ - */ - public function set_ticks (numberline_ticks $ticks) { + * Set Ticks \ + * Defines the Number line ticks \ + * + * @param numberline_ticks $ticks \ + */ + public function set_ticks(numberline_ticks $ticks) + { $this->ticks = $ticks; } /** - * Get Labels \ - * Defines the labels to draw on the number line \ - * @return numberline_labels $labels \ - */ - public function get_labels() { + * Get Labels \ + * Defines the labels to draw on the number line \ + * + * @return numberline_labels $labels \ + */ + public function get_labels() + { return $this->labels; } /** - * Set Labels \ - * Defines the labels to draw on the number line \ - * @param numberline_labels $labels \ - */ - public function set_labels (numberline_labels $labels) { + * Set Labels \ + * Defines the labels to draw on the number line \ + * + * @param numberline_labels $labels \ + */ + public function set_labels(numberline_labels $labels) + { $this->labels = $labels; } /** - * Get Snap to ticks \ - * Whether dragged points should snap to the ticks specified by ticks.distance and labels.points \ - * @return boolean $snap_to_ticks \ - */ - public function get_snap_to_ticks() { + * Get Snap to ticks \ + * Whether dragged points should snap to the ticks specified by ticks.distance and labels.points \ + * + * @return boolean $snap_to_ticks \ + */ + public function get_snap_to_ticks() + { return $this->snap_to_ticks; } /** - * Set Snap to ticks \ - * Whether dragged points should snap to the ticks specified by ticks.distance and labels.points \ - * @param boolean $snap_to_ticks \ - */ - public function set_snap_to_ticks ($snap_to_ticks) { + * Set Snap to ticks \ + * Whether dragged points should snap to the ticks specified by ticks.distance and labels.points \ + * + * @param boolean $snap_to_ticks \ + */ + public function set_snap_to_ticks($snap_to_ticks) + { $this->snap_to_ticks = $snap_to_ticks; } /** - * Get Snap vertically \ - * Whether dragged points should snap to the line when dropped above it \ - * @return boolean $snap_vertically \ - */ - public function get_snap_vertically() { + * Get Snap vertically \ + * Whether dragged points should snap to the line when dropped above it \ + * + * @return boolean $snap_vertically \ + */ + public function get_snap_vertically() + { return $this->snap_vertically; } /** - * Set Snap vertically \ - * Whether dragged points should snap to the line when dropped above it \ - * @param boolean $snap_vertically \ - */ - public function set_snap_vertically ($snap_vertically) { + * Set Snap vertically \ + * Whether dragged points should snap to the line when dropped above it \ + * + * @param boolean $snap_vertically \ + */ + public function set_snap_vertically($snap_vertically) + { $this->snap_vertically = $snap_vertically; } /** - * Get Points \ - * Array containing the points the user has to position on the number line. Possible formats are: text, number, fraction an - d mixed fraction. The field doesn't support LaTeX because of rendering complexity. \ - * @return array $points \ - */ - public function get_points() { + * Get Points \ + * Array containing the points the user has to position on the number line. Possible formats are: text, number, fraction an + * d mixed fraction. The field doesn't support LaTeX because of rendering complexity. \ + * + * @return array $points \ + */ + public function get_points() + { return $this->points; } /** - * Set Points \ - * Array containing the points the user has to position on the number line. Possible formats are: text, number, fraction an - d mixed fraction. The field doesn't support LaTeX because of rendering complexity. \ - * @param array $points \ - */ - public function set_points (array $points) { + * Set Points \ + * Array containing the points the user has to position on the number line. Possible formats are: text, number, fraction an + * d mixed fraction. The field doesn't support LaTeX because of rendering complexity. \ + * + * @param array $points \ + */ + public function set_points(array $points) + { $this->points = $points; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/numberline_labels.php b/src/Entities/QuestionTypes/numberline_labels.php index 8e4484c1..d36de172 100644 --- a/src/Entities/QuestionTypes/numberline_labels.php +++ b/src/Entities/QuestionTypes/numberline_labels.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_labels extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_labels extends BaseQuestionTypeAttribute +{ protected $frequency; protected $points; protected $show_min; protected $show_max; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Frequency \ - * Frequency with which to draw labels \ - * @return number $frequency \ - */ - public function get_frequency() { + * Get Frequency \ + * Frequency with which to draw labels \ + * + * @return number $frequency \ + */ + public function get_frequency() + { return $this->frequency; } /** - * Set Frequency \ - * Frequency with which to draw labels \ - * @param number $frequency \ - */ - public function set_frequency ($frequency) { + * Set Frequency \ + * Frequency with which to draw labels \ + * + * @param number $frequency \ + */ + public function set_frequency($frequency) + { $this->frequency = $frequency; } /** - * Get Points \ - * Specific point at which labels need to be drawn. Separate values by commas, eg: -2.5, 2.5 \ - * @return string $points \ - */ - public function get_points() { + * Get Points \ + * Specific point at which labels need to be drawn. Separate values by commas, eg: -2.5, 2.5 \ + * + * @return string $points \ + */ + public function get_points() + { return $this->points; } /** - * Set Points \ - * Specific point at which labels need to be drawn. Separate values by commas, eg: -2.5, 2.5 \ - * @param string $points \ - */ - public function set_points ($points) { + * Set Points \ + * Specific point at which labels need to be drawn. Separate values by commas, eg: -2.5, 2.5 \ + * + * @param string $points \ + */ + public function set_points($points) + { $this->points = $points; } /** - * Get Show min \ - * Whether to draw a label on the min value of the number line \ - * @return boolean $show_min \ - */ - public function get_show_min() { + * Get Show min \ + * Whether to draw a label on the min value of the number line \ + * + * @return boolean $show_min \ + */ + public function get_show_min() + { return $this->show_min; } /** - * Set Show min \ - * Whether to draw a label on the min value of the number line \ - * @param boolean $show_min \ - */ - public function set_show_min ($show_min) { + * Set Show min \ + * Whether to draw a label on the min value of the number line \ + * + * @param boolean $show_min \ + */ + public function set_show_min($show_min) + { $this->show_min = $show_min; } /** - * Get Show max \ - * Whether to draw a label on the max value of the number line \ - * @return boolean $show_max \ - */ - public function get_show_max() { + * Get Show max \ + * Whether to draw a label on the max value of the number line \ + * + * @return boolean $show_max \ + */ + public function get_show_max() + { return $this->show_max; } /** - * Set Show max \ - * Whether to draw a label on the max value of the number line \ - * @param boolean $show_max \ - */ - public function set_show_max ($show_max) { + * Set Show max \ + * Whether to draw a label on the max value of the number line \ + * + * @param boolean $show_max \ + */ + public function set_show_max($show_max) + { $this->show_max = $show_max; } - + } diff --git a/src/Entities/QuestionTypes/numberline_line.php b/src/Entities/QuestionTypes/numberline_line.php index 2802ef23..0f0fec25 100644 --- a/src/Entities/QuestionTypes/numberline_line.php +++ b/src/Entities/QuestionTypes/numberline_line.php @@ -5,111 +5,131 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_line extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_line extends BaseQuestionTypeAttribute +{ protected $min; protected $max; protected $left_arrow; protected $right_arrow; protected $title; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Min \ - * The minimum value on the number line \ - * @return number $min \ - */ - public function get_min() { + * Get Min \ + * The minimum value on the number line \ + * + * @return number $min \ + */ + public function get_min() + { return $this->min; } /** - * Set Min \ - * The minimum value on the number line \ - * @param number $min \ - */ - public function set_min ($min) { + * Set Min \ + * The minimum value on the number line \ + * + * @param number $min \ + */ + public function set_min($min) + { $this->min = $min; } /** - * Get Max \ - * The maximum value on the number line \ - * @return number $max \ - */ - public function get_max() { + * Get Max \ + * The maximum value on the number line \ + * + * @return number $max \ + */ + public function get_max() + { return $this->max; } /** - * Set Max \ - * The maximum value on the number line \ - * @param number $max \ - */ - public function set_max ($max) { + * Set Max \ + * The maximum value on the number line \ + * + * @param number $max \ + */ + public function set_max($max) + { $this->max = $max; } /** - * Get Left arrow \ - * Whether to draw an arrow on the left hand side of the line \ - * @return boolean $left_arrow \ - */ - public function get_left_arrow() { + * Get Left arrow \ + * Whether to draw an arrow on the left hand side of the line \ + * + * @return boolean $left_arrow \ + */ + public function get_left_arrow() + { return $this->left_arrow; } /** - * Set Left arrow \ - * Whether to draw an arrow on the left hand side of the line \ - * @param boolean $left_arrow \ - */ - public function set_left_arrow ($left_arrow) { + * Set Left arrow \ + * Whether to draw an arrow on the left hand side of the line \ + * + * @param boolean $left_arrow \ + */ + public function set_left_arrow($left_arrow) + { $this->left_arrow = $left_arrow; } /** - * Get Right arrow \ - * Whether to draw an arrow on the right hand side of the line \ - * @return boolean $right_arrow \ - */ - public function get_right_arrow() { + * Get Right arrow \ + * Whether to draw an arrow on the right hand side of the line \ + * + * @return boolean $right_arrow \ + */ + public function get_right_arrow() + { return $this->right_arrow; } /** - * Set Right arrow \ - * Whether to draw an arrow on the right hand side of the line \ - * @param boolean $right_arrow \ - */ - public function set_right_arrow ($right_arrow) { + * Set Right arrow \ + * Whether to draw an arrow on the right hand side of the line \ + * + * @param boolean $right_arrow \ + */ + public function set_right_arrow($right_arrow) + { $this->right_arrow = $right_arrow; } /** - * Get Title \ - * Line's title to display underneath it \ - * @return string $title \ - */ - public function get_title() { + * Get Title \ + * Line's title to display underneath it \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Title \ - * Line's title to display underneath it \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Title \ + * Line's title to display underneath it \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } - + } diff --git a/src/Entities/QuestionTypes/numberline_metadata.php b/src/Entities/QuestionTypes/numberline_metadata.php index 853e249f..92f45cb4 100644 --- a/src/Entities/QuestionTypes/numberline_metadata.php +++ b/src/Entities/QuestionTypes/numberline_metadata.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/numberline_ticks.php b/src/Entities/QuestionTypes/numberline_ticks.php index 5fada2aa..8b74bbdc 100644 --- a/src/Entities/QuestionTypes/numberline_ticks.php +++ b/src/Entities/QuestionTypes/numberline_ticks.php @@ -5,110 +5,126 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_ticks extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_ticks extends BaseQuestionTypeAttribute +{ protected $distance; protected $fractions; protected $base; protected $show; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distance \ - * The distance between ticks on the number line \ - * @return string/number $distance \ - */ - public function get_distance() { + * Get Distance \ + * The distance between ticks on the number line \ + * + * @return string/number $distance \ + */ + public function get_distance() + { return $this->distance; } /** - * Set Distance \ - * The distance between ticks on the number line \ - * @param string/number $distance \ - */ - public function set_distance ($distance) { + * Set Distance \ + * The distance between ticks on the number line \ + * + * @param string /number $distance \ + */ + public function set_distance($distance) + { $this->distance = $distance; } /** - * Get Fractions format \ - *

If the distance is set to a fraction this will determine in which format the fractions will b - e rendered on the Number Line. Select to display only: -

-

\ - * @return string $fractions \ - */ - public function get_fractions() { + * Get Fractions format \ + *

If the distance is set to a fraction this will determine in which format the fractions will b + * e rendered on the Number Line. Select to display only: + *

+ *

\ + * + * @return string $fractions \ + */ + public function get_fractions() + { return $this->fractions; } /** - * Set Fractions format \ - *

If the distance is set to a fraction this will determine in which format the fractions will b - e rendered on the Number Line. Select to display only: -

-

\ - * @param string $fractions \ - */ - public function set_fractions ($fractions) { + * Set Fractions format \ + *

If the distance is set to a fraction this will determine in which format the fractions will b + * e rendered on the Number Line. Select to display only: + *

+ *

\ + * + * @param string $fractions \ + */ + public function set_fractions($fractions) + { $this->fractions = $fractions; } /** - * Get Rendering base \ - * Value on the line, where rendering of ticks should start \ - * @return string $base \ - */ - public function get_base() { + * Get Rendering base \ + * Value on the line, where rendering of ticks should start \ + * + * @return string $base \ + */ + public function get_base() + { return $this->base; } /** - * Set Rendering base \ - * Value on the line, where rendering of ticks should start \ - * @param string $base \ - */ - public function set_base ($base) { + * Set Rendering base \ + * Value on the line, where rendering of ticks should start \ + * + * @param string $base \ + */ + public function set_base($base) + { $this->base = $base; } /** - * Get Show \ - * Whether to draw ticks on the line or not \ - * @return boolean $show \ - */ - public function get_show() { + * Get Show \ + * Whether to draw ticks on the line or not \ + * + * @return boolean $show \ + */ + public function get_show() + { return $this->show; } /** - * Set Show \ - * Whether to draw ticks on the line or not \ - * @param boolean $show \ - */ - public function set_show ($show) { + * Set Show \ + * Whether to draw ticks on the line or not \ + * + * @param boolean $show \ + */ + public function set_show($show) + { $this->show = $show; } - + } diff --git a/src/Entities/QuestionTypes/numberline_ui_style.php b/src/Entities/QuestionTypes/numberline_ui_style.php index bbb46674..f0d03732 100644 --- a/src/Entities/QuestionTypes/numberline_ui_style.php +++ b/src/Entities/QuestionTypes/numberline_ui_style.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $height; protected $width; @@ -18,176 +19,211 @@ class numberline_ui_style extends BaseQuestionTypeAttribute { protected $line_position; protected $title_position; protected $points_box_position; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Height \ - * The height of the drawn area with trailing px unit eg. "250px". If undefined or empty, the board's height will scaled au - tomatically based on the contents \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * The height of the drawn area with trailing px unit eg. "250px". If undefined or empty, the board's height will scaled au + * tomatically based on the contents \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * The height of the drawn area with trailing px unit eg. "250px". If undefined or empty, the board's height will scaled au - tomatically based on the contents \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * The height of the drawn area with trailing px unit eg. "250px". If undefined or empty, the board's height will scaled au + * tomatically based on the contents \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Width \ - * The width of the drawn area with trailing px unit eg. "550px". \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * The width of the drawn area with trailing px unit eg. "550px". \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * The width of the drawn area with trailing px unit eg. "550px". \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * The width of the drawn area with trailing px unit eg. "550px". \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Number line margin \ - * The distance from the number line's extremes to the sides with trailing px unit eg. "5px" \ - * @return string $number_line_margin \ - */ - public function get_number_line_margin() { + * Get Number line margin \ + * The distance from the number line's extremes to the sides with trailing px unit eg. "5px" \ + * + * @return string $number_line_margin \ + */ + public function get_number_line_margin() + { return $this->number_line_margin; } /** - * Set Number line margin \ - * The distance from the number line's extremes to the sides with trailing px unit eg. "5px" \ - * @param string $number_line_margin \ - */ - public function set_number_line_margin ($number_line_margin) { + * Set Number line margin \ + * The distance from the number line's extremes to the sides with trailing px unit eg. "5px" \ + * + * @param string $number_line_margin \ + */ + public function set_number_line_margin($number_line_margin) + { $this->number_line_margin = $number_line_margin; } /** - * Get Points distance x \ - * The distance in X axis between two points with trailing px unit eg. "10px" \ - * @return string $points_distance_x \ - */ - public function get_points_distance_x() { + * Get Points distance x \ + * The distance in X axis between two points with trailing px unit eg. "10px" \ + * + * @return string $points_distance_x \ + */ + public function get_points_distance_x() + { return $this->points_distance_x; } /** - * Set Points distance x \ - * The distance in X axis between two points with trailing px unit eg. "10px" \ - * @param string $points_distance_x \ - */ - public function set_points_distance_x ($points_distance_x) { + * Set Points distance x \ + * The distance in X axis between two points with trailing px unit eg. "10px" \ + * + * @param string $points_distance_x \ + */ + public function set_points_distance_x($points_distance_x) + { $this->points_distance_x = $points_distance_x; } /** - * Get Points distance y \ - * The distance in Y axis between two points with trailing px unit eg. "20px" \ - * @return string $points_distance_y \ - */ - public function get_points_distance_y() { + * Get Points distance y \ + * The distance in Y axis between two points with trailing px unit eg. "20px" \ + * + * @return string $points_distance_y \ + */ + public function get_points_distance_y() + { return $this->points_distance_y; } /** - * Set Points distance y \ - * The distance in Y axis between two points with trailing px unit eg. "20px" \ - * @param string $points_distance_y \ - */ - public function set_points_distance_y ($points_distance_y) { + * Set Points distance y \ + * The distance in Y axis between two points with trailing px unit eg. "20px" \ + * + * @param string $points_distance_y \ + */ + public function set_points_distance_y($points_distance_y) + { $this->points_distance_y = $points_distance_y; } /** - * Get Line position \ - * At which percentage of the height should the Number Line appear \ - * @return number $line_position \ - */ - public function get_line_position() { + * Get Line position \ + * At which percentage of the height should the Number Line appear \ + * + * @return number $line_position \ + */ + public function get_line_position() + { return $this->line_position; } /** - * Set Line position \ - * At which percentage of the height should the Number Line appear \ - * @param number $line_position \ - */ - public function set_line_position ($line_position) { + * Set Line position \ + * At which percentage of the height should the Number Line appear \ + * + * @param number $line_position \ + */ + public function set_line_position($line_position) + { $this->line_position = $line_position; } /** - * Get Title position \ - * At which percentage of the height should the Line's Title appear \ - * @return number $title_position \ - */ - public function get_title_position() { + * Get Title position \ + * At which percentage of the height should the Line's Title appear \ + * + * @return number $title_position \ + */ + public function get_title_position() + { return $this->title_position; } /** - * Set Title position \ - * At which percentage of the height should the Line's Title appear \ - * @param number $title_position \ - */ - public function set_title_position ($title_position) { + * Set Title position \ + * At which percentage of the height should the Line's Title appear \ + * + * @param number $title_position \ + */ + public function set_title_position($title_position) + { $this->title_position = $title_position; } /** - * Get Points box position \ - * At which percentage of the height should the Points box container start \ - * @return number $points_box_position \ - */ - public function get_points_box_position() { + * Get Points box position \ + * At which percentage of the height should the Points box container start \ + * + * @return number $points_box_position \ + */ + public function get_points_box_position() + { return $this->points_box_position; } /** - * Set Points box position \ - * At which percentage of the height should the Points box container start \ - * @param number $points_box_position \ - */ - public function set_points_box_position ($points_box_position) { + * Set Points box position \ + * At which percentage of the height should the Points box container start \ + * + * @param number $points_box_position \ + */ + public function set_points_box_position($points_box_position) + { $this->points_box_position = $points_box_position; } - + } diff --git a/src/Entities/QuestionTypes/numberline_validation.php b/src/Entities/QuestionTypes/numberline_validation.php index f868b888..2fb63e98 100644 --- a/src/Entities/QuestionTypes/numberline_validation.php +++ b/src/Entities/QuestionTypes/numberline_validation.php @@ -5,134 +5,158 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $threshold; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return numberline_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return numberline_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param numberline_validation_valid_response $valid_response \ - */ - public function set_valid_response (numberline_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param numberline_validation_valid_response $valid_response \ + */ + public function set_valid_response(numberline_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Threshold \ - * Threshold for the distance a point can be from the valid and still be marked as correct. \ - * @return number $threshold \ - */ - public function get_threshold() { + * Get Threshold \ + * Threshold for the distance a point can be from the valid and still be marked as correct. \ + * + * @return number $threshold \ + */ + public function get_threshold() + { return $this->threshold; } /** - * Set Threshold \ - * Threshold for the distance a point can be from the valid and still be marked as correct. \ - * @param number $threshold \ - */ - public function set_threshold ($threshold) { + * Set Threshold \ + * Threshold for the distance a point can be from the valid and still be marked as correct. \ + * + * @param number $threshold \ + */ + public function set_threshold($threshold) + { $this->threshold = $threshold; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/numberline_validation_alt_responses_item.php b/src/Entities/QuestionTypes/numberline_validation_alt_responses_item.php index 93e269b3..d06c5f6b 100644 --- a/src/Entities/QuestionTypes/numberline_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/numberline_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Alternate response. \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * Alternate response. \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Alternate response. \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * Alternate response. \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/numberline_validation_alt_responses_item_value_item.php b/src/Entities/QuestionTypes/numberline_validation_alt_responses_item_value_item.php index 184b5528..5e44cc0d 100644 --- a/src/Entities/QuestionTypes/numberline_validation_alt_responses_item_value_item.php +++ b/src/Entities/QuestionTypes/numberline_validation_alt_responses_item_value_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute +{ protected $point; protected $position; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Point \ - * The point that should be validated. \ - * @return string $point \ - */ - public function get_point() { + * Get Point \ + * The point that should be validated. \ + * + * @return string $point \ + */ + public function get_point() + { return $this->point; } /** - * Set Point \ - * The point that should be validated. \ - * @param string $point \ - */ - public function set_point ($point) { + * Set Point \ + * The point that should be validated. \ + * + * @param string $point \ + */ + public function set_point($point) + { $this->point = $point; } /** - * Get Position \ - * The position on the number line the point should represent. \ - * @return string $position \ - */ - public function get_position() { + * Get Position \ + * The position on the number line the point should represent. \ + * + * @return string $position \ + */ + public function get_position() + { return $this->position; } /** - * Set Position \ - * The position on the number line the point should represent. \ - * @param string $position \ - */ - public function set_position ($position) { + * Set Position \ + * The position on the number line the point should represent. \ + * + * @param string $position \ + */ + public function set_position($position) + { $this->position = $position; } - + } diff --git a/src/Entities/QuestionTypes/numberline_validation_valid_response.php b/src/Entities/QuestionTypes/numberline_validation_valid_response.php index 64639b52..3b564c18 100644 --- a/src/Entities/QuestionTypes/numberline_validation_valid_response.php +++ b/src/Entities/QuestionTypes/numberline_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing objects defining the correct position for a given point, e.g. {point: '3', position: '3'} \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing objects defining the correct position for a given point, e.g. {point: '3', position: '3'} \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing objects defining the correct position for a given point, e.g. {point: '3', position: '3'} \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing objects defining the correct position for a given point, e.g. {point: '3', position: '3'} \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/numberline_validation_valid_response_value_item.php b/src/Entities/QuestionTypes/numberline_validation_valid_response_value_item.php index 391ca9a5..9005850b 100644 --- a/src/Entities/QuestionTypes/numberline_validation_valid_response_value_item.php +++ b/src/Entities/QuestionTypes/numberline_validation_valid_response_value_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberline_validation_valid_response_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberline_validation_valid_response_value_item extends BaseQuestionTypeAttribute +{ protected $point; protected $position; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Point \ - * The point that should be validated. \ - * @return string $point \ - */ - public function get_point() { + * Get Point \ + * The point that should be validated. \ + * + * @return string $point \ + */ + public function get_point() + { return $this->point; } /** - * Set Point \ - * The point that should be validated. \ - * @param string $point \ - */ - public function set_point ($point) { + * Set Point \ + * The point that should be validated. \ + * + * @param string $point \ + */ + public function set_point($point) + { $this->point = $point; } /** - * Get Position \ - * The position on the number line the point should represent. \ - * @return string $position \ - */ - public function get_position() { + * Get Position \ + * The position on the number line the point should represent. \ + * + * @return string $position \ + */ + public function get_position() + { return $this->position; } /** - * Set Position \ - * The position on the number line the point should represent. \ - * @param string $position \ - */ - public function set_position ($position) { + * Set Position \ + * The position on the number line the point should represent. \ + * + * @param string $position \ + */ + public function set_position($position) + { $this->position = $position; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot.php b/src/Entities/QuestionTypes/numberlineplot.php index 1abb1c71..1ddf362c 100644 --- a/src/Entities/QuestionTypes/numberlineplot.php +++ b/src/Entities/QuestionTypes/numberlineplot.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -26,333 +27,401 @@ class numberlineplot extends BaseQuestionType { protected $stacked_elements; protected $toolbar; protected $points; - + public function __construct( - $type - ) - { - $this->type = $type; - } + $type + ) { + $this->type = $type; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return numberlineplot_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return numberlineplot_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param numberlineplot_metadata $metadata \ - */ - public function set_metadata (numberlineplot_metadata $metadata) { + * Set metadata \ + * \ + * + * @param numberlineplot_metadata $metadata \ + */ + public function set_metadata(numberlineplot_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return numberlineplot_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return numberlineplot_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param numberlineplot_ui_style $ui_style \ - */ - public function set_ui_style (numberlineplot_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param numberlineplot_ui_style $ui_style \ + */ + public function set_ui_style(numberlineplot_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return numberlineplot_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return numberlineplot_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param numberlineplot_validation $validation \ - */ - public function set_validation (numberlineplot_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param numberlineplot_validation $validation \ + */ + public function set_validation(numberlineplot_validation $validation) + { $this->validation = $validation; } /** - * Get Title \ - * Response area title \ - * @return string $title \ - */ - public function get_title() { + * Get Title \ + * Response area title \ + * + * @return string $title \ + */ + public function get_title() + { return $this->title; } /** - * Set Title \ - * Response area title \ - * @param string $title \ - */ - public function set_title ($title) { + * Set Title \ + * Response area title \ + * + * @param string $title \ + */ + public function set_title($title) + { $this->title = $title; } /** - * Get Line \ - * \ - * @return numberlineplot_line $line \ - */ - public function get_line() { + * Get Line \ + * \ + * + * @return numberlineplot_line $line \ + */ + public function get_line() + { return $this->line; } /** - * Set Line \ - * \ - * @param numberlineplot_line $line \ - */ - public function set_line (numberlineplot_line $line) { + * Set Line \ + * \ + * + * @param numberlineplot_line $line \ + */ + public function set_line(numberlineplot_line $line) + { $this->line = $line; } /** - * Get Ticks \ - * \ - * @return numberlineplot_ticks $ticks \ - */ - public function get_ticks() { + * Get Ticks \ + * \ + * + * @return numberlineplot_ticks $ticks \ + */ + public function get_ticks() + { return $this->ticks; } /** - * Set Ticks \ - * \ - * @param numberlineplot_ticks $ticks \ - */ - public function set_ticks (numberlineplot_ticks $ticks) { + * Set Ticks \ + * \ + * + * @param numberlineplot_ticks $ticks \ + */ + public function set_ticks(numberlineplot_ticks $ticks) + { $this->ticks = $ticks; } /** - * Get Labels \ - * \ - * @return numberlineplot_labels $labels \ - */ - public function get_labels() { + * Get Labels \ + * \ + * + * @return numberlineplot_labels $labels \ + */ + public function get_labels() + { return $this->labels; } /** - * Set Labels \ - * \ - * @param numberlineplot_labels $labels \ - */ - public function set_labels (numberlineplot_labels $labels) { + * Set Labels \ + * \ + * + * @param numberlineplot_labels $labels \ + */ + public function set_labels(numberlineplot_labels $labels) + { $this->labels = $labels; } /** - * Get Stack responses \ - * Whether responses should be stacked, or plotted on the line \ - * @return boolean $stacked \ - */ - public function get_stacked() { + * Get Stack responses \ + * Whether responses should be stacked, or plotted on the line \ + * + * @return boolean $stacked \ + */ + public function get_stacked() + { return $this->stacked; } /** - * Set Stack responses \ - * Whether responses should be stacked, or plotted on the line \ - * @param boolean $stacked \ - */ - public function set_stacked ($stacked) { + * Set Stack responses \ + * Whether responses should be stacked, or plotted on the line \ + * + * @param boolean $stacked \ + */ + public function set_stacked($stacked) + { $this->stacked = $stacked; } /** - * Get Number of responses allowed \ - * Number of elements/responses user can add to the number line \ - * @return number $stacked_elements \ - */ - public function get_stacked_elements() { + * Get Number of responses allowed \ + * Number of elements/responses user can add to the number line \ + * + * @return number $stacked_elements \ + */ + public function get_stacked_elements() + { return $this->stacked_elements; } /** - * Set Number of responses allowed \ - * Number of elements/responses user can add to the number line \ - * @param number $stacked_elements \ - */ - public function set_stacked_elements ($stacked_elements) { + * Set Number of responses allowed \ + * Number of elements/responses user can add to the number line \ + * + * @param number $stacked_elements \ + */ + public function set_stacked_elements($stacked_elements) + { $this->stacked_elements = $stacked_elements; } /** - * Get Toolbar \ - * Allows you to choose toolbar buttons. By default all are available \ - * @return array $toolbar \ - */ - public function get_toolbar() { + * Get Toolbar \ + * Allows you to choose toolbar buttons. By default all are available \ + * + * @return array $toolbar \ + */ + public function get_toolbar() + { return $this->toolbar; } /** - * Set Toolbar \ - * Allows you to choose toolbar buttons. By default all are available \ - * @param array $toolbar \ - */ - public function set_toolbar (array $toolbar) { + * Set Toolbar \ + * Allows you to choose toolbar buttons. By default all are available \ + * + * @param array $toolbar \ + */ + public function set_toolbar(array $toolbar) + { $this->toolbar = $toolbar; } /** - * Get Points \ - * Specific point at which labels need to be drawn. Separate values by commas, eg: -2.5, 2.5 \ - * @return string $points \ - */ - public function get_points() { + * Get Points \ + * Specific point at which labels need to be drawn. Separate values by commas, eg: -2.5, 2.5 \ + * + * @return string $points \ + */ + public function get_points() + { return $this->points; } /** - * Set Points \ - * Specific point at which labels need to be drawn. Separate values by commas, eg: -2.5, 2.5 \ - * @param string $points \ - */ - public function set_points ($points) { + * Set Points \ + * Specific point at which labels need to be drawn. Separate values by commas, eg: -2.5, 2.5 \ + * + * @param string $points \ + */ + public function set_points($points) + { $this->points = $points; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/numberlineplot_labels.php b/src/Entities/QuestionTypes/numberlineplot_labels.php index b7bdf9e2..fefca5a3 100644 --- a/src/Entities/QuestionTypes/numberlineplot_labels.php +++ b/src/Entities/QuestionTypes/numberlineplot_labels.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_labels extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_labels extends BaseQuestionTypeAttribute +{ protected $show; protected $show_min; protected $show_max; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Show \ - * Whether to show labels on the line or not (only when tick is shown) \ - * @return boolean $show \ - */ - public function get_show() { + * Get Show \ + * Whether to show labels on the line or not (only when tick is shown) \ + * + * @return boolean $show \ + */ + public function get_show() + { return $this->show; } /** - * Set Show \ - * Whether to show labels on the line or not (only when tick is shown) \ - * @param boolean $show \ - */ - public function set_show ($show) { + * Set Show \ + * Whether to show labels on the line or not (only when tick is shown) \ + * + * @param boolean $show \ + */ + public function set_show($show) + { $this->show = $show; } /** - * Get Show min \ - * Whether to show min label on the line or not (only when tick is shown) \ - * @return boolean $show_min \ - */ - public function get_show_min() { + * Get Show min \ + * Whether to show min label on the line or not (only when tick is shown) \ + * + * @return boolean $show_min \ + */ + public function get_show_min() + { return $this->show_min; } /** - * Set Show min \ - * Whether to show min label on the line or not (only when tick is shown) \ - * @param boolean $show_min \ - */ - public function set_show_min ($show_min) { + * Set Show min \ + * Whether to show min label on the line or not (only when tick is shown) \ + * + * @param boolean $show_min \ + */ + public function set_show_min($show_min) + { $this->show_min = $show_min; } /** - * Get Show max \ - * Whether to show max label on the line or not (only when tick is shown) \ - * @return boolean $show_max \ - */ - public function get_show_max() { + * Get Show max \ + * Whether to show max label on the line or not (only when tick is shown) \ + * + * @return boolean $show_max \ + */ + public function get_show_max() + { return $this->show_max; } /** - * Set Show max \ - * Whether to show max label on the line or not (only when tick is shown) \ - * @param boolean $show_max \ - */ - public function set_show_max ($show_max) { + * Set Show max \ + * Whether to show max label on the line or not (only when tick is shown) \ + * + * @param boolean $show_max \ + */ + public function set_show_max($show_max) + { $this->show_max = $show_max; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot_line.php b/src/Entities/QuestionTypes/numberlineplot_line.php index 92aa3b2c..c200ce9a 100644 --- a/src/Entities/QuestionTypes/numberlineplot_line.php +++ b/src/Entities/QuestionTypes/numberlineplot_line.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_line extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_line extends BaseQuestionTypeAttribute +{ protected $min; protected $left_arrow; protected $max; protected $right_arrow; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Min \ - * Minimum value for the number line \ - * @return number $min \ - */ - public function get_min() { + * Get Min \ + * Minimum value for the number line \ + * + * @return number $min \ + */ + public function get_min() + { return $this->min; } /** - * Set Min \ - * Minimum value for the number line \ - * @param number $min \ - */ - public function set_min ($min) { + * Set Min \ + * Minimum value for the number line \ + * + * @param number $min \ + */ + public function set_min($min) + { $this->min = $min; } /** - * Get Show min arrow \ - * Draw an arrow on the left hand side of the line \ - * @return boolean $left_arrow \ - */ - public function get_left_arrow() { + * Get Show min arrow \ + * Draw an arrow on the left hand side of the line \ + * + * @return boolean $left_arrow \ + */ + public function get_left_arrow() + { return $this->left_arrow; } /** - * Set Show min arrow \ - * Draw an arrow on the left hand side of the line \ - * @param boolean $left_arrow \ - */ - public function set_left_arrow ($left_arrow) { + * Set Show min arrow \ + * Draw an arrow on the left hand side of the line \ + * + * @param boolean $left_arrow \ + */ + public function set_left_arrow($left_arrow) + { $this->left_arrow = $left_arrow; } /** - * Get Max \ - * Maximum value for the number line \ - * @return number $max \ - */ - public function get_max() { + * Get Max \ + * Maximum value for the number line \ + * + * @return number $max \ + */ + public function get_max() + { return $this->max; } /** - * Set Max \ - * Maximum value for the number line \ - * @param number $max \ - */ - public function set_max ($max) { + * Set Max \ + * Maximum value for the number line \ + * + * @param number $max \ + */ + public function set_max($max) + { $this->max = $max; } /** - * Get Show max arrow \ - * Draw an arrow on the right hand side of the line \ - * @return boolean $right_arrow \ - */ - public function get_right_arrow() { + * Get Show max arrow \ + * Draw an arrow on the right hand side of the line \ + * + * @return boolean $right_arrow \ + */ + public function get_right_arrow() + { return $this->right_arrow; } /** - * Set Show max arrow \ - * Draw an arrow on the right hand side of the line \ - * @param boolean $right_arrow \ - */ - public function set_right_arrow ($right_arrow) { + * Set Show max arrow \ + * Draw an arrow on the right hand side of the line \ + * + * @param boolean $right_arrow \ + */ + public function set_right_arrow($right_arrow) + { $this->right_arrow = $right_arrow; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot_metadata.php b/src/Entities/QuestionTypes/numberlineplot_metadata.php index 6edb45ab..ec8ff040 100644 --- a/src/Entities/QuestionTypes/numberlineplot_metadata.php +++ b/src/Entities/QuestionTypes/numberlineplot_metadata.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot_ticks.php b/src/Entities/QuestionTypes/numberlineplot_ticks.php index 6241cd84..fd67305a 100644 --- a/src/Entities/QuestionTypes/numberlineplot_ticks.php +++ b/src/Entities/QuestionTypes/numberlineplot_ticks.php @@ -5,130 +5,154 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_ticks extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_ticks extends BaseQuestionTypeAttribute +{ protected $distance; protected $minor_ticks; protected $base; protected $show; protected $show_min; protected $show_max; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distance \ - * Distance between ticks on the number line \ - * @return string/number $distance \ - */ - public function get_distance() { + * Get Distance \ + * Distance between ticks on the number line \ + * + * @return string/number $distance \ + */ + public function get_distance() + { return $this->distance; } /** - * Set Distance \ - * Distance between ticks on the number line \ - * @param string/number $distance \ - */ - public function set_distance ($distance) { + * Set Distance \ + * Distance between ticks on the number line \ + * + * @param string /number $distance \ + */ + public function set_distance($distance) + { $this->distance = $distance; } /** - * Get Minor ticks \ - * Number of minor ticks between major ticks \ - * @return number $minor_ticks \ - */ - public function get_minor_ticks() { + * Get Minor ticks \ + * Number of minor ticks between major ticks \ + * + * @return number $minor_ticks \ + */ + public function get_minor_ticks() + { return $this->minor_ticks; } /** - * Set Minor ticks \ - * Number of minor ticks between major ticks \ - * @param number $minor_ticks \ - */ - public function set_minor_ticks ($minor_ticks) { + * Set Minor ticks \ + * Number of minor ticks between major ticks \ + * + * @param number $minor_ticks \ + */ + public function set_minor_ticks($minor_ticks) + { $this->minor_ticks = $minor_ticks; } /** - * Get Rendering base \ - * Value on the line, where rendering of ticks should start \ - * @return string $base \ - */ - public function get_base() { + * Get Rendering base \ + * Value on the line, where rendering of ticks should start \ + * + * @return string $base \ + */ + public function get_base() + { return $this->base; } /** - * Set Rendering base \ - * Value on the line, where rendering of ticks should start \ - * @param string $base \ - */ - public function set_base ($base) { + * Set Rendering base \ + * Value on the line, where rendering of ticks should start \ + * + * @param string $base \ + */ + public function set_base($base) + { $this->base = $base; } /** - * Get Show \ - * Whether to draw ticks on the line or not \ - * @return boolean $show \ - */ - public function get_show() { + * Get Show \ + * Whether to draw ticks on the line or not \ + * + * @return boolean $show \ + */ + public function get_show() + { return $this->show; } /** - * Set Show \ - * Whether to draw ticks on the line or not \ - * @param boolean $show \ - */ - public function set_show ($show) { + * Set Show \ + * Whether to draw ticks on the line or not \ + * + * @param boolean $show \ + */ + public function set_show($show) + { $this->show = $show; } /** - * Get Show min \ - * Whether to draw min tick on the line or not \ - * @return boolean $show_min \ - */ - public function get_show_min() { + * Get Show min \ + * Whether to draw min tick on the line or not \ + * + * @return boolean $show_min \ + */ + public function get_show_min() + { return $this->show_min; } /** - * Set Show min \ - * Whether to draw min tick on the line or not \ - * @param boolean $show_min \ - */ - public function set_show_min ($show_min) { + * Set Show min \ + * Whether to draw min tick on the line or not \ + * + * @param boolean $show_min \ + */ + public function set_show_min($show_min) + { $this->show_min = $show_min; } /** - * Get Show max \ - * Whether to draw max tick on the line or not \ - * @return boolean $show_max \ - */ - public function get_show_max() { + * Get Show max \ + * Whether to draw max tick on the line or not \ + * + * @return boolean $show_max \ + */ + public function get_show_max() + { return $this->show_max; } /** - * Set Show max \ - * Whether to draw max tick on the line or not \ - * @param boolean $show_max \ - */ - public function set_show_max ($show_max) { + * Set Show max \ + * Whether to draw max tick on the line or not \ + * + * @param boolean $show_max \ + */ + public function set_show_max($show_max) + { $this->show_max = $show_max; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot_ui_style.php b/src/Entities/QuestionTypes/numberlineplot_ui_style.php index 3c34689c..8198db78 100644 --- a/src/Entities/QuestionTypes/numberlineplot_ui_style.php +++ b/src/Entities/QuestionTypes/numberlineplot_ui_style.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $layout; protected $spacing; @@ -16,140 +17,167 @@ class numberlineplot_ui_style extends BaseQuestionTypeAttribute { protected $width; protected $height; protected $min_width; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Layout \ - * Allows author to decide between horizontal and vertical plotting. \ - * @return string $layout \ - */ - public function get_layout() { + * Get Layout \ + * Allows author to decide between horizontal and vertical plotting. \ + * + * @return string $layout \ + */ + public function get_layout() + { return $this->layout; } /** - * Set Layout \ - * Allows author to decide between horizontal and vertical plotting. \ - * @param string $layout \ - */ - public function set_layout ($layout) { + * Set Layout \ + * Allows author to decide between horizontal and vertical plotting. \ + * + * @param string $layout \ + */ + public function set_layout($layout) + { $this->layout = $layout; } /** - * Get Spacing between stacked responses \ - * Spacing between stacked responses with trailing px unit eg. "30px" \ - * @return string $spacing \ - */ - public function get_spacing() { + * Get Spacing between stacked responses \ + * Spacing between stacked responses with trailing px unit eg. "30px" \ + * + * @return string $spacing \ + */ + public function get_spacing() + { return $this->spacing; } /** - * Set Spacing between stacked responses \ - * Spacing between stacked responses with trailing px unit eg. "30px" \ - * @param string $spacing \ - */ - public function set_spacing ($spacing) { + * Set Spacing between stacked responses \ + * Spacing between stacked responses with trailing px unit eg. "30px" \ + * + * @param string $spacing \ + */ + public function set_spacing($spacing) + { $this->spacing = $spacing; } /** - * Get Number line margin \ - * Distance from the number line's extremes to the sides with trailing px unit eg. "5px" \ - * @return string $number_line_margin \ - */ - public function get_number_line_margin() { + * Get Number line margin \ + * Distance from the number line's extremes to the sides with trailing px unit eg. "5px" \ + * + * @return string $number_line_margin \ + */ + public function get_number_line_margin() + { return $this->number_line_margin; } /** - * Set Number line margin \ - * Distance from the number line's extremes to the sides with trailing px unit eg. "5px" \ - * @param string $number_line_margin \ - */ - public function set_number_line_margin ($number_line_margin) { + * Set Number line margin \ + * Distance from the number line's extremes to the sides with trailing px unit eg. "5px" \ + * + * @param string $number_line_margin \ + */ + public function set_number_line_margin($number_line_margin) + { $this->number_line_margin = $number_line_margin; } /** - * Get Width \ - * Width of the drawn area with trailing px unit eg. "550px". \ - * @return string $width \ - */ - public function get_width() { + * Get Width \ + * Width of the drawn area with trailing px unit eg. "550px". \ + * + * @return string $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width \ - * Width of the drawn area with trailing px unit eg. "550px". \ - * @param string $width \ - */ - public function set_width ($width) { + * Set Width \ + * Width of the drawn area with trailing px unit eg. "550px". \ + * + * @param string $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height \ - * Height of the drawn area with trailing px unit eg. "500px". \ - * @return string $height \ - */ - public function get_height() { + * Get Height \ + * Height of the drawn area with trailing px unit eg. "500px". \ + * + * @return string $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height \ - * Height of the drawn area with trailing px unit eg. "500px". \ - * @param string $height \ - */ - public function set_height ($height) { + * Set Height \ + * Height of the drawn area with trailing px unit eg. "500px". \ + * + * @param string $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Minimum width \ - * Minimum width of the drawn area with trailing px unit eg. "550px". Width in vertical mode is being calculated automatica - lly, but you can force width to take at least some amount of space. Note also that toolbox takes 55px. \ - * @return string $min_width \ - */ - public function get_min_width() { + * Get Minimum width \ + * Minimum width of the drawn area with trailing px unit eg. "550px". Width in vertical mode is being calculated automatica + * lly, but you can force width to take at least some amount of space. Note also that toolbox takes 55px. \ + * + * @return string $min_width \ + */ + public function get_min_width() + { return $this->min_width; } /** - * Set Minimum width \ - * Minimum width of the drawn area with trailing px unit eg. "550px". Width in vertical mode is being calculated automatica - lly, but you can force width to take at least some amount of space. Note also that toolbox takes 55px. \ - * @param string $min_width \ - */ - public function set_min_width ($min_width) { + * Set Minimum width \ + * Minimum width of the drawn area with trailing px unit eg. "550px". Width in vertical mode is being calculated automatica + * lly, but you can force width to take at least some amount of space. Note also that toolbox takes 55px. \ + * + * @param string $min_width \ + */ + public function set_min_width($min_width) + { $this->min_width = $min_width; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot_validation.php b/src/Entities/QuestionTypes/numberlineplot_validation.php index f3cd5942..3f7a2686 100644 --- a/src/Entities/QuestionTypes/numberlineplot_validation.php +++ b/src/Entities/QuestionTypes/numberlineplot_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match per response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return numberlineplot_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return numberlineplot_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param numberlineplot_validation_valid_response $valid_response \ - */ - public function set_valid_response (numberlineplot_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param numberlineplot_validation_valid_response $valid_response \ + */ + public function set_valid_response(numberlineplot_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot_validation_alt_responses_item.php b/src/Entities/QuestionTypes/numberlineplot_validation_alt_responses_item.php index 0f8d0d0e..36436d07 100644 --- a/src/Entities/QuestionTypes/numberlineplot_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/numberlineplot_validation_alt_responses_item.php @@ -5,56 +5,64 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing objects defining the correct response for a given tool, e.g. response: { type: 'segment', point1: { - x: 0, y: 0 }, point2: { x: 0, y: 0 } } \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing objects defining the correct response for a given tool, e.g. response: { type: 'segment', point1: { + * x: 0, y: 0 }, point2: { x: 0, y: 0 } } \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing objects defining the correct response for a given tool, e.g. response: { type: 'segment', point1: { - x: 0, y: 0 }, point2: { x: 0, y: 0 } } \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing objects defining the correct response for a given tool, e.g. response: { type: 'segment', point1: { + * x: 0, y: 0 }, point2: { x: 0, y: 0 } } \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot_validation_alt_responses_item_value_item.php b/src/Entities/QuestionTypes/numberlineplot_validation_alt_responses_item_value_item.php index f6572e9d..0640644c 100644 --- a/src/Entities/QuestionTypes/numberlineplot_validation_alt_responses_item_value_item.php +++ b/src/Entities/QuestionTypes/numberlineplot_validation_alt_responses_item_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_validation_alt_responses_item_value_item extends BaseQuestionTypeAttribute +{ protected $type; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Type \ - * Type of the tool \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Type of the tool \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Type of the tool \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Type of the tool \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot_validation_valid_response.php b/src/Entities/QuestionTypes/numberlineplot_validation_valid_response.php index 400637f5..fb3512c2 100644 --- a/src/Entities/QuestionTypes/numberlineplot_validation_valid_response.php +++ b/src/Entities/QuestionTypes/numberlineplot_validation_valid_response.php @@ -5,56 +5,64 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array containing objects defining the correct response for a given tool, e.g. response: { type: 'segment', point1: { - x: 0, y: 0 }, point2: { x: 0, y: 0 } } \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array containing objects defining the correct response for a given tool, e.g. response: { type: 'segment', point1: { + * x: 0, y: 0 }, point2: { x: 0, y: 0 } } \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array containing objects defining the correct response for a given tool, e.g. response: { type: 'segment', point1: { - x: 0, y: 0 }, point2: { x: 0, y: 0 } } \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array containing objects defining the correct response for a given tool, e.g. response: { type: 'segment', point1: { + * x: 0, y: 0 }, point2: { x: 0, y: 0 } } \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/numberlineplot_validation_valid_response_value_item.php b/src/Entities/QuestionTypes/numberlineplot_validation_valid_response_value_item.php index c6469843..81efe4a2 100644 --- a/src/Entities/QuestionTypes/numberlineplot_validation_valid_response_value_item.php +++ b/src/Entities/QuestionTypes/numberlineplot_validation_valid_response_value_item.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class numberlineplot_validation_valid_response_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class numberlineplot_validation_valid_response_value_item extends BaseQuestionTypeAttribute +{ protected $type; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Type \ - * Type of the tool \ - * @return string $type \ - */ - public function get_type() { + * Get Type \ + * Type of the tool \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Type \ - * Type of the tool \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Type \ + * Type of the tool \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } - + } diff --git a/src/Entities/QuestionTypes/orderlist.php b/src/Entities/QuestionTypes/orderlist.php index 359ffd88..b54a10b8 100644 --- a/src/Entities/QuestionTypes/orderlist.php +++ b/src/Entities/QuestionTypes/orderlist.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class orderlist extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class orderlist extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -20,233 +21,277 @@ class orderlist extends BaseQuestionType { protected $validation; protected $description; protected $list; - + public function __construct( - $type, - array $list - ) - { - $this->type = $type; - $this->list = $list; - } + $type, + array $list + ) { + $this->type = $type; + $this->list = $list; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return orderlist_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return orderlist_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param orderlist_metadata $metadata \ - */ - public function set_metadata (orderlist_metadata $metadata) { + * Set metadata \ + * \ + * + * @param orderlist_metadata $metadata \ + */ + public function set_metadata(orderlist_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get UI style \ - * Object used to control different aspects of the UI \ - * @return orderlist_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get UI style \ + * Object used to control different aspects of the UI \ + * + * @return orderlist_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set UI style \ - * Object used to control different aspects of the UI \ - * @param orderlist_ui_style $ui_style \ - */ - public function set_ui_style (orderlist_ui_style $ui_style) { + * Set UI style \ + * Object used to control different aspects of the UI \ + * + * @param orderlist_ui_style $ui_style \ + */ + public function set_ui_style(orderlist_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return orderlist_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return orderlist_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param orderlist_validation $validation \ - */ - public function set_validation (orderlist_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param orderlist_validation $validation \ + */ + public function set_validation(orderlist_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get List \ - * Array of strings that represent the unordered stimulus list for the question. \ - * @return array $list \ - */ - public function get_list() { + * Get List \ + * Array of strings that represent the unordered stimulus list for the question. \ + * + * @return array $list \ + */ + public function get_list() + { return $this->list; } /** - * Set List \ - * Array of strings that represent the unordered stimulus list for the question. \ - * @param array $list \ - */ - public function set_list (array $list) { + * Set List \ + * Array of strings that represent the unordered stimulus list for the question. \ + * + * @param array $list \ + */ + public function set_list(array $list) + { $this->list = $list; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/orderlist_metadata.php b/src/Entities/QuestionTypes/orderlist_metadata.php index 6ed56bb6..8f1c09ee 100644 --- a/src/Entities/QuestionTypes/orderlist_metadata.php +++ b/src/Entities/QuestionTypes/orderlist_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class orderlist_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class orderlist_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/orderlist_ui_style.php b/src/Entities/QuestionTypes/orderlist_ui_style.php index 15c8b339..e3ef80ae 100644 --- a/src/Entities/QuestionTypes/orderlist_ui_style.php +++ b/src/Entities/QuestionTypes/orderlist_ui_style.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class orderlist_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class orderlist_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; protected $type; protected $show_drag_handle; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Layout \ - * The style of the list for the user interface. Supported types are 'button', 'list', and 'inline'. \ - * @return string $type \ - */ - public function get_type() { + * Get Layout \ + * The style of the list for the user interface. Supported types are 'button', 'list', and 'inline'. \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Layout \ - * The style of the list for the user interface. Supported types are 'button', 'list', and 'inline'. \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Layout \ + * The style of the list for the user interface. Supported types are 'button', 'list', and 'inline'. \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Show drag handle \ - * Determines whether to show the drag handle. \ - * @return boolean $show_drag_handle \ - */ - public function get_show_drag_handle() { + * Get Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @return boolean $show_drag_handle \ + */ + public function get_show_drag_handle() + { return $this->show_drag_handle; } /** - * Set Show drag handle \ - * Determines whether to show the drag handle. \ - * @param boolean $show_drag_handle \ - */ - public function set_show_drag_handle ($show_drag_handle) { + * Set Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @param boolean $show_drag_handle \ + */ + public function set_show_drag_handle($show_drag_handle) + { $this->show_drag_handle = $show_drag_handle; } - + } diff --git a/src/Entities/QuestionTypes/orderlist_validation.php b/src/Entities/QuestionTypes/orderlist_validation.php index 178fcd44..d975e98f 100644 --- a/src/Entities/QuestionTypes/orderlist_validation.php +++ b/src/Entities/QuestionTypes/orderlist_validation.php @@ -5,125 +5,145 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class orderlist_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class orderlist_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Student must answer - all parts of the question correctly to receive a score
'partialMatchV2': Partial Match - Each respo - nse entity will be scored individually with marks awarded if responses are in the correct position. The overall question - score will be divided between the response items
'partialMatch': Partial Match Per Response - Each - response entity will be scored individually with marks awarded if responses are in the correct position. Each response e - ntity will be awarded an individual score
'partialMatchPairwise': Partial Pairwise Per Response - En - tities are compared in pairs to determine the score \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2, partialMatchPairwise \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Student must answer + * all parts of the question correctly to receive a score
'partialMatchV2': Partial Match - Each respo + * nse entity will be scored individually with marks awarded if responses are in the correct position. The overall question + * score will be divided between the response items
'partialMatch': Partial Match Per Response - Each + * response entity will be scored individually with marks awarded if responses are in the correct position. Each response e + * ntity will be awarded an individual score
'partialMatchPairwise': Partial Pairwise Per Response - En + * tities are compared in pairs to determine the score \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2, partialMatchPairwise \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Student must answer - all parts of the question correctly to receive a score
'partialMatchV2': Partial Match - Each respo - nse entity will be scored individually with marks awarded if responses are in the correct position. The overall question - score will be divided between the response items
'partialMatch': Partial Match Per Response - Each - response entity will be scored individually with marks awarded if responses are in the correct position. Each response e - ntity will be awarded an individual score
'partialMatchPairwise': Partial Pairwise Per Response - En - tities are compared in pairs to determine the score \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2, partialMatchPairwise \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Student must answer + * all parts of the question correctly to receive a score
'partialMatchV2': Partial Match - Each respo + * nse entity will be scored individually with marks awarded if responses are in the correct position. The overall question + * score will be divided between the response items
'partialMatch': Partial Match Per Response - Each + * response entity will be scored individually with marks awarded if responses are in the correct position. Each response e + * ntity will be awarded an individual score
'partialMatchPairwise': Partial Pairwise Per Response - En + * tities are compared in pairs to determine the score \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2, partialMatchPairwise \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return orderlist_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return orderlist_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param orderlist_validation_valid_response $valid_response \ - */ - public function set_valid_response (orderlist_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param orderlist_validation_valid_response $valid_response \ + */ + public function set_valid_response(orderlist_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/orderlist_validation_alt_responses_item.php b/src/Entities/QuestionTypes/orderlist_validation_alt_responses_item.php index 160d73da..126194b7 100644 --- a/src/Entities/QuestionTypes/orderlist_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/orderlist_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class orderlist_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class orderlist_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Array of integers indicating the correct order of indexes of the list \ - * @return questionOrderlist $value \ - */ - public function get_value() { + * Get Value \ + * Array of integers indicating the correct order of indexes of the list \ + * + * @return questionOrderlist $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Array of integers indicating the correct order of indexes of the list \ - * @param questionOrderlist $value \ - */ - public function set_value ($value) { + * Set Value \ + * Array of integers indicating the correct order of indexes of the list \ + * + * @param questionOrderlist $value \ + */ + public function set_value($value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/orderlist_validation_valid_response.php b/src/Entities/QuestionTypes/orderlist_validation_valid_response.php index 5cb12286..70d012a8 100644 --- a/src/Entities/QuestionTypes/orderlist_validation_valid_response.php +++ b/src/Entities/QuestionTypes/orderlist_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class orderlist_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class orderlist_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Array of integers indicating the correct order of indexes of the list \ - * @return questionOrderlist $value \ - */ - public function get_value() { + * Get Value \ + * Array of integers indicating the correct order of indexes of the list \ + * + * @return questionOrderlist $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Array of integers indicating the correct order of indexes of the list \ - * @param questionOrderlist $value \ - */ - public function set_value ($value) { + * Set Value \ + * Array of integers indicating the correct order of indexes of the list \ + * + * @param questionOrderlist $value \ + */ + public function set_value($value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/plaintext.php b/src/Entities/QuestionTypes/plaintext.php index 300680ef..7f99a0c1 100644 --- a/src/Entities/QuestionTypes/plaintext.php +++ b/src/Entities/QuestionTypes/plaintext.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class plaintext extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class plaintext extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -26,355 +27,423 @@ class plaintext extends BaseQuestionType { protected $submit_over_limit; protected $spellcheck; protected $placeholder; - + public function __construct( - $type - ) - { - $this->type = $type; - } + $type + ) { + $this->type = $type; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return plaintext_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return plaintext_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param plaintext_metadata $metadata \ - */ - public function set_metadata (plaintext_metadata $metadata) { + * Set metadata \ + * \ + * + * @param plaintext_metadata $metadata \ + */ + public function set_metadata(plaintext_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get UI style \ - * User Interface style \ - * @return plaintext_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get UI style \ + * User Interface style \ + * + * @return plaintext_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set UI style \ - * User Interface style \ - * @param plaintext_ui_style $ui_style \ - */ - public function set_ui_style (plaintext_ui_style $ui_style) { + * Set UI style \ + * User Interface style \ + * + * @param plaintext_ui_style $ui_style \ + */ + public function set_ui_style(plaintext_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @return plaintext_validation $validation \ - */ - public function get_validation() { + * Get Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @return plaintext_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set Validation \ - * Validation object that includes guidelines on for how this question should be marked. \ - * @param plaintext_validation $validation \ - */ - public function set_validation (plaintext_validation $validation) { + * Set Validation \ + * Validation object that includes guidelines on for how this question should be marked. \ + * + * @param plaintext_validation $validation \ + */ + public function set_validation(plaintext_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Character Map \ - * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
-If an Array, the character map button - will show and display only the array of characters.
IMPORTANT The HTML doc - ument will require a charset of utf-8: <meta charset="utf-8"> \ - * @return $character_map \ - */ - public function get_character_map() { + * Get Character Map \ + * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
+ * If an Array, the character map button + * will show and display only the array of characters.
IMPORTANT The HTML doc + * ument will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @return $character_map \ + */ + public function get_character_map() + { return $this->character_map; } /** - * Set Character Map \ - * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
-If an Array, the character map button - will show and display only the array of characters.
IMPORTANT The HTML doc - ument will require a charset of utf-8: <meta charset="utf-8"> \ - * @param $character_map \ - */ - public function set_character_map ($character_map) { + * Set Character Map \ + * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
+ * If an Array, the character map button + * will show and display only the array of characters.
IMPORTANT The HTML doc + * ument will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @param $character_map \ + */ + public function set_character_map($character_map) + { $this->character_map = $character_map; } /** - * Get Maximum Length (words) \ - * Maximum number of words that can be entered in the field. Maximum: 100,000 chars ~ 10,000 words To Be Confirmed \ - * @return number $max_length \ - */ - public function get_max_length() { + * Get Maximum Length (words) \ + * Maximum number of words that can be entered in the field. Maximum: 100,000 chars ~ 10,000 words To Be Confirmed \ + * + * @return number $max_length \ + */ + public function get_max_length() + { return $this->max_length; } /** - * Set Maximum Length (words) \ - * Maximum number of words that can be entered in the field. Maximum: 100,000 chars ~ 10,000 words To Be Confirmed \ - * @param number $max_length \ - */ - public function set_max_length ($max_length) { + * Set Maximum Length (words) \ + * Maximum number of words that can be entered in the field. Maximum: 100,000 chars ~ 10,000 words To Be Confirmed \ + * + * @param number $max_length \ + */ + public function set_max_length($max_length) + { $this->max_length = $max_length; } /** - * Get Show Copy Button \ - * When this is true the Copy Button is shown in the plain text toolbar. \ - * @return boolean $show_copy \ - */ - public function get_show_copy() { + * Get Show Copy Button \ + * When this is true the Copy Button is shown in the plain text toolbar. \ + * + * @return boolean $show_copy \ + */ + public function get_show_copy() + { return $this->show_copy; } /** - * Set Show Copy Button \ - * When this is true the Copy Button is shown in the plain text toolbar. \ - * @param boolean $show_copy \ - */ - public function set_show_copy ($show_copy) { + * Set Show Copy Button \ + * When this is true the Copy Button is shown in the plain text toolbar. \ + * + * @param boolean $show_copy \ + */ + public function set_show_copy($show_copy) + { $this->show_copy = $show_copy; } /** - * Get Show Cut Button \ - * When this is true the Cut button is shown in the plain text toolbar. \ - * @return boolean $show_cut \ - */ - public function get_show_cut() { + * Get Show Cut Button \ + * When this is true the Cut button is shown in the plain text toolbar. \ + * + * @return boolean $show_cut \ + */ + public function get_show_cut() + { return $this->show_cut; } /** - * Set Show Cut Button \ - * When this is true the Cut button is shown in the plain text toolbar. \ - * @param boolean $show_cut \ - */ - public function set_show_cut ($show_cut) { + * Set Show Cut Button \ + * When this is true the Cut button is shown in the plain text toolbar. \ + * + * @param boolean $show_cut \ + */ + public function set_show_cut($show_cut) + { $this->show_cut = $show_cut; } /** - * Get Show Paste Button \ - * When this is true the Paste button is shown in the plain text toolbar. \ - * @return boolean $show_paste \ - */ - public function get_show_paste() { + * Get Show Paste Button \ + * When this is true the Paste button is shown in the plain text toolbar. \ + * + * @return boolean $show_paste \ + */ + public function get_show_paste() + { return $this->show_paste; } /** - * Set Show Paste Button \ - * When this is true the Paste button is shown in the plain text toolbar. \ - * @param boolean $show_paste \ - */ - public function set_show_paste ($show_paste) { + * Set Show Paste Button \ + * When this is true the Paste button is shown in the plain text toolbar. \ + * + * @param boolean $show_paste \ + */ + public function set_show_paste($show_paste) + { $this->show_paste = $show_paste; } /** - * Get Word Limit Setting \ - * Determines how the word limit UI will display. Options are the following strings:
"always": Word - limit is always shown and updated as the user types
"on-limit": Word limit is only displayed whe - n the word limit is exceeded
"off": No word limit it shown. \ - * @return $show_word_limit \ - */ - public function get_show_word_limit() { + * Get Word Limit Setting \ + * Determines how the word limit UI will display. Options are the following strings:
"always": Word + * limit is always shown and updated as the user types
"on-limit": Word limit is only displayed whe + * n the word limit is exceeded
"off": No word limit it shown. \ + * + * @return $show_word_limit \ + */ + public function get_show_word_limit() + { return $this->show_word_limit; } /** - * Set Word Limit Setting \ - * Determines how the word limit UI will display. Options are the following strings:
"always": Word - limit is always shown and updated as the user types
"on-limit": Word limit is only displayed whe - n the word limit is exceeded
"off": No word limit it shown. \ - * @param $show_word_limit \ - */ - public function set_show_word_limit ($show_word_limit) { + * Set Word Limit Setting \ + * Determines how the word limit UI will display. Options are the following strings:
"always": Word + * limit is always shown and updated as the user types
"on-limit": Word limit is only displayed whe + * n the word limit is exceeded
"off": No word limit it shown. \ + * + * @param $show_word_limit \ + */ + public function set_show_word_limit($show_word_limit) + { $this->show_word_limit = $show_word_limit; } /** - * Get Submit over limit? \ - * Determines if the user is able to save/submit when the word limit has been exceeded. \ - * @return boolean $submit_over_limit \ - */ - public function get_submit_over_limit() { + * Get Submit over limit? \ + * Determines if the user is able to save/submit when the word limit has been exceeded. \ + * + * @return boolean $submit_over_limit \ + */ + public function get_submit_over_limit() + { return $this->submit_over_limit; } /** - * Set Submit over limit? \ - * Determines if the user is able to save/submit when the word limit has been exceeded. \ - * @param boolean $submit_over_limit \ - */ - public function set_submit_over_limit ($submit_over_limit) { + * Set Submit over limit? \ + * Determines if the user is able to save/submit when the word limit has been exceeded. \ + * + * @param boolean $submit_over_limit \ + */ + public function set_submit_over_limit($submit_over_limit) + { $this->submit_over_limit = $submit_over_limit; } /** - * Get Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @return boolean $spellcheck \ - */ - public function get_spellcheck() { + * Get Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @return boolean $spellcheck \ + */ + public function get_spellcheck() + { return $this->spellcheck; } /** - * Set Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @param boolean $spellcheck \ - */ - public function set_spellcheck ($spellcheck) { + * Set Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @param boolean $spellcheck \ + */ + public function set_spellcheck($spellcheck) + { $this->spellcheck = $spellcheck; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/plaintext_metadata.php b/src/Entities/QuestionTypes/plaintext_metadata.php index 212d6fc5..c7491669 100644 --- a/src/Entities/QuestionTypes/plaintext_metadata.php +++ b/src/Entities/QuestionTypes/plaintext_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class plaintext_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class plaintext_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/plaintext_ui_style.php b/src/Entities/QuestionTypes/plaintext_ui_style.php index 4133dfd7..6a9696f4 100644 --- a/src/Entities/QuestionTypes/plaintext_ui_style.php +++ b/src/Entities/QuestionTypes/plaintext_ui_style.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class plaintext_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class plaintext_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $min_height; protected $max_height; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Min height \ - * The minimum height of the text input including units. Example: "100px" \ - * @return string $min_height \ - */ - public function get_min_height() { + * Get Min height \ + * The minimum height of the text input including units. Example: "100px" \ + * + * @return string $min_height \ + */ + public function get_min_height() + { return $this->min_height; } /** - * Set Min height \ - * The minimum height of the text input including units. Example: "100px" \ - * @param string $min_height \ - */ - public function set_min_height ($min_height) { + * Set Min height \ + * The minimum height of the text input including units. Example: "100px" \ + * + * @param string $min_height \ + */ + public function set_min_height($min_height) + { $this->min_height = $min_height; } /** - * Get Max height \ - * The max height of the text input including units. Example: "100px" \ - * @return string $max_height \ - */ - public function get_max_height() { + * Get Max height \ + * The max height of the text input including units. Example: "100px" \ + * + * @return string $max_height \ + */ + public function get_max_height() + { return $this->max_height; } /** - * Set Max height \ - * The max height of the text input including units. Example: "100px" \ - * @param string $max_height \ - */ - public function set_max_height ($max_height) { + * Set Max height \ + * The max height of the text input including units. Example: "100px" \ + * + * @param string $max_height \ + */ + public function set_max_height($max_height) + { $this->max_height = $max_height; } - + } diff --git a/src/Entities/QuestionTypes/plaintext_validation.php b/src/Entities/QuestionTypes/plaintext_validation.php index a31d612f..c58adde4 100644 --- a/src/Entities/QuestionTypes/plaintext_validation.php +++ b/src/Entities/QuestionTypes/plaintext_validation.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class plaintext_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class plaintext_validation extends BaseQuestionTypeAttribute +{ protected $max_score; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Max Score \ - * The highest score a marker can award to this question response. \ - * @return number $max_score \ - */ - public function get_max_score() { + * Get Max Score \ + * The highest score a marker can award to this question response. \ + * + * @return number $max_score \ + */ + public function get_max_score() + { return $this->max_score; } /** - * Set Max Score \ - * The highest score a marker can award to this question response. \ - * @param number $max_score \ - */ - public function set_max_score ($max_score) { + * Set Max Score \ + * The highest score a marker can award to this question response. \ + * + * @param number $max_score \ + */ + public function set_max_score($max_score) + { $this->max_score = $max_score; } - + } diff --git a/src/Entities/QuestionTypes/rating.php b/src/Entities/QuestionTypes/rating.php index 12bde97d..a07c33f7 100644 --- a/src/Entities/QuestionTypes/rating.php +++ b/src/Entities/QuestionTypes/rating.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class rating extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class rating extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -17,173 +18,205 @@ class rating extends BaseQuestionType { protected $ui_style; protected $options; protected $initial_value; - + public function __construct( - $type, - array $options - ) - { - $this->type = $type; - $this->options = $options; - } + $type, + array $options + ) { + $this->type = $type; + $this->options = $options; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return rating_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return rating_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param rating_metadata $metadata \ - */ - public function set_metadata (rating_metadata $metadata) { + * Set metadata \ + * \ + * + * @param rating_metadata $metadata \ + */ + public function set_metadata(rating_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return rating_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return rating_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param rating_ui_style $ui_style \ - */ - public function set_ui_style (rating_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param rating_ui_style $ui_style \ + */ + public function set_ui_style(rating_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get List of different ratings \ - * Array of option Objects that represent the possible options for this question. \ - * @return array $options \ - */ - public function get_options() { + * Get List of different ratings \ + * Array of option Objects that represent the possible options for this question. \ + * + * @return array $options \ + */ + public function get_options() + { return $this->options; } /** - * Set List of different ratings \ - * Array of option Objects that represent the possible options for this question. \ - * @param array $options \ - */ - public function set_options (array $options) { + * Set List of different ratings \ + * Array of option Objects that represent the possible options for this question. \ + * + * @param array $options \ + */ + public function set_options(array $options) + { $this->options = $options; } /** - * Get Initial Value \ - * The value of the option that will be marked as selected on first rendering. Can be used to pre populate the score with a - n automatically assigned score \ - * @return string $initial_value \ - */ - public function get_initial_value() { + * Get Initial Value \ + * The value of the option that will be marked as selected on first rendering. Can be used to pre populate the score with a + * n automatically assigned score \ + * + * @return string $initial_value \ + */ + public function get_initial_value() + { return $this->initial_value; } /** - * Set Initial Value \ - * The value of the option that will be marked as selected on first rendering. Can be used to pre populate the score with a - n automatically assigned score \ - * @param string $initial_value \ - */ - public function set_initial_value ($initial_value) { + * Set Initial Value \ + * The value of the option that will be marked as selected on first rendering. Can be used to pre populate the score with a + * n automatically assigned score \ + * + * @param string $initial_value \ + */ + public function set_initial_value($initial_value) + { $this->initial_value = $initial_value; } - - public function get_widget_type() { - return 'feedback'; + + public function get_widget_type() + { + return 'feedback'; } } diff --git a/src/Entities/QuestionTypes/rating_metadata.php b/src/Entities/QuestionTypes/rating_metadata.php index 97d6c318..3f2fd4dd 100644 --- a/src/Entities/QuestionTypes/rating_metadata.php +++ b/src/Entities/QuestionTypes/rating_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class rating_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class rating_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/rating_options_item.php b/src/Entities/QuestionTypes/rating_options_item.php index b9dae5db..a92fa7c5 100644 --- a/src/Entities/QuestionTypes/rating_options_item.php +++ b/src/Entities/QuestionTypes/rating_options_item.php @@ -5,111 +5,131 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class rating_options_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class rating_options_item extends BaseQuestionTypeAttribute +{ protected $value; protected $label; protected $label_tooltip; protected $tint; protected $description; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Value \ - * Value for this option that would be stored as the response if selected. \ - * @return string $value \ - */ - public function get_value() { + * Get Value \ + * Value for this option that would be stored as the response if selected. \ + * + * @return string $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Value for this option that would be stored as the response if selected. \ - * @param string $value \ - */ - public function set_value ($value) { + * Set Value \ + * Value for this option that would be stored as the response if selected. \ + * + * @param string $value \ + */ + public function set_value($value) + { $this->value = $value; } /** - * Get Label \ - * Number to be displayed for this option. \ - * @return string $label \ - */ - public function get_label() { + * Get Label \ + * Number to be displayed for this option. \ + * + * @return string $label \ + */ + public function get_label() + { return $this->label; } /** - * Set Label \ - * Number to be displayed for this option. \ - * @param string $label \ - */ - public function set_label ($label) { + * Set Label \ + * Number to be displayed for this option. \ + * + * @param string $label \ + */ + public function set_label($label) + { $this->label = $label; } /** - * Get Label tooltip \ - * Label to be displayed in the tooltip at the beginning of the description for this option. \ - * @return string $label_tooltip \ - */ - public function get_label_tooltip() { + * Get Label tooltip \ + * Label to be displayed in the tooltip at the beginning of the description for this option. \ + * + * @return string $label_tooltip \ + */ + public function get_label_tooltip() + { return $this->label_tooltip; } /** - * Set Label tooltip \ - * Label to be displayed in the tooltip at the beginning of the description for this option. \ - * @param string $label_tooltip \ - */ - public function set_label_tooltip ($label_tooltip) { + * Set Label tooltip \ + * Label to be displayed in the tooltip at the beginning of the description for this option. \ + * + * @param string $label_tooltip \ + */ + public function set_label_tooltip($label_tooltip) + { $this->label_tooltip = $label_tooltip; } /** - * Get Tint \ - * Color to be displayed for this value on selection, in review state and within the tooltip \ - * @return string $tint \ - */ - public function get_tint() { + * Get Tint \ + * Color to be displayed for this value on selection, in review state and within the tooltip \ + * + * @return string $tint \ + */ + public function get_tint() + { return $this->tint; } /** - * Set Tint \ - * Color to be displayed for this value on selection, in review state and within the tooltip \ - * @param string $tint \ - */ - public function set_tint ($tint) { + * Set Tint \ + * Color to be displayed for this value on selection, in review state and within the tooltip \ + * + * @param string $tint \ + */ + public function set_tint($tint) + { $this->tint = $tint; } /** - * Get Description \ - * Ranking / criteria, this will be shown within the tooltip along side \ - * @return string $description \ - */ - public function get_description() { + * Get Description \ + * Ranking / criteria, this will be shown within the tooltip along side \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description \ - * Ranking / criteria, this will be shown within the tooltip along side \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description \ + * Ranking / criteria, this will be shown within the tooltip along side \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } - + } diff --git a/src/Entities/QuestionTypes/rating_ui_style.php b/src/Entities/QuestionTypes/rating_ui_style.php index d2c80525..b957fa8c 100644 --- a/src/Entities/QuestionTypes/rating_ui_style.php +++ b/src/Entities/QuestionTypes/rating_ui_style.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class rating_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class rating_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } - + } diff --git a/src/Entities/QuestionTypes/scrollablepassage.php b/src/Entities/QuestionTypes/scrollablepassage.php index 08d47893..0a5495bd 100644 --- a/src/Entities/QuestionTypes/scrollablepassage.php +++ b/src/Entities/QuestionTypes/scrollablepassage.php @@ -5,114 +5,126 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class scrollablepassage extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class scrollablepassage extends BaseQuestionType +{ protected $data-type; protected $data-width; protected $data-height; protected $data-border; protected $data-subtract-height; - public function __construct( - ) + public function __construct() { - } + } /** - * Get data-type \ - * Use the value 'scrollablepassage' for this field. \ - * @return string $data-type \ - */ + * Get data-type \ + * Use the value 'scrollablepassage' for this field. \ + * + * @return string $data-type \ + */ public function get_data-type() { return $this->data-type; } - /** - * Set data-type \ - * Use the value 'scrollablepassage' for this field. \ - * @param string $data-type \ - */ - public function set_data-type ($data-type) { - $this->data-type = $data-type; +/** + * Set data-type \ + * Use the value 'scrollablepassage' for this field. \ + * + * @param string $data -type \ + */ +public +function set_data-type($data - type){ +$this->data - type = $data - type; } /** - * Get data-width \ - * Width of the scrollable passage container in pixels or percentage. \ - * @return string $data-width \ - */ - public function get_data-width() { - return $this->data-width; + * Get data-width \ + * Width of the scrollable passage container in pixels or percentage. \ + * + * @return string $data-width \ + */ + public function get_data-width(){ + return $this->data - width; } /** - * Set data-width \ - * Width of the scrollable passage container in pixels or percentage. \ - * @param string $data-width \ - */ - public function set_data-width ($data-width) { - $this->data-width = $data-width; + * Set data-width \ + * Width of the scrollable passage container in pixels or percentage. \ + * + * @param string $data -width \ + */ + public function set_data-width($data - width){ +$this->data - width = $data - width; } /** - * Get data-height \ - * Height of the scrollable passage container in pixels or percentage. \ - * @return string $data-height \ - */ - public function get_data-height() { - return $this->data-height; + * Get data-height \ + * Height of the scrollable passage container in pixels or percentage. \ + * + * @return string $data-height \ + */ + public function get_data-height(){ + return $this->data - height; } /** - * Set data-height \ - * Height of the scrollable passage container in pixels or percentage. \ - * @param string $data-height \ - */ - public function set_data-height ($data-height) { - $this->data-height = $data-height; + * Set data-height \ + * Height of the scrollable passage container in pixels or percentage. \ + * + * @param string $data -height \ + */ + public function set_data-height($data - height){ +$this->data - height = $data - height; } /** - * Get data-border \ - * Whether to display a wrapper around the scrollable passage container. \ - * @return boolean $data-border \ - */ - public function get_data-border() { - return $this->data-border; + * Get data-border \ + * Whether to display a wrapper around the scrollable passage container. \ + * + * @return boolean $data-border \ + */ + public function get_data-border(){ + return $this->data - border; } /** - * Set data-border \ - * Whether to display a wrapper around the scrollable passage container. \ - * @param boolean $data-border \ - */ - public function set_data-border ($data-border) { - $this->data-border = $data-border; + * Set data-border \ + * Whether to display a wrapper around the scrollable passage container. \ + * + * @param boolean $data -border \ + */ + public function set_data-border($data - border){ +$this->data - border = $data - border; } /** - * Get data-subtract-height \ - * A value which reduces the height of the passage container. \ - * @return string $data-subtract-height \ - */ - public function get_data-subtract-height() { - return $this->data-subtract-height; + * Get data-subtract-height \ + * A value which reduces the height of the passage container. \ + * + * @return string $data-subtract-height \ + */ + public function get_data-subtract - height(){ + return $this->data - subtract - height; } /** - * Set data-subtract-height \ - * A value which reduces the height of the passage container. \ - * @param string $data-subtract-height \ - */ - public function set_data-subtract-height ($data-subtract-height) { - $this->data-subtract-height = $data-subtract-height; + * Set data-subtract-height \ + * A value which reduces the height of the passage container. \ + * + * @param string $data -subtract-height \ + */ + public function set_data-subtract - height($data - subtract - height){ +$this->data - subtract - height = $data - subtract - height; } - public function get_widget_type() { + public function get_widget_type() +{ return 'feature'; - } +} } diff --git a/src/Entities/QuestionTypes/sharedpassage.php b/src/Entities/QuestionTypes/sharedpassage.php index 2770afc9..d6f6932a 100644 --- a/src/Entities/QuestionTypes/sharedpassage.php +++ b/src/Entities/QuestionTypes/sharedpassage.php @@ -5,118 +5,139 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class sharedpassage extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class sharedpassage extends BaseQuestionType +{ protected $type; protected $metadata; protected $heading; protected $content; protected $is_math; - + public function __construct( - $type, - $content - ) - { - $this->type = $type; - $this->content = $content; - } + $type, + $content + ) { + $this->type = $type; + $this->content = $content; + } /** - * Get Feature Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Feature Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Feature Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Feature Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Metadata \ - * Additional data for the Passage \ - * @return sharedpassage_metadata $metadata \ - */ - public function get_metadata() { + * Get Metadata \ + * Additional data for the Passage \ + * + * @return sharedpassage_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set Metadata \ - * Additional data for the Passage \ - * @param sharedpassage_metadata $metadata \ - */ - public function set_metadata (sharedpassage_metadata $metadata) { + * Set Metadata \ + * Additional data for the Passage \ + * + * @param sharedpassage_metadata $metadata \ + */ + public function set_metadata(sharedpassage_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Heading \ - * Heading of the Passage \ - * @return string $heading \ - */ - public function get_heading() { + * Get Heading \ + * Heading of the Passage \ + * + * @return string $heading \ + */ + public function get_heading() + { return $this->heading; } /** - * Set Heading \ - * Heading of the Passage \ - * @param string $heading \ - */ - public function set_heading ($heading) { + * Set Heading \ + * Heading of the Passage \ + * + * @param string $heading \ + */ + public function set_heading($heading) + { $this->heading = $heading; } /** - * Get Contents \ - * The content to display in the passage. This field supports HTML formatted data, embedded images, LaTeX and MathML. \ - * @return string $content \ - */ - public function get_content() { + * Get Contents \ + * The content to display in the passage. This field supports HTML formatted data, embedded images, LaTeX and MathML. \ + * + * @return string $content \ + */ + public function get_content() + { return $this->content; } /** - * Set Contents \ - * The content to display in the passage. This field supports HTML formatted data, embedded images, LaTeX and MathML. \ - * @param string $content \ - */ - public function set_content ($content) { + * Set Contents \ + * The content to display in the passage. This field supports HTML formatted data, embedded images, LaTeX and MathML. \ + * + * @param string $content \ + */ + public function set_content($content) + { $this->content = $content; } /** - * Get Contains Mathematics \ - * Set to true to have LaTeX or MathML to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Contains Mathematics \ + * Set to true to have LaTeX or MathML to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Contains Mathematics \ - * Set to true to have LaTeX or MathML to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Contains Mathematics \ + * Set to true to have LaTeX or MathML to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } - - public function get_widget_type() { - return 'feature'; + + public function get_widget_type() + { + return 'feature'; } } diff --git a/src/Entities/QuestionTypes/sharedpassage_metadata.php b/src/Entities/QuestionTypes/sharedpassage_metadata.php index 7831f3bf..759de8ae 100644 --- a/src/Entities/QuestionTypes/sharedpassage_metadata.php +++ b/src/Entities/QuestionTypes/sharedpassage_metadata.php @@ -5,58 +5,66 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class sharedpassage_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class sharedpassage_metadata extends BaseQuestionTypeAttribute +{ protected $lexile; protected $flesch_kincaid; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Lexile \ - * The Lexile framework for reading is an educational tool that uses a measure called a Lexile to match readers with books, - articles and other leveled reading resources. \ - * @return string $lexile \ - */ - public function get_lexile() { + * Get Lexile \ + * The Lexile framework for reading is an educational tool that uses a measure called a Lexile to match readers with books, + * articles and other leveled reading resources. \ + * + * @return string $lexile \ + */ + public function get_lexile() + { return $this->lexile; } /** - * Set Lexile \ - * The Lexile framework for reading is an educational tool that uses a measure called a Lexile to match readers with books, - articles and other leveled reading resources. \ - * @param string $lexile \ - */ - public function set_lexile ($lexile) { + * Set Lexile \ + * The Lexile framework for reading is an educational tool that uses a measure called a Lexile to match readers with books, + * articles and other leveled reading resources. \ + * + * @param string $lexile \ + */ + public function set_lexile($lexile) + { $this->lexile = $lexile; } /** - * Get Flesch-Kincaid \ - * A grade level, making it easier for teachers, parents, librarians, and others to judge the readability level of various - books and texts. \ - * @return string $flesch_kincaid \ - */ - public function get_flesch_kincaid() { + * Get Flesch-Kincaid \ + * A grade level, making it easier for teachers, parents, librarians, and others to judge the readability level of various + * books and texts. \ + * + * @return string $flesch_kincaid \ + */ + public function get_flesch_kincaid() + { return $this->flesch_kincaid; } /** - * Set Flesch-Kincaid \ - * A grade level, making it easier for teachers, parents, librarians, and others to judge the readability level of various - books and texts. \ - * @param string $flesch_kincaid \ - */ - public function set_flesch_kincaid ($flesch_kincaid) { + * Set Flesch-Kincaid \ + * A grade level, making it easier for teachers, parents, librarians, and others to judge the readability level of various + * books and texts. \ + * + * @param string $flesch_kincaid \ + */ + public function set_flesch_kincaid($flesch_kincaid) + { $this->flesch_kincaid = $flesch_kincaid; } - + } diff --git a/src/Entities/QuestionTypes/shorttext.php b/src/Entities/QuestionTypes/shorttext.php index 1309a5a9..190ed21a 100644 --- a/src/Entities/QuestionTypes/shorttext.php +++ b/src/Entities/QuestionTypes/shorttext.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class shorttext extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class shorttext extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -25,335 +26,399 @@ class shorttext extends BaseQuestionType { protected $placeholder; protected $case_sensitive; protected $response_container; - + public function __construct( - $type - ) - { - $this->type = $type; - } + $type + ) { + $this->type = $type; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return shorttext_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return shorttext_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param shorttext_metadata $metadata \ - */ - public function set_metadata (shorttext_metadata $metadata) { + * Set metadata \ + * \ + * + * @param shorttext_metadata $metadata \ + */ + public function set_metadata(shorttext_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return shorttext_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return shorttext_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param shorttext_ui_style $ui_style \ - */ - public function set_ui_style (shorttext_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param shorttext_ui_style $ui_style \ + */ + public function set_ui_style(shorttext_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return shorttext_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return shorttext_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param shorttext_validation $validation \ - */ - public function set_validation (shorttext_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param shorttext_validation $validation \ + */ + public function set_validation(shorttext_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Maximum Length (characters) \ - * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t - ype. \ - * @return number $max_length \ - */ - public function get_max_length() { + * Get Maximum Length (characters) \ + * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t + * ype. \ + * + * @return number $max_length \ + */ + public function get_max_length() + { return $this->max_length; } /** - * Set Maximum Length (characters) \ - * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t - ype. \ - * @param number $max_length \ - */ - public function set_max_length ($max_length) { + * Set Maximum Length (characters) \ + * Maximum number of characters that can be entered in the field. Maximum value is 250. For longer questions use longtext t + * ype. \ + * + * @param number $max_length \ + */ + public function set_max_length($max_length) + { $this->max_length = $max_length; } /** - * Get Character Map \ - * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
-If an Array, the character map button - will show and display only the array of characters.
IMPORTANT The HTML doc - ument will require a charset of utf-8: <meta charset="utf-8"> \ - * @return $character_map \ - */ - public function get_character_map() { + * Get Character Map \ + * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
+ * If an Array, the character map button + * will show and display only the array of characters.
IMPORTANT The HTML doc + * ument will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @return $character_map \ + */ + public function get_character_map() + { return $this->character_map; } /** - * Set Character Map \ - * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
-If an Array, the character map button - will show and display only the array of characters.
IMPORTANT The HTML doc - ument will require a charset of utf-8: <meta charset="utf-8"> \ - * @param $character_map \ - */ - public function set_character_map ($character_map) { + * Set Character Map \ + * If true, the character map button will display within the short text field. The character map will display the default set of special characters.
+ * If an Array, the character map button + * will show and display only the array of characters.
IMPORTANT The HTML doc + * ument will require a charset of utf-8: <meta charset="utf-8"> \ + * + * @param $character_map \ + */ + public function set_character_map($character_map) + { $this->character_map = $character_map; } /** - * Get Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @return boolean $spellcheck \ - */ - public function get_spellcheck() { + * Get Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @return boolean $spellcheck \ + */ + public function get_spellcheck() + { return $this->spellcheck; } /** - * Set Browser Spellcheck \ - * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl - e. \ - * @param boolean $spellcheck \ - */ - public function set_spellcheck ($spellcheck) { + * Set Browser Spellcheck \ + * Control the input/textarea attribute spellcheck. See "W3C article". Note this is a browser feature and may not always be availabl + * e. \ + * + * @param boolean $spellcheck \ + */ + public function set_spellcheck($spellcheck) + { $this->spellcheck = $spellcheck; } /** - * Get Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @return string $placeholder \ - */ - public function get_placeholder() { + * Get Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @return string $placeholder \ + */ + public function get_placeholder() + { return $this->placeholder; } /** - * Set Placeholder \ - * Text to display as a hint to the user of what to enter \ - * @param string $placeholder \ - */ - public function set_placeholder ($placeholder) { + * Set Placeholder \ + * Text to display as a hint to the user of what to enter \ + * + * @param string $placeholder \ + */ + public function set_placeholder($placeholder) + { $this->placeholder = $placeholder; } /** - * Get Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @return boolean $case_sensitive \ - */ - public function get_case_sensitive() { + * Get Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @return boolean $case_sensitive \ + */ + public function get_case_sensitive() + { return $this->case_sensitive; } /** - * Set Case Sensitive? \ - * If true, responses will be compared against valid_responses considering the letters' case. \ - * @param boolean $case_sensitive \ - */ - public function set_case_sensitive ($case_sensitive) { + * Set Case Sensitive? \ + * If true, responses will be compared against valid_responses considering the letters' case. \ + * + * @param boolean $case_sensitive \ + */ + public function set_case_sensitive($case_sensitive) + { $this->case_sensitive = $case_sensitive; } /** - * Get Response container \ - * Array containing objects defining each individual response container style. \ - * @return shorttext_response_container $response_container \ - */ - public function get_response_container() { + * Get Response container \ + * Array containing objects defining each individual response container style. \ + * + * @return shorttext_response_container $response_container \ + */ + public function get_response_container() + { return $this->response_container; } /** - * Set Response container \ - * Array containing objects defining each individual response container style. \ - * @param shorttext_response_container $response_container \ - */ - public function set_response_container (shorttext_response_container $response_container) { + * Set Response container \ + * Array containing objects defining each individual response container style. \ + * + * @param shorttext_response_container $response_container \ + */ + public function set_response_container(shorttext_response_container $response_container) + { $this->response_container = $response_container; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/shorttext_metadata.php b/src/Entities/QuestionTypes/shorttext_metadata.php index e08e8c0a..7db99835 100644 --- a/src/Entities/QuestionTypes/shorttext_metadata.php +++ b/src/Entities/QuestionTypes/shorttext_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class shorttext_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class shorttext_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/shorttext_response_container.php b/src/Entities/QuestionTypes/shorttext_response_container.php index 9668ad6a..68507639 100644 --- a/src/Entities/QuestionTypes/shorttext_response_container.php +++ b/src/Entities/QuestionTypes/shorttext_response_container.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class shorttext_response_container extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class shorttext_response_container extends BaseQuestionTypeAttribute +{ protected $input_type; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Input type \ - * Type of input \ - * @return string $input_type \ - */ - public function get_input_type() { + * Get Input type \ + * Type of input \ + * + * @return string $input_type \ + */ + public function get_input_type() + { return $this->input_type; } /** - * Set Input type \ - * Type of input \ - * @param string $input_type \ - */ - public function set_input_type ($input_type) { + * Set Input type \ + * Type of input \ + * + * @param string $input_type \ + */ + public function set_input_type($input_type) + { $this->input_type = $input_type; } - + } diff --git a/src/Entities/QuestionTypes/shorttext_ui_style.php b/src/Entities/QuestionTypes/shorttext_ui_style.php index 5db9c799..68a9a51d 100644 --- a/src/Entities/QuestionTypes/shorttext_ui_style.php +++ b/src/Entities/QuestionTypes/shorttext_ui_style.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class shorttext_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class shorttext_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } - + } diff --git a/src/Entities/QuestionTypes/shorttext_validation.php b/src/Entities/QuestionTypes/shorttext_validation.php index d6be422e..93e000b5 100644 --- a/src/Entities/QuestionTypes/shorttext_validation.php +++ b/src/Entities/QuestionTypes/shorttext_validation.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class shorttext_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class shorttext_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return shorttext_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return shorttext_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param shorttext_validation_valid_response $valid_response \ - */ - public function set_valid_response (shorttext_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param shorttext_validation_valid_response $valid_response \ + */ + public function set_valid_response(shorttext_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/shorttext_validation_alt_responses_item.php b/src/Entities/QuestionTypes/shorttext_validation_alt_responses_item.php index 47b01aec..df6eb7f6 100644 --- a/src/Entities/QuestionTypes/shorttext_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/shorttext_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class shorttext_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class shorttext_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * \ - * @return string $value \ - */ - public function get_value() { + * Get Value \ + * \ + * + * @return string $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * \ - * @param string $value \ - */ - public function set_value ($value) { + * Set Value \ + * \ + * + * @param string $value \ + */ + public function set_value($value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/shorttext_validation_valid_response.php b/src/Entities/QuestionTypes/shorttext_validation_valid_response.php index 54955e5c..4edacd52 100644 --- a/src/Entities/QuestionTypes/shorttext_validation_valid_response.php +++ b/src/Entities/QuestionTypes/shorttext_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class shorttext_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class shorttext_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * \ - * @return string $value \ - */ - public function get_value() { + * Get Value \ + * \ + * + * @return string $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * \ - * @param string $value \ - */ - public function set_value ($value) { + * Set Value \ + * \ + * + * @param string $value \ + */ + public function set_value($value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/simplechart.php b/src/Entities/QuestionTypes/simplechart.php index bf510f80..bb8c4120 100644 --- a/src/Entities/QuestionTypes/simplechart.php +++ b/src/Entities/QuestionTypes/simplechart.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simplechart extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simplechart extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -31,427 +32,515 @@ class simplechart extends BaseQuestionType { protected $order_point; protected $show_gridlines; protected $new_point_name; - + public function __construct( - $type, - simplechart_chart_data $chart_data - ) - { - $this->type = $type; - $this->chart_data = $chart_data; - } + $type, + simplechart_chart_data $chart_data + ) { + $this->type = $type; + $this->chart_data = $chart_data; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return simplechart_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return simplechart_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param simplechart_metadata $metadata \ - */ - public function set_metadata (simplechart_metadata $metadata) { + * Set metadata \ + * \ + * + * @param simplechart_metadata $metadata \ + */ + public function set_metadata(simplechart_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return simplechart_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return simplechart_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param simplechart_ui_style $ui_style \ - */ - public function set_ui_style (simplechart_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param simplechart_ui_style $ui_style \ + */ + public function set_ui_style(simplechart_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return simplechart_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return simplechart_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param simplechart_validation $validation \ - */ - public function set_validation (simplechart_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param simplechart_validation $validation \ + */ + public function set_validation(simplechart_validation $validation) + { $this->validation = $validation; } /** - * Get Max Y Axis Value \ - * Defines the max value of the Y axis. \ - * @return number $max_y_value \ - */ - public function get_max_y_value() { + * Get Max Y Axis Value \ + * Defines the max value of the Y axis. \ + * + * @return number $max_y_value \ + */ + public function get_max_y_value() + { return $this->max_y_value; } /** - * Set Max Y Axis Value \ - * Defines the max value of the Y axis. \ - * @param number $max_y_value \ - */ - public function set_max_y_value ($max_y_value) { + * Set Max Y Axis Value \ + * Defines the max value of the Y axis. \ + * + * @param number $max_y_value \ + */ + public function set_max_y_value($max_y_value) + { $this->max_y_value = $max_y_value; } /** - * Get Chart Data \ - * \ - * @return simplechart_chart_data $chart_data \ - */ - public function get_chart_data() { + * Get Chart Data \ + * \ + * + * @return simplechart_chart_data $chart_data \ + */ + public function get_chart_data() + { return $this->chart_data; } /** - * Set Chart Data \ - * \ - * @param simplechart_chart_data $chart_data \ - */ - public function set_chart_data (simplechart_chart_data $chart_data) { + * Set Chart Data \ + * \ + * + * @param simplechart_chart_data $chart_data \ + */ + public function set_chart_data(simplechart_chart_data $chart_data) + { $this->chart_data = $chart_data; } /** - * Get Add Point \ - * Enabled the ability to add points to the chart. \ - * @return boolean $add_point \ - */ - public function get_add_point() { + * Get Add Point \ + * Enabled the ability to add points to the chart. \ + * + * @return boolean $add_point \ + */ + public function get_add_point() + { return $this->add_point; } /** - * Set Add Point \ - * Enabled the ability to add points to the chart. \ - * @param boolean $add_point \ - */ - public function set_add_point ($add_point) { + * Set Add Point \ + * Enabled the ability to add points to the chart. \ + * + * @param boolean $add_point \ + */ + public function set_add_point($add_point) + { $this->add_point = $add_point; } /** - * Get Resize Point \ - * Enable the ability to resize points in the chart. \ - * @return boolean $resize_point \ - */ - public function get_resize_point() { + * Get Resize Point \ + * Enable the ability to resize points in the chart. \ + * + * @return boolean $resize_point \ + */ + public function get_resize_point() + { return $this->resize_point; } /** - * Set Resize Point \ - * Enable the ability to resize points in the chart. \ - * @param boolean $resize_point \ - */ - public function set_resize_point ($resize_point) { + * Set Resize Point \ + * Enable the ability to resize points in the chart. \ + * + * @param boolean $resize_point \ + */ + public function set_resize_point($resize_point) + { $this->resize_point = $resize_point; } /** - * Get Edit point label \ - * Enables the ability to edit point labels \ - * @return boolean $edit_label \ - */ - public function get_edit_label() { + * Get Edit point label \ + * Enables the ability to edit point labels \ + * + * @return boolean $edit_label \ + */ + public function get_edit_label() + { return $this->edit_label; } /** - * Set Edit point label \ - * Enables the ability to edit point labels \ - * @param boolean $edit_label \ - */ - public function set_edit_label ($edit_label) { + * Set Edit point label \ + * Enables the ability to edit point labels \ + * + * @param boolean $edit_label \ + */ + public function set_edit_label($edit_label) + { $this->edit_label = $edit_label; } /** - * Get Delete Point \ - * Enables the ability to delete points \ - * @return boolean $delete_point \ - */ - public function get_delete_point() { + * Get Delete Point \ + * Enables the ability to delete points \ + * + * @return boolean $delete_point \ + */ + public function get_delete_point() + { return $this->delete_point; } /** - * Set Delete Point \ - * Enables the ability to delete points \ - * @param boolean $delete_point \ - */ - public function set_delete_point ($delete_point) { + * Set Delete Point \ + * Enables the ability to delete points \ + * + * @param boolean $delete_point \ + */ + public function set_delete_point($delete_point) + { $this->delete_point = $delete_point; } /** - * Get X axis label \ - * Set the x axis label name \ - * @return string $x_axis_label \ - */ - public function get_x_axis_label() { + * Get X axis label \ + * Set the x axis label name \ + * + * @return string $x_axis_label \ + */ + public function get_x_axis_label() + { return $this->x_axis_label; } /** - * Set X axis label \ - * Set the x axis label name \ - * @param string $x_axis_label \ - */ - public function set_x_axis_label ($x_axis_label) { + * Set X axis label \ + * Set the x axis label name \ + * + * @param string $x_axis_label \ + */ + public function set_x_axis_label($x_axis_label) + { $this->x_axis_label = $x_axis_label; } /** - * Get Y axis label \ - * Set the Y axis label name \ - * @return string $y_axis_label \ - */ - public function get_y_axis_label() { + * Get Y axis label \ + * Set the Y axis label name \ + * + * @return string $y_axis_label \ + */ + public function get_y_axis_label() + { return $this->y_axis_label; } /** - * Set Y axis label \ - * Set the Y axis label name \ - * @param string $y_axis_label \ - */ - public function set_y_axis_label ($y_axis_label) { + * Set Y axis label \ + * Set the Y axis label name \ + * + * @param string $y_axis_label \ + */ + public function set_y_axis_label($y_axis_label) + { $this->y_axis_label = $y_axis_label; } /** - * Get Snap To Grid \ - * Specify snap to grid threshold. Snap to grid is disabled if set to 0 or if the tick format is float. \ - * @return number $snap_to_grid \ - */ - public function get_snap_to_grid() { + * Get Snap To Grid \ + * Specify snap to grid threshold. Snap to grid is disabled if set to 0 or if the tick format is float. \ + * + * @return number $snap_to_grid \ + */ + public function get_snap_to_grid() + { return $this->snap_to_grid; } /** - * Set Snap To Grid \ - * Specify snap to grid threshold. Snap to grid is disabled if set to 0 or if the tick format is float. \ - * @param number $snap_to_grid \ - */ - public function set_snap_to_grid ($snap_to_grid) { + * Set Snap To Grid \ + * Specify snap to grid threshold. Snap to grid is disabled if set to 0 or if the tick format is float. \ + * + * @param number $snap_to_grid \ + */ + public function set_snap_to_grid($snap_to_grid) + { $this->snap_to_grid = $snap_to_grid; } /** - * Get Multicolor Bars \ - * Enables the ability to specify if the bars have different colors. Currently only supported by histogram. Order Point has - to be disabled. \ - * @return boolean $multicolour \ - */ - public function get_multicolour() { + * Get Multicolor Bars \ + * Enables the ability to specify if the bars have different colors. Currently only supported by histogram. Order Point has + * to be disabled. \ + * + * @return boolean $multicolour \ + */ + public function get_multicolour() + { return $this->multicolour; } /** - * Set Multicolor Bars \ - * Enables the ability to specify if the bars have different colors. Currently only supported by histogram. Order Point has - to be disabled. \ - * @param boolean $multicolour \ - */ - public function set_multicolour ($multicolour) { + * Set Multicolor Bars \ + * Enables the ability to specify if the bars have different colors. Currently only supported by histogram. Order Point has + * to be disabled. \ + * + * @param boolean $multicolour \ + */ + public function set_multicolour($multicolour) + { $this->multicolour = $multicolour; } /** - * Get Order Point \ - * Enables ability to order points \ - * @return boolean $order_point \ - */ - public function get_order_point() { + * Get Order Point \ + * Enables ability to order points \ + * + * @return boolean $order_point \ + */ + public function get_order_point() + { return $this->order_point; } /** - * Set Order Point \ - * Enables ability to order points \ - * @param boolean $order_point \ - */ - public function set_order_point ($order_point) { + * Set Order Point \ + * Enables ability to order points \ + * + * @param boolean $order_point \ + */ + public function set_order_point($order_point) + { $this->order_point = $order_point; } /** - * Get Show Axes Gridlines \ - * Specify whether axes gridlines should be displayed for the chart. Currently only supported by histogram. \ - * @return string $show_gridlines ie. both, x_only, y_only, none \ - */ - public function get_show_gridlines() { + * Get Show Axes Gridlines \ + * Specify whether axes gridlines should be displayed for the chart. Currently only supported by histogram. \ + * + * @return string $show_gridlines ie. both, x_only, y_only, none \ + */ + public function get_show_gridlines() + { return $this->show_gridlines; } /** - * Set Show Axes Gridlines \ - * Specify whether axes gridlines should be displayed for the chart. Currently only supported by histogram. \ - * @param string $show_gridlines ie. both, x_only, y_only, none \ - */ - public function set_show_gridlines ($show_gridlines) { + * Set Show Axes Gridlines \ + * Specify whether axes gridlines should be displayed for the chart. Currently only supported by histogram. \ + * + * @param string $show_gridlines ie. both, x_only, y_only, none \ + */ + public function set_show_gridlines($show_gridlines) + { $this->show_gridlines = $show_gridlines; } /** - * Get New Point Name \ - * Enables the ability to specify new points default name. \ - * @return string $new_point_name \ - */ - public function get_new_point_name() { + * Get New Point Name \ + * Enables the ability to specify new points default name. \ + * + * @return string $new_point_name \ + */ + public function get_new_point_name() + { return $this->new_point_name; } /** - * Set New Point Name \ - * Enables the ability to specify new points default name. \ - * @param string $new_point_name \ - */ - public function set_new_point_name ($new_point_name) { + * Set New Point Name \ + * Enables the ability to specify new points default name. \ + * + * @param string $new_point_name \ + */ + public function set_new_point_name($new_point_name) + { $this->new_point_name = $new_point_name; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/simplechart_chart_data.php b/src/Entities/QuestionTypes/simplechart_chart_data.php index 51411c5f..ac7dea70 100644 --- a/src/Entities/QuestionTypes/simplechart_chart_data.php +++ b/src/Entities/QuestionTypes/simplechart_chart_data.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simplechart_chart_data extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simplechart_chart_data extends BaseQuestionTypeAttribute +{ protected $name; protected $data; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Name \ - * Chart title \ - * @return string $name \ - */ - public function get_name() { + * Get Name \ + * Chart title \ + * + * @return string $name \ + */ + public function get_name() + { return $this->name; } /** - * Set Name \ - * Chart title \ - * @param string $name \ - */ - public function set_name ($name) { + * Set Name \ + * Chart title \ + * + * @param string $name \ + */ + public function set_name($name) + { $this->name = $name; } /** - * Get Data \ - * Chart data \ - * @return array $data \ - */ - public function get_data() { + * Get Data \ + * Chart data \ + * + * @return array $data \ + */ + public function get_data() + { return $this->data; } /** - * Set Data \ - * Chart data \ - * @param array $data \ - */ - public function set_data (array $data) { + * Set Data \ + * Chart data \ + * + * @param array $data \ + */ + public function set_data(array $data) + { $this->data = $data; } - + } diff --git a/src/Entities/QuestionTypes/simplechart_chart_data_data_item.php b/src/Entities/QuestionTypes/simplechart_chart_data_data_item.php index bd2583f3..df1687d5 100644 --- a/src/Entities/QuestionTypes/simplechart_chart_data_data_item.php +++ b/src/Entities/QuestionTypes/simplechart_chart_data_data_item.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simplechart_chart_data_data_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simplechart_chart_data_data_item extends BaseQuestionTypeAttribute +{ protected $x; protected $y; protected $interactive; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Label \ - * Point label \ - * @return string $x \ - */ - public function get_x() { + * Get Label \ + * Point label \ + * + * @return string $x \ + */ + public function get_x() + { return $this->x; } /** - * Set Label \ - * Point label \ - * @param string $x \ - */ - public function set_x ($x) { + * Set Label \ + * Point label \ + * + * @param string $x \ + */ + public function set_x($x) + { $this->x = $x; } /** - * Get Value \ - * Point value \ - * @return number $y \ - */ - public function get_y() { + * Get Value \ + * Point value \ + * + * @return number $y \ + */ + public function get_y() + { return $this->y; } /** - * Set Value \ - * Point value \ - * @param number $y \ - */ - public function set_y ($y) { + * Set Value \ + * Point value \ + * + * @param number $y \ + */ + public function set_y($y) + { $this->y = $y; } /** - * Get Interactive \ - * Interactive Point \ - * @return boolean $interactive \ - */ - public function get_interactive() { + * Get Interactive \ + * Interactive Point \ + * + * @return boolean $interactive \ + */ + public function get_interactive() + { return $this->interactive; } /** - * Set Interactive \ - * Interactive Point \ - * @param boolean $interactive \ - */ - public function set_interactive ($interactive) { + * Set Interactive \ + * Interactive Point \ + * + * @param boolean $interactive \ + */ + public function set_interactive($interactive) + { $this->interactive = $interactive; } - + } diff --git a/src/Entities/QuestionTypes/simplechart_metadata.php b/src/Entities/QuestionTypes/simplechart_metadata.php index eb5ae6a7..032a93b7 100644 --- a/src/Entities/QuestionTypes/simplechart_metadata.php +++ b/src/Entities/QuestionTypes/simplechart_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simplechart_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simplechart_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/simplechart_ui_style.php b/src/Entities/QuestionTypes/simplechart_ui_style.php index 246444f7..d4afcc48 100644 --- a/src/Entities/QuestionTypes/simplechart_ui_style.php +++ b/src/Entities/QuestionTypes/simplechart_ui_style.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simplechart_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simplechart_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; protected $chart_type; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Chart Type \ - * \ - * @return string $chart_type \ - */ - public function get_chart_type() { + * Get Chart Type \ + * \ + * + * @return string $chart_type \ + */ + public function get_chart_type() + { return $this->chart_type; } /** - * Set Chart Type \ - * \ - * @param string $chart_type \ - */ - public function set_chart_type ($chart_type) { + * Set Chart Type \ + * \ + * + * @param string $chart_type \ + */ + public function set_chart_type($chart_type) + { $this->chart_type = $chart_type; } - + } diff --git a/src/Entities/QuestionTypes/simplechart_validation.php b/src/Entities/QuestionTypes/simplechart_validation.php index a0696d42..312d0a7e 100644 --- a/src/Entities/QuestionTypes/simplechart_validation.php +++ b/src/Entities/QuestionTypes/simplechart_validation.php @@ -5,134 +5,158 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simplechart_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simplechart_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $threshold; protected $ignore_order; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @return string $scoring_type ie. exactMatch \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @return string $scoring_type ie. exactMatch \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly \ - * @param string $scoring_type ie. exactMatch \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly \ + * + * @param string $scoring_type ie. exactMatch \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return simplechart_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return simplechart_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param simplechart_validation_valid_response $valid_response \ - */ - public function set_valid_response (simplechart_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param simplechart_validation_valid_response $valid_response \ + */ + public function set_valid_response(simplechart_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Threshold \ - * Positive value indicating the correct value threshold. \ - * @return number $threshold \ - */ - public function get_threshold() { + * Get Threshold \ + * Positive value indicating the correct value threshold. \ + * + * @return number $threshold \ + */ + public function get_threshold() + { return $this->threshold; } /** - * Set Threshold \ - * Positive value indicating the correct value threshold. \ - * @param number $threshold \ - */ - public function set_threshold ($threshold) { + * Set Threshold \ + * Positive value indicating the correct value threshold. \ + * + * @param number $threshold \ + */ + public function set_threshold($threshold) + { $this->threshold = $threshold; } /** - * Get Ignore Order \ - * Boolean value indicating whether the points order should be ignored or not. \ - * @return boolean $ignore_order \ - */ - public function get_ignore_order() { + * Get Ignore Order \ + * Boolean value indicating whether the points order should be ignored or not. \ + * + * @return boolean $ignore_order \ + */ + public function get_ignore_order() + { return $this->ignore_order; } /** - * Set Ignore Order \ - * Boolean value indicating whether the points order should be ignored or not. \ - * @param boolean $ignore_order \ - */ - public function set_ignore_order ($ignore_order) { + * Set Ignore Order \ + * Boolean value indicating whether the points order should be ignored or not. \ + * + * @param boolean $ignore_order \ + */ + public function set_ignore_order($ignore_order) + { $this->ignore_order = $ignore_order; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/simplechart_validation_valid_response.php b/src/Entities/QuestionTypes/simplechart_validation_valid_response.php index bc255f81..3503188b 100644 --- a/src/Entities/QuestionTypes/simplechart_validation_valid_response.php +++ b/src/Entities/QuestionTypes/simplechart_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simplechart_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simplechart_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/simplechart_validation_valid_response_value_item.php b/src/Entities/QuestionTypes/simplechart_validation_valid_response_value_item.php index d1d8253d..5d1dd338 100644 --- a/src/Entities/QuestionTypes/simplechart_validation_valid_response_value_item.php +++ b/src/Entities/QuestionTypes/simplechart_validation_valid_response_value_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simplechart_validation_valid_response_value_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simplechart_validation_valid_response_value_item extends BaseQuestionTypeAttribute +{ protected $x; protected $y; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get X \ - * \ - * @return string $x \ - */ - public function get_x() { + * Get X \ + * \ + * + * @return string $x \ + */ + public function get_x() + { return $this->x; } /** - * Set X \ - * \ - * @param string $x \ - */ - public function set_x ($x) { + * Set X \ + * \ + * + * @param string $x \ + */ + public function set_x($x) + { $this->x = $x; } /** - * Get Y \ - * \ - * @return number $y \ - */ - public function get_y() { + * Get Y \ + * \ + * + * @return number $y \ + */ + public function get_y() + { return $this->y; } /** - * Set Y \ - * \ - * @param number $y \ - */ - public function set_y ($y) { + * Set Y \ + * \ + * + * @param number $y \ + */ + public function set_y($y) + { $this->y = $y; } - + } diff --git a/src/Entities/QuestionTypes/simpleshading.php b/src/Entities/QuestionTypes/simpleshading.php index c284577a..75f9d4dc 100644 --- a/src/Entities/QuestionTypes/simpleshading.php +++ b/src/Entities/QuestionTypes/simpleshading.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simpleshading extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simpleshading extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -23,281 +24,337 @@ class simpleshading extends BaseQuestionType { protected $hover; protected $canvas; protected $background_image; - + public function __construct( - $type, - simpleshading_canvas $canvas - ) - { - $this->type = $type; - $this->canvas = $canvas; - } + $type, + simpleshading_canvas $canvas + ) { + $this->type = $type; + $this->canvas = $canvas; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return simpleshading_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return simpleshading_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param simpleshading_metadata $metadata \ - */ - public function set_metadata (simpleshading_metadata $metadata) { + * Set metadata \ + * \ + * + * @param simpleshading_metadata $metadata \ + */ + public function set_metadata(simpleshading_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return simpleshading_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return simpleshading_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param simpleshading_ui_style $ui_style \ - */ - public function set_ui_style (simpleshading_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param simpleshading_ui_style $ui_style \ + */ + public function set_ui_style(simpleshading_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return simpleshading_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return simpleshading_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param simpleshading_validation $validation \ - */ - public function set_validation (simpleshading_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param simpleshading_validation $validation \ + */ + public function set_validation(simpleshading_validation $validation) + { $this->validation = $validation; } /** - * Get Max Selection \ - * How many elements can user select? If set to 0, user can select unlimited elements. \ - * @return number $max_selection \ - */ - public function get_max_selection() { + * Get Max Selection \ + * How many elements can user select? If set to 0, user can select unlimited elements. \ + * + * @return number $max_selection \ + */ + public function get_max_selection() + { return $this->max_selection; } /** - * Set Max Selection \ - * How many elements can user select? If set to 0, user can select unlimited elements. \ - * @param number $max_selection \ - */ - public function set_max_selection ($max_selection) { + * Set Max Selection \ + * How many elements can user select? If set to 0, user can select unlimited elements. \ + * + * @param number $max_selection \ + */ + public function set_max_selection($max_selection) + { $this->max_selection = $max_selection; } /** - * Get Border Type \ - * Defines how border displays. \ - * @return string $border ie. outer, full, none \ - */ - public function get_border() { + * Get Border Type \ + * Defines how border displays. \ + * + * @return string $border ie. outer, full, none \ + */ + public function get_border() + { return $this->border; } /** - * Set Border Type \ - * Defines how border displays. \ - * @param string $border ie. outer, full, none \ - */ - public function set_border ($border) { + * Set Border Type \ + * Defines how border displays. \ + * + * @param string $border ie. outer, full, none \ + */ + public function set_border($border) + { $this->border = $border; } /** - * Get Hover State \ - * Defines whether to have hover state effect. \ - * @return boolean $hover \ - */ - public function get_hover() { + * Get Hover State \ + * Defines whether to have hover state effect. \ + * + * @return boolean $hover \ + */ + public function get_hover() + { return $this->hover; } /** - * Set Hover State \ - * Defines whether to have hover state effect. \ - * @param boolean $hover \ - */ - public function set_hover ($hover) { + * Set Hover State \ + * Defines whether to have hover state effect. \ + * + * @param boolean $hover \ + */ + public function set_hover($hover) + { $this->hover = $hover; } /** - * Get Canvas Options \ - * \ - * @return simpleshading_canvas $canvas \ - */ - public function get_canvas() { + * Get Canvas Options \ + * \ + * + * @return simpleshading_canvas $canvas \ + */ + public function get_canvas() + { return $this->canvas; } /** - * Set Canvas Options \ - * \ - * @param simpleshading_canvas $canvas \ - */ - public function set_canvas (simpleshading_canvas $canvas) { + * Set Canvas Options \ + * \ + * + * @param simpleshading_canvas $canvas \ + */ + public function set_canvas(simpleshading_canvas $canvas) + { $this->canvas = $canvas; } /** - * Get Background image \ - * \ - * @return simpleshading_background_image $background_image \ - */ - public function get_background_image() { + * Get Background image \ + * \ + * + * @return simpleshading_background_image $background_image \ + */ + public function get_background_image() + { return $this->background_image; } /** - * Set Background image \ - * \ - * @param simpleshading_background_image $background_image \ - */ - public function set_background_image (simpleshading_background_image $background_image) { + * Set Background image \ + * \ + * + * @param simpleshading_background_image $background_image \ + */ + public function set_background_image(simpleshading_background_image $background_image) + { $this->background_image = $background_image; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/simpleshading_background_image.php b/src/Entities/QuestionTypes/simpleshading_background_image.php index 0d66b100..4c2e1076 100644 --- a/src/Entities/QuestionTypes/simpleshading_background_image.php +++ b/src/Entities/QuestionTypes/simpleshading_background_image.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simpleshading_background_image extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simpleshading_background_image extends BaseQuestionTypeAttribute +{ protected $src; protected $width; protected $height; protected $opacity; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Image source \ - * \ - * @return string $src \ - */ - public function get_src() { + * Get Image source \ + * \ + * + * @return string $src \ + */ + public function get_src() + { return $this->src; } /** - * Set Image source \ - * \ - * @param string $src \ - */ - public function set_src ($src) { + * Set Image source \ + * \ + * + * @param string $src \ + */ + public function set_src($src) + { $this->src = $src; } /** - * Get Width (%) \ - * Image width in percentage of the canvas width \ - * @return number $width \ - */ - public function get_width() { + * Get Width (%) \ + * Image width in percentage of the canvas width \ + * + * @return number $width \ + */ + public function get_width() + { return $this->width; } /** - * Set Width (%) \ - * Image width in percentage of the canvas width \ - * @param number $width \ - */ - public function set_width ($width) { + * Set Width (%) \ + * Image width in percentage of the canvas width \ + * + * @param number $width \ + */ + public function set_width($width) + { $this->width = $width; } /** - * Get Height (%) \ - * Image height in percentage of the canvas height \ - * @return number $height \ - */ - public function get_height() { + * Get Height (%) \ + * Image height in percentage of the canvas height \ + * + * @return number $height \ + */ + public function get_height() + { return $this->height; } /** - * Set Height (%) \ - * Image height in percentage of the canvas height \ - * @param number $height \ - */ - public function set_height ($height) { + * Set Height (%) \ + * Image height in percentage of the canvas height \ + * + * @param number $height \ + */ + public function set_height($height) + { $this->height = $height; } /** - * Get Opacity (%) \ - * Percentage value defining how opaque the image is \ - * @return number $opacity \ - */ - public function get_opacity() { + * Get Opacity (%) \ + * Percentage value defining how opaque the image is \ + * + * @return number $opacity \ + */ + public function get_opacity() + { return $this->opacity; } /** - * Set Opacity (%) \ - * Percentage value defining how opaque the image is \ - * @param number $opacity \ - */ - public function set_opacity ($opacity) { + * Set Opacity (%) \ + * Percentage value defining how opaque the image is \ + * + * @param number $opacity \ + */ + public function set_opacity($opacity) + { $this->opacity = $opacity; } - + } diff --git a/src/Entities/QuestionTypes/simpleshading_canvas.php b/src/Entities/QuestionTypes/simpleshading_canvas.php index f45b90db..55da1bf9 100644 --- a/src/Entities/QuestionTypes/simpleshading_canvas.php +++ b/src/Entities/QuestionTypes/simpleshading_canvas.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simpleshading_canvas extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simpleshading_canvas extends BaseQuestionTypeAttribute +{ protected $row_count; protected $column_count; protected $cell_height; @@ -17,156 +18,187 @@ class simpleshading_canvas extends BaseQuestionTypeAttribute { protected $read_only_author_cells; protected $hidden; protected $img_src; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Row Count \ - * Number of rows \ - * @return number $row_count \ - */ - public function get_row_count() { + * Get Row Count \ + * Number of rows \ + * + * @return number $row_count \ + */ + public function get_row_count() + { return $this->row_count; } /** - * Set Row Count \ - * Number of rows \ - * @param number $row_count \ - */ - public function set_row_count ($row_count) { + * Set Row Count \ + * Number of rows \ + * + * @param number $row_count \ + */ + public function set_row_count($row_count) + { $this->row_count = $row_count; } /** - * Get Column Count \ - * Number of columns \ - * @return number $column_count \ - */ - public function get_column_count() { + * Get Column Count \ + * Number of columns \ + * + * @return number $column_count \ + */ + public function get_column_count() + { return $this->column_count; } /** - * Set Column Count \ - * Number of columns \ - * @param number $column_count \ - */ - public function set_column_count ($column_count) { + * Set Column Count \ + * Number of columns \ + * + * @param number $column_count \ + */ + public function set_column_count($column_count) + { $this->column_count = $column_count; } /** - * Get Cell Height \ - * Cell height ratio, eg 1.0 - 40px, 1.5 - 60px. \ - * @return number $cell_height \ - */ - public function get_cell_height() { + * Get Cell Height \ + * Cell height ratio, eg 1.0 - 40px, 1.5 - 60px. \ + * + * @return number $cell_height \ + */ + public function get_cell_height() + { return $this->cell_height; } /** - * Set Cell Height \ - * Cell height ratio, eg 1.0 - 40px, 1.5 - 60px. \ - * @param number $cell_height \ - */ - public function set_cell_height ($cell_height) { + * Set Cell Height \ + * Cell height ratio, eg 1.0 - 40px, 1.5 - 60px. \ + * + * @param number $cell_height \ + */ + public function set_cell_height($cell_height) + { $this->cell_height = $cell_height; } /** - * Get Cell Width \ - * Cell width ratio, eg 1.0 - 40px, 1.5 - 60px. \ - * @return number $cell_width \ - */ - public function get_cell_width() { + * Get Cell Width \ + * Cell width ratio, eg 1.0 - 40px, 1.5 - 60px. \ + * + * @return number $cell_width \ + */ + public function get_cell_width() + { return $this->cell_width; } /** - * Set Cell Width \ - * Cell width ratio, eg 1.0 - 40px, 1.5 - 60px. \ - * @param number $cell_width \ - */ - public function set_cell_width ($cell_width) { + * Set Cell Width \ + * Cell width ratio, eg 1.0 - 40px, 1.5 - 60px. \ + * + * @param number $cell_width \ + */ + public function set_cell_width($cell_width) + { $this->cell_width = $cell_width; } /** - * Get Author Shaded \ - * Author shaded canvas \ - * @return array $shaded \ - */ - public function get_shaded() { + * Get Author Shaded \ + * Author shaded canvas \ + * + * @return array $shaded \ + */ + public function get_shaded() + { return $this->shaded; } /** - * Set Author Shaded \ - * Author shaded canvas \ - * @param array $shaded \ - */ - public function set_shaded (array $shaded) { + * Set Author Shaded \ + * Author shaded canvas \ + * + * @param array $shaded \ + */ + public function set_shaded(array $shaded) + { $this->shaded = $shaded; } /** - * Get Lock author cells \ - * Prevents user from modifying Author Shaded \ - * @return boolean $read_only_author_cells \ - */ - public function get_read_only_author_cells() { + * Get Lock author cells \ + * Prevents user from modifying Author Shaded \ + * + * @return boolean $read_only_author_cells \ + */ + public function get_read_only_author_cells() + { return $this->read_only_author_cells; } /** - * Set Lock author cells \ - * Prevents user from modifying Author Shaded \ - * @param boolean $read_only_author_cells \ - */ - public function set_read_only_author_cells ($read_only_author_cells) { + * Set Lock author cells \ + * Prevents user from modifying Author Shaded \ + * + * @param boolean $read_only_author_cells \ + */ + public function set_read_only_author_cells($read_only_author_cells) + { $this->read_only_author_cells = $read_only_author_cells; } /** - * Get Author Hidden \ - * Author hidden canvas \ - * @return array $hidden \ - */ - public function get_hidden() { + * Get Author Hidden \ + * Author hidden canvas \ + * + * @return array $hidden \ + */ + public function get_hidden() + { return $this->hidden; } /** - * Set Author Hidden \ - * Author hidden canvas \ - * @param array $hidden \ - */ - public function set_hidden (array $hidden) { + * Set Author Hidden \ + * Author hidden canvas \ + * + * @param array $hidden \ + */ + public function set_hidden(array $hidden) + { $this->hidden = $hidden; } /** - * Get Shading Image \ - * Shade with image \ - * @return string $img_src \ - */ - public function get_img_src() { + * Get Shading Image \ + * Shade with image \ + * + * @return string $img_src \ + */ + public function get_img_src() + { return $this->img_src; } /** - * Set Shading Image \ - * Shade with image \ - * @param string $img_src \ - */ - public function set_img_src ($img_src) { + * Set Shading Image \ + * Shade with image \ + * + * @param string $img_src \ + */ + public function set_img_src($img_src) + { $this->img_src = $img_src; } - + } diff --git a/src/Entities/QuestionTypes/simpleshading_metadata.php b/src/Entities/QuestionTypes/simpleshading_metadata.php index 38c68c9b..22134f5a 100644 --- a/src/Entities/QuestionTypes/simpleshading_metadata.php +++ b/src/Entities/QuestionTypes/simpleshading_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simpleshading_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simpleshading_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/simpleshading_ui_style.php b/src/Entities/QuestionTypes/simpleshading_ui_style.php index a0f99e6a..cc3badd7 100644 --- a/src/Entities/QuestionTypes/simpleshading_ui_style.php +++ b/src/Entities/QuestionTypes/simpleshading_ui_style.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simpleshading_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simpleshading_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } - + } diff --git a/src/Entities/QuestionTypes/simpleshading_validation.php b/src/Entities/QuestionTypes/simpleshading_validation.php index 4bc1e835..57b0baed 100644 --- a/src/Entities/QuestionTypes/simpleshading_validation.php +++ b/src/Entities/QuestionTypes/simpleshading_validation.php @@ -5,98 +5,114 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simpleshading_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simpleshading_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return simpleshading_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return simpleshading_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param simpleshading_validation_valid_response $valid_response \ - */ - public function set_valid_response (simpleshading_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param simpleshading_validation_valid_response $valid_response \ + */ + public function set_valid_response(simpleshading_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/simpleshading_validation_valid_response.php b/src/Entities/QuestionTypes/simpleshading_validation_valid_response.php index 7881327b..7da4c1b0 100644 --- a/src/Entities/QuestionTypes/simpleshading_validation_valid_response.php +++ b/src/Entities/QuestionTypes/simpleshading_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simpleshading_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simpleshading_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Valid Response \ - * \ - * @return simpleshading_validation_valid_response_value $value \ - */ - public function get_value() { + * Get Valid Response \ + * \ + * + * @return simpleshading_validation_valid_response_value $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Valid Response \ - * \ - * @param simpleshading_validation_valid_response_value $value \ - */ - public function set_value (simpleshading_validation_valid_response_value $value) { + * Set Valid Response \ + * \ + * + * @param simpleshading_validation_valid_response_value $value \ + */ + public function set_value(simpleshading_validation_valid_response_value $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/simpleshading_validation_valid_response_value.php b/src/Entities/QuestionTypes/simpleshading_validation_valid_response_value.php index f7899fa0..3e5f73a4 100644 --- a/src/Entities/QuestionTypes/simpleshading_validation_valid_response_value.php +++ b/src/Entities/QuestionTypes/simpleshading_validation_valid_response_value.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class simpleshading_validation_valid_response_value extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class simpleshading_validation_valid_response_value extends BaseQuestionTypeAttribute +{ protected $method; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Method \ - * Score the response based on exact locations. \ - * @return string $method ie. byLocation, byCount \ - */ - public function get_method() { + * Get Method \ + * Score the response based on exact locations. \ + * + * @return string $method ie. byLocation, byCount \ + */ + public function get_method() + { return $this->method; } /** - * Set Method \ - * Score the response based on exact locations. \ - * @param string $method ie. byLocation, byCount \ - */ - public function set_method ($method) { + * Set Method \ + * Score the response based on exact locations. \ + * + * @param string $method ie. byLocation, byCount \ + */ + public function set_method($method) + { $this->method = $method; } - + } diff --git a/src/Entities/QuestionTypes/sortlist.php b/src/Entities/QuestionTypes/sortlist.php index fb515733..bb1641dd 100644 --- a/src/Entities/QuestionTypes/sortlist.php +++ b/src/Entities/QuestionTypes/sortlist.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class sortlist extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class sortlist extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -20,233 +21,277 @@ class sortlist extends BaseQuestionType { protected $validation; protected $description; protected $list; - + public function __construct( - $type, - array $list - ) - { - $this->type = $type; - $this->list = $list; - } + $type, + array $list + ) { + $this->type = $type; + $this->list = $list; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return sortlist_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return sortlist_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param sortlist_metadata $metadata \ - */ - public function set_metadata (sortlist_metadata $metadata) { + * Set metadata \ + * \ + * + * @param sortlist_metadata $metadata \ + */ + public function set_metadata(sortlist_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return sortlist_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return sortlist_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param sortlist_ui_style $ui_style \ - */ - public function set_ui_style (sortlist_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param sortlist_ui_style $ui_style \ + */ + public function set_ui_style(sortlist_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return sortlist_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return sortlist_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param sortlist_validation $validation \ - */ - public function set_validation (sortlist_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param sortlist_validation $validation \ + */ + public function set_validation(sortlist_validation $validation) + { $this->validation = $validation; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get List \ - * Array of strings that represent the unordered stimulus list for the question. \ - * @return array $list \ - */ - public function get_list() { + * Get List \ + * Array of strings that represent the unordered stimulus list for the question. \ + * + * @return array $list \ + */ + public function get_list() + { return $this->list; } /** - * Set List \ - * Array of strings that represent the unordered stimulus list for the question. \ - * @param array $list \ - */ - public function set_list (array $list) { + * Set List \ + * Array of strings that represent the unordered stimulus list for the question. \ + * + * @param array $list \ + */ + public function set_list(array $list) + { $this->list = $list; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/sortlist_metadata.php b/src/Entities/QuestionTypes/sortlist_metadata.php index 5d7bef5d..6ae6ff70 100644 --- a/src/Entities/QuestionTypes/sortlist_metadata.php +++ b/src/Entities/QuestionTypes/sortlist_metadata.php @@ -5,94 +5,110 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class sortlist_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class sortlist_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } - + } diff --git a/src/Entities/QuestionTypes/sortlist_ui_style.php b/src/Entities/QuestionTypes/sortlist_ui_style.php index 6113418a..6f743a4e 100644 --- a/src/Entities/QuestionTypes/sortlist_ui_style.php +++ b/src/Entities/QuestionTypes/sortlist_ui_style.php @@ -5,73 +5,85 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class sortlist_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class sortlist_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; protected $validation_stem_numeration; protected $show_drag_handle; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } /** - * Get Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function get_validation_stem_numeration() { + * Get Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @return string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function get_validation_stem_numeration() + { return $this->validation_stem_numeration; } /** - * Set Validation Stem Numeration \ - * Numeration character to be displayed to the left of the validation label. \ - * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ - */ - public function set_validation_stem_numeration ($validation_stem_numeration) { + * Set Validation Stem Numeration \ + * Numeration character to be displayed to the left of the validation label. \ + * + * @param string $validation_stem_numeration ie. number, upper-alpha, lower-alpha \ + */ + public function set_validation_stem_numeration($validation_stem_numeration) + { $this->validation_stem_numeration = $validation_stem_numeration; } /** - * Get Show drag handle \ - * Determines whether to show the drag handle. \ - * @return boolean $show_drag_handle \ - */ - public function get_show_drag_handle() { + * Get Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @return boolean $show_drag_handle \ + */ + public function get_show_drag_handle() + { return $this->show_drag_handle; } /** - * Set Show drag handle \ - * Determines whether to show the drag handle. \ - * @param boolean $show_drag_handle \ - */ - public function set_show_drag_handle ($show_drag_handle) { + * Set Show drag handle \ + * Determines whether to show the drag handle. \ + * + * @param boolean $show_drag_handle \ + */ + public function set_show_drag_handle($show_drag_handle) + { $this->show_drag_handle = $show_drag_handle; } - + } diff --git a/src/Entities/QuestionTypes/sortlist_validation.php b/src/Entities/QuestionTypes/sortlist_validation.php index bb767532..73eff09f 100644 --- a/src/Entities/QuestionTypes/sortlist_validation.php +++ b/src/Entities/QuestionTypes/sortlist_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class sortlist_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class sortlist_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match Per Response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match Per Response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match Per Response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match Per Response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return sortlist_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return sortlist_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param sortlist_validation_valid_response $valid_response \ - */ - public function set_valid_response (sortlist_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param sortlist_validation_valid_response $valid_response \ + */ + public function set_valid_response(sortlist_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/sortlist_validation_alt_responses_item.php b/src/Entities/QuestionTypes/sortlist_validation_alt_responses_item.php index bc1ae103..b5aa825a 100644 --- a/src/Entities/QuestionTypes/sortlist_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/sortlist_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class sortlist_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class sortlist_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Array of integers indicating the correct order of indexes of the list \ - * @return questionOrderlist $value \ - */ - public function get_value() { + * Get Value \ + * Array of integers indicating the correct order of indexes of the list \ + * + * @return questionOrderlist $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Array of integers indicating the correct order of indexes of the list \ - * @param questionOrderlist $value \ - */ - public function set_value ($value) { + * Set Value \ + * Array of integers indicating the correct order of indexes of the list \ + * + * @param questionOrderlist $value \ + */ + public function set_value($value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/sortlist_validation_valid_response.php b/src/Entities/QuestionTypes/sortlist_validation_valid_response.php index cdfd8c3f..151dc73e 100644 --- a/src/Entities/QuestionTypes/sortlist_validation_valid_response.php +++ b/src/Entities/QuestionTypes/sortlist_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class sortlist_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class sortlist_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * Array of integers indicating the correct order of indexes of the list \ - * @return questionOrderlist $value \ - */ - public function get_value() { + * Get Value \ + * Array of integers indicating the correct order of indexes of the list \ + * + * @return questionOrderlist $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * Array of integers indicating the correct order of indexes of the list \ - * @param questionOrderlist $value \ - */ - public function set_value ($value) { + * Set Value \ + * Array of integers indicating the correct order of indexes of the list \ + * + * @param questionOrderlist $value \ + */ + public function set_value($value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/texthighlight.php b/src/Entities/QuestionTypes/texthighlight.php index 0cacf02a..7962da86 100644 --- a/src/Entities/QuestionTypes/texthighlight.php +++ b/src/Entities/QuestionTypes/texthighlight.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class texthighlight extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class texthighlight extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -20,235 +21,279 @@ class texthighlight extends BaseQuestionType { protected $word_bound; protected $drag_selection; protected $validation; - + public function __construct( - $type, - $template - ) - { - $this->type = $type; - $this->template = $template; - } + $type, + $template + ) { + $this->type = $type; + $this->template = $template; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return texthighlight_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return texthighlight_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param texthighlight_metadata $metadata \ - */ - public function set_metadata (texthighlight_metadata $metadata) { + * Set metadata \ + * \ + * + * @param texthighlight_metadata $metadata \ + */ + public function set_metadata(texthighlight_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return texthighlight_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return texthighlight_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param texthighlight_ui_style $ui_style \ - */ - public function set_ui_style (texthighlight_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param texthighlight_ui_style $ui_style \ + */ + public function set_ui_style(texthighlight_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @return string $description \ - */ - public function get_description() { + * Get Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @return string $description \ + */ + public function get_description() + { return $this->description; } /** - * Set Description (deprecated) \ - * Deprecated See stimulus_review.
-Description of the question and - its context to be displayed. -It supports HTML entities. \ - * @param string $description \ - */ - public function set_description ($description) { + * Set Description (deprecated) \ + * Deprecated See stimulus_review.
+ * Description of the question and + * its context to be displayed. + * It supports HTML entities. \ + * + * @param string $description \ + */ + public function set_description($description) + { $this->description = $description; } /** - * Get Template \ - * A string containing markup to be highlighted. HTML supported t - ags. Surround valid responses within a valid tag for automated marking. \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * A string containing markup to be highlighted. HTML supported t + * ags. Surround valid responses within a valid tag for automated marking. \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * A string containing markup to be highlighted. HTML supported t - ags. Surround valid responses within a valid tag for automated marking. \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * A string containing markup to be highlighted. HTML supported t + * ags. Surround valid responses within a valid tag for automated marking. \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Snap to word? \ - * Highlighting partial words automatically highlights the nearest full word(s) \ - * @return boolean $word_bound \ - */ - public function get_word_bound() { + * Get Snap to word? \ + * Highlighting partial words automatically highlights the nearest full word(s) \ + * + * @return boolean $word_bound \ + */ + public function get_word_bound() + { return $this->word_bound; } /** - * Set Snap to word? \ - * Highlighting partial words automatically highlights the nearest full word(s) \ - * @param boolean $word_bound \ - */ - public function set_word_bound ($word_bound) { + * Set Snap to word? \ + * Highlighting partial words automatically highlights the nearest full word(s) \ + * + * @param boolean $word_bound \ + */ + public function set_word_bound($word_bound) + { $this->word_bound = $word_bound; } /** - * Get Drag Selection? \ - * Setting this to false will force the user to only be able to select a single word and dragging to select multiple words - will be disabled. \ - * @return boolean $drag_selection \ - */ - public function get_drag_selection() { + * Get Drag Selection? \ + * Setting this to false will force the user to only be able to select a single word and dragging to select multiple words + * will be disabled. \ + * + * @return boolean $drag_selection \ + */ + public function get_drag_selection() + { return $this->drag_selection; } /** - * Set Drag Selection? \ - * Setting this to false will force the user to only be able to select a single word and dragging to select multiple words - will be disabled. \ - * @param boolean $drag_selection \ - */ - public function set_drag_selection ($drag_selection) { + * Set Drag Selection? \ + * Setting this to false will force the user to only be able to select a single word and dragging to select multiple words + * will be disabled. \ + * + * @param boolean $drag_selection \ + */ + public function set_drag_selection($drag_selection) + { $this->drag_selection = $drag_selection; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return texthighlight_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return texthighlight_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param texthighlight_validation $validation \ - */ - public function set_validation (texthighlight_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param texthighlight_validation $validation \ + */ + public function set_validation(texthighlight_validation $validation) + { $this->validation = $validation; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/texthighlight_metadata.php b/src/Entities/QuestionTypes/texthighlight_metadata.php index c511f84f..36b1cef3 100644 --- a/src/Entities/QuestionTypes/texthighlight_metadata.php +++ b/src/Entities/QuestionTypes/texthighlight_metadata.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class texthighlight_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class texthighlight_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string/number $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string/number $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string/number $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level ($distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string /number $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level($distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/texthighlight_ui_style.php b/src/Entities/QuestionTypes/texthighlight_ui_style.php index 07c1840b..98d5203e 100644 --- a/src/Entities/QuestionTypes/texthighlight_ui_style.php +++ b/src/Entities/QuestionTypes/texthighlight_ui_style.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class texthighlight_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class texthighlight_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } - + } diff --git a/src/Entities/QuestionTypes/texthighlight_validation.php b/src/Entities/QuestionTypes/texthighlight_validation.php index f21df4bb..9ce318e7 100644 --- a/src/Entities/QuestionTypes/texthighlight_validation.php +++ b/src/Entities/QuestionTypes/texthighlight_validation.php @@ -5,92 +5,108 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class texthighlight_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class texthighlight_validation extends BaseQuestionTypeAttribute +{ protected $partial_scoring; protected $show_partial_ui; protected $valid_score; protected $penalty_score; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Partial scoring \ - * Determines if a partial score will be rewarded when not all responses are correct. \ - * @return boolean $partial_scoring \ - */ - public function get_partial_scoring() { + * Get Partial scoring \ + * Determines if a partial score will be rewarded when not all responses are correct. \ + * + * @return boolean $partial_scoring \ + */ + public function get_partial_scoring() + { return $this->partial_scoring; } /** - * Set Partial scoring \ - * Determines if a partial score will be rewarded when not all responses are correct. \ - * @param boolean $partial_scoring \ - */ - public function set_partial_scoring ($partial_scoring) { + * Set Partial scoring \ + * Determines if a partial score will be rewarded when not all responses are correct. \ + * + * @param boolean $partial_scoring \ + */ + public function set_partial_scoring($partial_scoring) + { $this->partial_scoring = $partial_scoring; } /** - * Get Show partial UI \ - * When partial_scoring is false this determines if the valid UI is shown for each response or only for the whole question \ - * @return boolean $show_partial_ui \ - */ - public function get_show_partial_ui() { + * Get Show partial UI \ + * When partial_scoring is false this determines if the valid UI is shown for each response or only for the whole question \ + * + * @return boolean $show_partial_ui \ + */ + public function get_show_partial_ui() + { return $this->show_partial_ui; } /** - * Set Show partial UI \ - * When partial_scoring is false this determines if the valid UI is shown for each response or only for the whole question \ - * @param boolean $show_partial_ui \ - */ - public function set_show_partial_ui ($show_partial_ui) { + * Set Show partial UI \ + * When partial_scoring is false this determines if the valid UI is shown for each response or only for the whole question \ + * + * @param boolean $show_partial_ui \ + */ + public function set_show_partial_ui($show_partial_ui) + { $this->show_partial_ui = $show_partial_ui; } /** - * Get Valid score \ - * The score for a single correct selection. \ - * @return number $valid_score \ - */ - public function get_valid_score() { + * Get Valid score \ + * The score for a single correct selection. \ + * + * @return number $valid_score \ + */ + public function get_valid_score() + { return $this->valid_score; } /** - * Set Valid score \ - * The score for a single correct selection. \ - * @param number $valid_score \ - */ - public function set_valid_score ($valid_score) { + * Set Valid score \ + * The score for a single correct selection. \ + * + * @param number $valid_score \ + */ + public function set_valid_score($valid_score) + { $this->valid_score = $valid_score; } /** - * Get Penalty score \ - * Negative value indicating the marks deducted for an incorrect response. \ - * @return number $penalty_score \ - */ - public function get_penalty_score() { + * Get Penalty score \ + * Negative value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty_score \ + */ + public function get_penalty_score() + { return $this->penalty_score; } /** - * Set Penalty score \ - * Negative value indicating the marks deducted for an incorrect response. \ - * @param number $penalty_score \ - */ - public function set_penalty_score ($penalty_score) { + * Set Penalty score \ + * Negative value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty_score \ + */ + public function set_penalty_score($penalty_score) + { $this->penalty_score = $penalty_score; } - + } diff --git a/src/Entities/QuestionTypes/tokenhighlight.php b/src/Entities/QuestionTypes/tokenhighlight.php index ffceb783..5b963044 100644 --- a/src/Entities/QuestionTypes/tokenhighlight.php +++ b/src/Entities/QuestionTypes/tokenhighlight.php @@ -5,10 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class tokenhighlight extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class tokenhighlight extends BaseQuestionType +{ protected $is_math; protected $metadata; protected $stimulus; @@ -21,247 +22,295 @@ class tokenhighlight extends BaseQuestionType { protected $template; protected $max_selection; protected $tokenization; - + public function __construct( - $type, - $template, - $tokenization - ) - { - $this->type = $type; - $this->template = $template; - $this->tokenization = $tokenization; - } + $type, + $template, + $tokenization + ) { + $this->type = $type; + $this->template = $template; + $this->tokenization = $tokenization; + } /** - * Get Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @return boolean $is_math \ - */ - public function get_is_math() { + * Get Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @return boolean $is_math \ + */ + public function get_is_math() + { return $this->is_math; } /** - * Set Has Mathematical Formulas \ - * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ - * @param boolean $is_math \ - */ - public function set_is_math ($is_math) { + * Set Has Mathematical Formulas \ + * Set to true to have LaTeX or MathML contents to be rendered with mathjax. \ + * + * @param boolean $is_math \ + */ + public function set_is_math($is_math) + { $this->is_math = $is_math; } /** - * Get metadata \ - * \ - * @return tokenhighlight_metadata $metadata \ - */ - public function get_metadata() { + * Get metadata \ + * \ + * + * @return tokenhighlight_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set metadata \ - * \ - * @param tokenhighlight_metadata $metadata \ - */ - public function set_metadata (tokenhighlight_metadata $metadata) { + * Set metadata \ + * \ + * + * @param tokenhighlight_metadata $metadata \ + */ + public function set_metadata(tokenhighlight_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @return string $stimulus \ - */ - public function get_stimulus() { + * Get Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @return string $stimulus \ + */ + public function get_stimulus() + { return $this->stimulus; } /** - * Set Stimulus \ - * HTML/Text content displayed in all states (initial, resume, review) ren - dered above the response area. Supports embedded Feature <span> tags. \ - * @param string $stimulus \ - */ - public function set_stimulus ($stimulus) { + * Set Stimulus \ + * HTML/Text content displayed in all states (initial, resume, review) ren + * dered above the response area. Supports embedded Feature <span> tags. \ + * + * @param string $stimulus \ + */ + public function set_stimulus($stimulus) + { $this->stimulus = $stimulus; } /** - * Get Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @return string $stimulus_review \ - */ - public function get_stimulus_review() { + * Get Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @return string $stimulus_review \ + */ + public function get_stimulus_review() + { return $this->stimulus_review; } /** - * Set Stimulus in review \ - * HTML/Text content displayed only in review state rende - red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ - * @param string $stimulus_review \ - */ - public function set_stimulus_review ($stimulus_review) { + * Set Stimulus in review \ + * HTML/Text content displayed only in review state rende + * red above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state. \ + * + * @param string $stimulus_review \ + */ + public function set_stimulus_review($stimulus_review) + { $this->stimulus_review = $stimulus_review; } /** - * Get Question Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Question Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Question Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Question Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get ui_style \ - * \ - * @return tokenhighlight_ui_style $ui_style \ - */ - public function get_ui_style() { + * Get ui_style \ + * \ + * + * @return tokenhighlight_ui_style $ui_style \ + */ + public function get_ui_style() + { return $this->ui_style; } /** - * Set ui_style \ - * \ - * @param tokenhighlight_ui_style $ui_style \ - */ - public function set_ui_style (tokenhighlight_ui_style $ui_style) { + * Set ui_style \ + * \ + * + * @param tokenhighlight_ui_style $ui_style \ + */ + public function set_ui_style(tokenhighlight_ui_style $ui_style) + { $this->ui_style = $ui_style; } /** - * Get Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @return number $feedback_attempts \ - */ - public function get_feedback_attempts() { + * Get Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @return number $feedback_attempts \ + */ + public function get_feedback_attempts() + { return $this->feedback_attempts; } /** - * Set Number of feedback attempts allowed \ - * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with - 0 being unlimited. \ - * @param number $feedback_attempts \ - */ - public function set_feedback_attempts ($feedback_attempts) { + * Set Number of feedback attempts allowed \ + * If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button, with + * 0 being unlimited. \ + * + * @param number $feedback_attempts \ + */ + public function set_feedback_attempts($feedback_attempts) + { $this->feedback_attempts = $feedback_attempts; } /** - * Get Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @return boolean $instant_feedback \ - */ - public function get_instant_feedback() { + * Get Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @return boolean $instant_feedback \ + */ + public function get_instant_feedback() + { return $this->instant_feedback; } /** - * Set Provide instant feedback \ - * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ - * @param boolean $instant_feedback \ - */ - public function set_instant_feedback ($instant_feedback) { + * Set Provide instant feedback \ + * Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user. \ + * + * @param boolean $instant_feedback \ + */ + public function set_instant_feedback($instant_feedback) + { $this->instant_feedback = $instant_feedback; } /** - * Get validation \ - * Validation object that includes options on how this question will be automarked \ - * @return tokenhighlight_validation $validation \ - */ - public function get_validation() { + * Get validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @return tokenhighlight_validation $validation \ + */ + public function get_validation() + { return $this->validation; } /** - * Set validation \ - * Validation object that includes options on how this question will be automarked \ - * @param tokenhighlight_validation $validation \ - */ - public function set_validation (tokenhighlight_validation $validation) { + * Set validation \ + * Validation object that includes options on how this question will be automarked \ + * + * @param tokenhighlight_validation $validation \ + */ + public function set_validation(tokenhighlight_validation $validation) + { $this->validation = $validation; } /** - * Get Template \ - * A string contains the mark up. Wrap words/phrases with <span class="lrn_token"> tag to create clickable token \ - * @return string $template \ - */ - public function get_template() { + * Get Template \ + * A string contains the mark up. Wrap words/phrases with <span class="lrn_token"> tag to create clickable token \ + * + * @return string $template \ + */ + public function get_template() + { return $this->template; } /** - * Set Template \ - * A string contains the mark up. Wrap words/phrases with <span class="lrn_token"> tag to create clickable token \ - * @param string $template \ - */ - public function set_template ($template) { + * Set Template \ + * A string contains the mark up. Wrap words/phrases with <span class="lrn_token"> tag to create clickable token \ + * + * @param string $template \ + */ + public function set_template($template) + { $this->template = $template; } /** - * Get Max Selection \ - * How many elements can user select? \ - * @return number $max_selection \ - */ - public function get_max_selection() { + * Get Max Selection \ + * How many elements can user select? \ + * + * @return number $max_selection \ + */ + public function get_max_selection() + { return $this->max_selection; } /** - * Set Max Selection \ - * How many elements can user select? \ - * @param number $max_selection \ - */ - public function set_max_selection ($max_selection) { + * Set Max Selection \ + * How many elements can user select? \ + * + * @param number $max_selection \ + */ + public function set_max_selection($max_selection) + { $this->max_selection = $max_selection; } /** - * Get tokenization \ - * This need to always be set to `custom` \ - * @return string $tokenization \ - */ - public function get_tokenization() { + * Get tokenization \ + * This need to always be set to `custom` \ + * + * @return string $tokenization \ + */ + public function get_tokenization() + { return $this->tokenization; } /** - * Set tokenization \ - * This need to always be set to `custom` \ - * @param string $tokenization \ - */ - public function set_tokenization ($tokenization) { + * Set tokenization \ + * This need to always be set to `custom` \ + * + * @param string $tokenization \ + */ + public function set_tokenization($tokenization) + { $this->tokenization = $tokenization; } - - public function get_widget_type() { - return 'response'; + + public function get_widget_type() + { + return 'response'; } } diff --git a/src/Entities/QuestionTypes/tokenhighlight_metadata.php b/src/Entities/QuestionTypes/tokenhighlight_metadata.php index 35864d92..80cc9471 100644 --- a/src/Entities/QuestionTypes/tokenhighlight_metadata.php +++ b/src/Entities/QuestionTypes/tokenhighlight_metadata.php @@ -5,115 +5,135 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class tokenhighlight_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class tokenhighlight_metadata extends BaseQuestionTypeAttribute +{ protected $distractor_rationale; protected $rubric_reference; protected $sample_answer; protected $acknowledgements; protected $distractor_rationale_response_level; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return string $distractor_rationale \ - */ - public function get_distractor_rationale() { + * Get Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return string $distractor_rationale \ + */ + public function get_distractor_rationale() + { return $this->distractor_rationale; } /** - * Set Distractor Rationale \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param string $distractor_rationale \ - */ - public function set_distractor_rationale ($distractor_rationale) { + * Set Distractor Rationale \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param string $distractor_rationale \ + */ + public function set_distractor_rationale($distractor_rationale) + { $this->distractor_rationale = $distractor_rationale; } /** - * Get Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @return string $rubric_reference \ - */ - public function get_rubric_reference() { + * Get Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @return string $rubric_reference \ + */ + public function get_rubric_reference() + { return $this->rubric_reference; } /** - * Set Rubric Reference \ - * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ - * @param string $rubric_reference \ - */ - public function set_rubric_reference ($rubric_reference) { + * Set Rubric Reference \ + * A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity \ + * + * @param string $rubric_reference \ + */ + public function set_rubric_reference($rubric_reference) + { $this->rubric_reference = $rubric_reference; } /** - * Get Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @return string $sample_answer \ - */ - public function get_sample_answer() { + * Get Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @return string $sample_answer \ + */ + public function get_sample_answer() + { return $this->sample_answer; } /** - * Set Sample Answer \ - * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ - * @param string $sample_answer \ - */ - public function set_sample_answer ($sample_answer) { + * Set Sample Answer \ + * A sample answer to be displayed on the Learnosity Reports API. HTML is supported. \ + * + * @param string $sample_answer \ + */ + public function set_sample_answer($sample_answer) + { $this->sample_answer = $sample_answer; } /** - * Get Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @return string $acknowledgements \ - */ - public function get_acknowledgements() { + * Get Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @return string $acknowledgements \ + */ + public function get_acknowledgements() + { return $this->acknowledgements; } /** - * Set Acknowledgements \ - * References for any text passages, documents, images etc. used in the question. \ - * @param string $acknowledgements \ - */ - public function set_acknowledgements ($acknowledgements) { + * Set Acknowledgements \ + * References for any text passages, documents, images etc. used in the question. \ + * + * @param string $acknowledgements \ + */ + public function set_acknowledgements($acknowledgements) + { $this->acknowledgements = $acknowledgements; } /** - * Get Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @return array $distractor_rationale_response_level \ - */ - public function get_distractor_rationale_response_level() { + * Get Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @return array $distractor_rationale_response_level \ + */ + public function get_distractor_rationale_response_level() + { return $this->distractor_rationale_response_level; } /** - * Set Distractor Rationale per response \ - * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ - ment. \ - * @param array $distractor_rationale_response_level \ - */ - public function set_distractor_rationale_response_level (array $distractor_rationale_response_level) { + * Set Distractor Rationale per response \ + * Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environ + * ment. \ + * + * @param array $distractor_rationale_response_level \ + */ + public function set_distractor_rationale_response_level(array $distractor_rationale_response_level) + { $this->distractor_rationale_response_level = $distractor_rationale_response_level; } - + } diff --git a/src/Entities/QuestionTypes/tokenhighlight_ui_style.php b/src/Entities/QuestionTypes/tokenhighlight_ui_style.php index 717f207c..cbaf3bb0 100644 --- a/src/Entities/QuestionTypes/tokenhighlight_ui_style.php +++ b/src/Entities/QuestionTypes/tokenhighlight_ui_style.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class tokenhighlight_ui_style extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class tokenhighlight_ui_style extends BaseQuestionTypeAttribute +{ protected $fontsize; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function get_fontsize() { + * Get Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @return string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function get_fontsize() + { return $this->fontsize; } /** - * Set Font size \ - * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ - * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ - */ - public function set_fontsize ($fontsize) { + * Set Font size \ + * Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'. \ + * + * @param string $fontsize ie. small, normal, large, xlarge, xxlarge \ + */ + public function set_fontsize($fontsize) + { $this->fontsize = $fontsize; } - + } diff --git a/src/Entities/QuestionTypes/tokenhighlight_validation.php b/src/Entities/QuestionTypes/tokenhighlight_validation.php index 2413709b..19883594 100644 --- a/src/Entities/QuestionTypes/tokenhighlight_validation.php +++ b/src/Entities/QuestionTypes/tokenhighlight_validation.php @@ -5,119 +5,139 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class tokenhighlight_validation extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class tokenhighlight_validation extends BaseQuestionTypeAttribute +{ protected $penalty; protected $scoring_type; protected $valid_response; protected $alt_responses; protected $rounding; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @return number $penalty \ - */ - public function get_penalty() { + * Get Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @return number $penalty \ + */ + public function get_penalty() + { return $this->penalty; } /** - * Set Penalty score \ - * Positive value indicating the marks deducted for an incorrect response. \ - * @param number $penalty \ - */ - public function set_penalty ($penalty) { + * Set Penalty score \ + * Positive value indicating the marks deducted for an incorrect response. \ + * + * @param number $penalty \ + */ + public function set_penalty($penalty) + { $this->penalty = $penalty; } /** - * Get Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match Per Response - Cumulative Score value will be - given for each correct response area \ - * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function get_scoring_type() { + * Get Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match Per Response - Cumulative Score value will be + * given for each correct response area \ + * + * @return string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function get_scoring_type() + { return $this->scoring_type; } /** - * Set Scoring type \ - * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus - t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac - h correct response area
'partialMatch': Partial Match Per Response - Cumulative Score value will be - given for each correct response area \ - * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ - */ - public function set_scoring_type ($scoring_type) { + * Set Scoring type \ + * Defines the scoring approach used. Possible options:
'exactMatch': Exact Match - Entire response mus + * t match exactly
'partialMatchV2': Partial Match - A relative part of the score will be given for eac + * h correct response area
'partialMatch': Partial Match Per Response - Cumulative Score value will be + * given for each correct response area \ + * + * @param string $scoring_type ie. exactMatch, partialMatch, partialMatchV2 \ + */ + public function set_scoring_type($scoring_type) + { $this->scoring_type = $scoring_type; } /** - * Get Valid response \ - * An object containing the valid response score and value. \ - * @return tokenhighlight_validation_valid_response $valid_response \ - */ - public function get_valid_response() { + * Get Valid response \ + * An object containing the valid response score and value. \ + * + * @return tokenhighlight_validation_valid_response $valid_response \ + */ + public function get_valid_response() + { return $this->valid_response; } /** - * Set Valid response \ - * An object containing the valid response score and value. \ - * @param tokenhighlight_validation_valid_response $valid_response \ - */ - public function set_valid_response (tokenhighlight_validation_valid_response $valid_response) { + * Set Valid response \ + * An object containing the valid response score and value. \ + * + * @param tokenhighlight_validation_valid_response $valid_response \ + */ + public function set_valid_response(tokenhighlight_validation_valid_response $valid_response) + { $this->valid_response = $valid_response; } /** - * Get Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @return array $alt_responses \ - */ - public function get_alt_responses() { + * Get Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @return array $alt_responses \ + */ + public function get_alt_responses() + { return $this->alt_responses; } /** - * Set Alternate responses \ - * An array of alternate response objects used for giving a supplementary value if the question was not valid \ - * @param array $alt_responses \ - */ - public function set_alt_responses (array $alt_responses) { + * Set Alternate responses \ + * An array of alternate response objects used for giving a supplementary value if the question was not valid \ + * + * @param array $alt_responses \ + */ + public function set_alt_responses(array $alt_responses) + { $this->alt_responses = $alt_responses; } /** - * Get Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @return string $rounding \ - */ - public function get_rounding() { + * Get Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @return string $rounding \ + */ + public function get_rounding() + { return $this->rounding; } /** - * Set Rounding \ - * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap - plied, floor: Rounded down to the nearest whole number. \ - * @param string $rounding \ - */ - public function set_rounding ($rounding) { + * Set Rounding \ + * Method for rounding the score after it has been calculated as a fraction of score. none: No rounding ap + * plied, floor: Rounded down to the nearest whole number. \ + * + * @param string $rounding \ + */ + public function set_rounding($rounding) + { $this->rounding = $rounding; } - + } diff --git a/src/Entities/QuestionTypes/tokenhighlight_validation_alt_responses_item.php b/src/Entities/QuestionTypes/tokenhighlight_validation_alt_responses_item.php index 45e52b22..00c133b0 100644 --- a/src/Entities/QuestionTypes/tokenhighlight_validation_alt_responses_item.php +++ b/src/Entities/QuestionTypes/tokenhighlight_validation_alt_responses_item.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class tokenhighlight_validation_alt_responses_item extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class tokenhighlight_validation_alt_responses_item extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this alternate response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this alternate response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this alternate response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this alternate response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array contains the index of valid token \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array contains the index of valid token \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array contains the index of valid token \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array contains the index of valid token \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/tokenhighlight_validation_valid_response.php b/src/Entities/QuestionTypes/tokenhighlight_validation_valid_response.php index 63d559f4..8108b294 100644 --- a/src/Entities/QuestionTypes/tokenhighlight_validation_valid_response.php +++ b/src/Entities/QuestionTypes/tokenhighlight_validation_valid_response.php @@ -5,54 +5,62 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class tokenhighlight_validation_valid_response extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class tokenhighlight_validation_valid_response extends BaseQuestionTypeAttribute +{ protected $score; protected $value; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Score \ - * Score for this valid response. \ - * @return number $score \ - */ - public function get_score() { + * Get Score \ + * Score for this valid response. \ + * + * @return number $score \ + */ + public function get_score() + { return $this->score; } /** - * Set Score \ - * Score for this valid response. \ - * @param number $score \ - */ - public function set_score ($score) { + * Set Score \ + * Score for this valid response. \ + * + * @param number $score \ + */ + public function set_score($score) + { $this->score = $score; } /** - * Get Value \ - * An array contains the index of valid token \ - * @return array $value \ - */ - public function get_value() { + * Get Value \ + * An array contains the index of valid token \ + * + * @return array $value \ + */ + public function get_value() + { return $this->value; } /** - * Set Value \ - * An array contains the index of valid token \ - * @param array $value \ - */ - public function set_value (array $value) { + * Set Value \ + * An array contains the index of valid token \ + * + * @param array $value \ + */ + public function set_value(array $value) + { $this->value = $value; } - + } diff --git a/src/Entities/QuestionTypes/videoplayer.php b/src/Entities/QuestionTypes/videoplayer.php index bd9bdb23..941fe361 100644 --- a/src/Entities/QuestionTypes/videoplayer.php +++ b/src/Entities/QuestionTypes/videoplayer.php @@ -5,118 +5,139 @@ use LearnosityQti\Entities\BaseQuestionType; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class videoplayer extends BaseQuestionType { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class videoplayer extends BaseQuestionType +{ protected $type; protected $metadata; protected $player_type; protected $heading; protected $caption; - + public function __construct( - $type, - $player_type - ) - { - $this->type = $type; - $this->player_type = $player_type; - } + $type, + $player_type + ) { + $this->type = $type; + $this->player_type = $player_type; + } /** - * Get Feature Type \ - * \ - * @return string $type \ - */ - public function get_type() { + * Get Feature Type \ + * \ + * + * @return string $type \ + */ + public function get_type() + { return $this->type; } /** - * Set Feature Type \ - * \ - * @param string $type \ - */ - public function set_type ($type) { + * Set Feature Type \ + * \ + * + * @param string $type \ + */ + public function set_type($type) + { $this->type = $type; } /** - * Get Metadata \ - * Additional data for the video player \ - * @return videoplayer_metadata $metadata \ - */ - public function get_metadata() { + * Get Metadata \ + * Additional data for the video player \ + * + * @return videoplayer_metadata $metadata \ + */ + public function get_metadata() + { return $this->metadata; } /** - * Set Metadata \ - * Additional data for the video player \ - * @param videoplayer_metadata $metadata \ - */ - public function set_metadata (videoplayer_metadata $metadata) { + * Set Metadata \ + * Additional data for the video player \ + * + * @param videoplayer_metadata $metadata \ + */ + public function set_metadata(videoplayer_metadata $metadata) + { $this->metadata = $metadata; } /** - * Get Video type \ - * Defines the type of video player you want to create. \ - * @return string $player_type \ - */ - public function get_player_type() { + * Get Video type \ + * Defines the type of video player you want to create. \ + * + * @return string $player_type \ + */ + public function get_player_type() + { return $this->player_type; } /** - * Set Video type \ - * Defines the type of video player you want to create. \ - * @param string $player_type \ - */ - public function set_player_type ($player_type) { + * Set Video type \ + * Defines the type of video player you want to create. \ + * + * @param string $player_type \ + */ + public function set_player_type($player_type) + { $this->player_type = $player_type; } /** - * Get Heading \ - * Heading of the video \ - * @return string $heading \ - */ - public function get_heading() { + * Get Heading \ + * Heading of the video \ + * + * @return string $heading \ + */ + public function get_heading() + { return $this->heading; } /** - * Set Heading \ - * Heading of the video \ - * @param string $heading \ - */ - public function set_heading ($heading) { + * Set Heading \ + * Heading of the video \ + * + * @param string $heading \ + */ + public function set_heading($heading) + { $this->heading = $heading; } /** - * Get Caption \ - * Description of the video being played \ - * @return string $caption \ - */ - public function get_caption() { + * Get Caption \ + * Description of the video being played \ + * + * @return string $caption \ + */ + public function get_caption() + { return $this->caption; } /** - * Set Caption \ - * Description of the video being played \ - * @param string $caption \ - */ - public function set_caption ($caption) { + * Set Caption \ + * Description of the video being played \ + * + * @param string $caption \ + */ + public function set_caption($caption) + { $this->caption = $caption; } - - public function get_widget_type() { - return 'feature'; + + public function get_widget_type() + { + return 'feature'; } } diff --git a/src/Entities/QuestionTypes/videoplayer_metadata.php b/src/Entities/QuestionTypes/videoplayer_metadata.php index 9b4b9057..d9b2092d 100644 --- a/src/Entities/QuestionTypes/videoplayer_metadata.php +++ b/src/Entities/QuestionTypes/videoplayer_metadata.php @@ -5,35 +5,39 @@ use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** -* This class is auto-generated based on Schemas API and you should not modify its content -* Metadata: {"responses":"v2.84.0","feedback":"v2.71.0","features":"v2.84.0"} -*/ -class videoplayer_metadata extends BaseQuestionTypeAttribute { + * This class is auto-generated based on Schemas API and you should not modify its content + * Metadata: {"responses":"v2.86.0","feedback":"v2.71.0","features":"v2.84.0"} + */ +class videoplayer_metadata extends BaseQuestionTypeAttribute +{ protected $transcript; - - public function __construct( - ) + + public function __construct() { - } + } /** - * Get Transcript \ - * The transcript for the video being played \ - * @return string $transcript \ - */ - public function get_transcript() { + * Get Transcript \ + * The transcript for the video being played \ + * + * @return string $transcript \ + */ + public function get_transcript() + { return $this->transcript; } /** - * Set Transcript \ - * The transcript for the video being played \ - * @param string $transcript \ - */ - public function set_transcript ($transcript) { + * Set Transcript \ + * The transcript for the video being played \ + * + * @param string $transcript \ + */ + public function set_transcript($transcript) + { $this->transcript = $transcript; } - + } From b5ae3c32f55f520b04d08919078977e6c971ce96 Mon Sep 17 00:00:00 2001 From: Stella Lie Date: Mon, 4 Jul 2016 17:05:35 +1000 Subject: [PATCH 2/4] Update with latest QTI SDK version and its fixers. Also added base test mapper support --- composer.json | 2 +- composer.lock | 1007 ++++++++++++++--- src/Config/resources/schemas/activity.json | 30 +- src/Config/resources/schemas/questions.json | 47 +- src/Config/services.yml | 7 +- src/Converter.php | 28 +- src/Processors/Learnosity/In/TestMapper.php | 31 + .../Learnosity/Out/ActivityWriter.php | 22 + src/Processors/QtiV2/In/Constants.php | 5 + .../Interactions/HotspotInteractionMapper.php | 16 +- .../Interactions/OrderInteractionMapper.php | 2 +- .../QtiV2/In/ItemBuilderFactory.php | 3 +- .../In/ItemBuilders/MergedItemBuilder.php | 4 +- .../In/ItemBuilders/RegularItemBuilder.php | 24 +- src/Processors/QtiV2/In/TestMapper.php | 81 ++ .../ChoiceInteractionValidationBuilder.php | 11 +- .../GapMatchInteractionValidationBuilder.php | 8 +- .../MatchInteractionValidationBuilder.php | 8 +- .../LearnosityMarshallerFactory.php | 4 +- .../QtiV2/Out/QuestionTypes/HotspotMapper.php | 11 +- .../ImageclozeassociationMapper.php | 4 +- .../ChoicematrixValidationBuilder.php | 10 +- .../ClozeassociationValidationBuilder.php | 4 +- ...ImageclozeassociationValidationBuilder.php | 4 +- src/Utils/QtiCoordinateUtil.php | 10 +- src/Utils/QtiMarshallerUtil.php | 23 +- src/Utils/StringUtil.php | 10 +- tests/Integration/ConverterTest.php | 1 - .../QuestionTypes/ChoicematrixMapperTest.php | 6 +- .../ClozeassociationMapperTest.php | 4 +- .../Out/QuestionTypes/HotspotMapperTest.php | 12 +- .../ImageclozeassociationMapperTest.php | 4 +- .../In/Fixtures/ChoiceInteractionBuilder.php | 21 - .../Fixtures/GraphicGapInteractionBuilder.php | 8 +- .../GraphicOrderInteractionBuilder.php | 8 +- .../In/Fixtures/HotspotInteractionBuilder.php | 24 +- .../Fixtures/ResponseDeclarationBuilder.php | 4 +- .../In/Interactions/ChoiceInteractionTest.php | 10 +- .../Interactions/GapMatchInteractionTest.php | 31 +- .../GraphicGapMatchInteractionTest.php | 14 +- .../Interactions/HotspotInteractionTest.php | 4 +- .../In/Interactions/MatchInteractionTest.php | 14 +- .../QuestionTypes/ChoicematrixMapperTest.php | 4 +- 43 files changed, 1224 insertions(+), 361 deletions(-) create mode 100644 src/Processors/Learnosity/In/TestMapper.php create mode 100644 src/Processors/Learnosity/Out/ActivityWriter.php create mode 100644 src/Processors/QtiV2/In/TestMapper.php diff --git a/composer.json b/composer.json index 06b69546..505a1a54 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "symfony/dependency-injection": "v2.6.8", "jms/aop-bundle": "1.0.1", "jms/di-extra-bundle": "1.5.0", - "qtism/qtism": "0.9.11" + "qtism/qtism": "dev-master" }, "require-dev": { "phpunit/phpunit": "4.8.4" diff --git a/composer.lock b/composer.lock index 18e717a4..9177111e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "cd034074e1f5427395970ee5859e29a3", - "content-hash": "8ca96e73049f76b056a9da50650d1a08", + "hash": "d57cc5b348062cc7c191d6da6c89ab06", + "content-hash": "35810f8459dbbeca39d36a684a97a584", "packages": [ { "name": "doctrine/annotations", @@ -129,6 +129,48 @@ ], "time": "2014-09-09 13:34:57" }, + { + "name": "ircmaxell/password-compat", + "version": "v1.0.4", + "source": { + "type": "git", + "url": "https://github.com/ircmaxell/password_compat.git", + "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/5c5cde8822a69545767f7c7f3058cb15ff84614c", + "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c", + "shasum": "" + }, + "require-dev": { + "phpunit/phpunit": "4.*" + }, + "type": "library", + "autoload": { + "files": [ + "lib/password.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Anthony Ferrara", + "email": "ircmaxell@php.net", + "homepage": "http://blog.ircmaxell.com" + } + ], + "description": "A compatibility library for the proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password_hash", + "homepage": "https://github.com/ircmaxell/password_compat", + "keywords": [ + "hashing", + "password" + ], + "time": "2014-11-20 16:49:30" + }, { "name": "jms/aop-bundle", "version": "1.0.1", @@ -339,6 +381,54 @@ ], "time": "2014-07-12 07:13:19" }, + { + "name": "paragonie/random_compat", + "version": "v2.0.2", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "088c04e2f261c33bed6ca5245491cfca69195ccf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/088c04e2f261c33bed6ca5245491cfca69195ccf", + "reference": "088c04e2f261c33bed6ca5245491cfca69195ccf", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "autoload": { + "files": [ + "lib/random.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "pseudorandom", + "random" + ], + "time": "2016-04-03 06:00:07" + }, { "name": "psr/log", "version": "1.0.0", @@ -379,28 +469,37 @@ }, { "name": "qtism/qtism", - "version": "0.9.11", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/oat-sa/qti-sdk.git", - "reference": "d5f89dad49d5f5cd0f655919994637b43ae90f9b" + "reference": "0e55ce02f501ec923aa1f825bbc1204e440746b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/oat-sa/qti-sdk/zipball/d5f89dad49d5f5cd0f655919994637b43ae90f9b", - "reference": "d5f89dad49d5f5cd0f655919994637b43ae90f9b", + "url": "https://api.github.com/repos/oat-sa/qti-sdk/zipball/0e55ce02f501ec923aa1f825bbc1204e440746b2", + "reference": "0e55ce02f501ec923aa1f825bbc1204e440746b2", "shasum": "" }, "require": { - "php": ">=5.3.0" + "ext-date": "*", + "ext-dom": "*", + "ext-json": "*", + "ext-mbstring": "*", + "php": ">=5.5", + "wp-cli/php-cli-tools": "0.10.3" }, "require-dev": { - "phpunit/phpunit": ">=3.7.20" + "phpunit/phpunit": ">=3.7.20", + "satooshi/php-coveralls": "dev-master" }, + "bin": [ + "bin/qtisdk" + ], "type": "library", "autoload": { "psr-0": { - "qtism\\": "." + "qtism": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -419,7 +518,7 @@ "role": "Developer" } ], - "description": "OAT QTI Software Module Library", + "description": "OAT QTI-SDK", "homepage": "http://www.taotesting.com", "keywords": [ "CBA", @@ -431,7 +530,7 @@ "QTI", "TAO" ], - "time": "2015-08-05 08:31:10" + "time": "2016-06-22 15:50:45" }, { "name": "symfony/config", @@ -440,12 +539,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "2696c5bc7c31485a482c10865d713de9fcc7aa31" + "reference": "bbab396b1e2466d6dc5b48289b929264ac32e00e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/2696c5bc7c31485a482c10865d713de9fcc7aa31", - "reference": "2696c5bc7c31485a482c10865d713de9fcc7aa31", + "url": "https://api.github.com/repos/symfony/config/zipball/bbab396b1e2466d6dc5b48289b929264ac32e00e", + "reference": "bbab396b1e2466d6dc5b48289b929264ac32e00e", "shasum": "" }, "require": { @@ -486,16 +585,16 @@ }, { "name": "symfony/debug", - "version": "v2.7.5", + "version": "v2.8.7", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "c79c361bca8e5ada6a47603875a3c964d03b67b1" + "reference": "c7d6d8a599e4609a1abc76351d6234a2997e16ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/c79c361bca8e5ada6a47603875a3c964d03b67b1", - "reference": "c79c361bca8e5ada6a47603875a3c964d03b67b1", + "url": "https://api.github.com/repos/symfony/debug/zipball/c7d6d8a599e4609a1abc76351d6234a2997e16ed", + "reference": "c7d6d8a599e4609a1abc76351d6234a2997e16ed", "shasum": "" }, "require": { @@ -506,20 +605,22 @@ "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2" }, "require-dev": { - "symfony/class-loader": "~2.2", - "symfony/http-kernel": "~2.3.24|~2.5.9|~2.6,>=2.6.2", - "symfony/phpunit-bridge": "~2.7" + "symfony/class-loader": "~2.2|~3.0.0", + "symfony/http-kernel": "~2.3.24|~2.5.9|~2.6,>=2.6.2|~3.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Debug\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -537,7 +638,7 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2015-09-14 08:41:38" + "time": "2016-06-06 15:06:25" }, { "name": "symfony/dependency-injection", @@ -602,16 +703,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v2.7.5", + "version": "v2.8.7", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "ae4dcc2a8d3de98bd794167a3ccda1311597c5d9" + "reference": "2a6b8713f8bdb582058cfda463527f195b066110" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ae4dcc2a8d3de98bd794167a3ccda1311597c5d9", - "reference": "ae4dcc2a8d3de98bd794167a3ccda1311597c5d9", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/2a6b8713f8bdb582058cfda463527f195b066110", + "reference": "2a6b8713f8bdb582058cfda463527f195b066110", "shasum": "" }, "require": { @@ -619,11 +720,10 @@ }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~2.0,>=2.0.5", - "symfony/dependency-injection": "~2.6", - "symfony/expression-language": "~2.6", - "symfony/phpunit-bridge": "~2.7", - "symfony/stopwatch": "~2.3" + "symfony/config": "~2.0,>=2.0.5|~3.0.0", + "symfony/dependency-injection": "~2.6|~3.0.0", + "symfony/expression-language": "~2.6|~3.0.0", + "symfony/stopwatch": "~2.3|~3.0.0" }, "suggest": { "symfony/dependency-injection": "", @@ -632,13 +732,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\EventDispatcher\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -656,38 +759,38 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2015-09-22 13:49:29" + "time": "2016-06-06 11:11:27" }, { "name": "symfony/filesystem", - "version": "v2.7.5", + "version": "v2.8.7", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "a17f8a17c20e8614c15b8e116e2f4bcde102cfab" + "reference": "dee379131dceed90a429e951546b33edfe7dccbb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/a17f8a17c20e8614c15b8e116e2f4bcde102cfab", - "reference": "a17f8a17c20e8614c15b8e116e2f4bcde102cfab", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/dee379131dceed90a429e951546b33edfe7dccbb", + "reference": "dee379131dceed90a429e951546b33edfe7dccbb", "shasum": "" }, "require": { "php": ">=5.3.9" }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7" - }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Filesystem\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -705,7 +808,7 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2015-09-09 17:42:36" + "time": "2016-04-12 18:01:21" }, { "name": "symfony/finder", @@ -758,17 +861,17 @@ }, { "name": "symfony/framework-bundle", - "version": "v2.6.11", + "version": "v2.6.13", "target-dir": "Symfony/Bundle/FrameworkBundle", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "df5462c60ada7f967b0696382236ded914f4a17f" + "reference": "b2ea3d3304b11db5e6b846e1329c6b4349c4e7d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/df5462c60ada7f967b0696382236ded914f4a17f", - "reference": "df5462c60ada7f967b0696382236ded914f4a17f", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/b2ea3d3304b11db5e6b846e1329c6b4349c4e7d8", + "reference": "b2ea3d3304b11db5e6b846e1329c6b4349c4e7d8", "shasum": "" }, "require": { @@ -842,37 +945,39 @@ }, { "name": "symfony/http-foundation", - "version": "v2.7.5", + "version": "v2.8.7", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "e1509119f164a0d0a940d7d924d693a7a28a5470" + "reference": "744dae663ffcfa21d8a111fb63541954199acbb2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/e1509119f164a0d0a940d7d924d693a7a28a5470", - "reference": "e1509119f164a0d0a940d7d924d693a7a28a5470", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/744dae663ffcfa21d8a111fb63541954199acbb2", + "reference": "744dae663ffcfa21d8a111fb63541954199acbb2", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.3.9", + "symfony/polyfill-mbstring": "~1.1", + "symfony/polyfill-php54": "~1.0", + "symfony/polyfill-php55": "~1.0" }, "require-dev": { - "symfony/expression-language": "~2.4", - "symfony/phpunit-bridge": "~2.7" + "symfony/expression-language": "~2.4|~3.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\HttpFoundation\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -891,21 +996,21 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2015-09-22 13:49:29" + "time": "2016-06-06 11:11:27" }, { "name": "symfony/http-kernel", - "version": "v2.6.11", + "version": "v2.6.13", "target-dir": "Symfony/Component/HttpKernel", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "a3f0ed713255c0400a2db38b3ed01989ef4b7322" + "reference": "cdd991d304fed833514dc44d6aafcf19397c26cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/a3f0ed713255c0400a2db38b3ed01989ef4b7322", - "reference": "a3f0ed713255c0400a2db38b3ed01989ef4b7322", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/cdd991d304fed833514dc44d6aafcf19397c26cb", + "reference": "cdd991d304fed833514dc44d6aafcf19397c26cb", "shasum": "" }, "require": { @@ -969,38 +1074,378 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2015-07-26 10:44:22" + "time": "2016-01-14 10:11:16" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "dff51f72b0706335131b00a7f49606168c582594" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/dff51f72b0706335131b00a7f49606168c582594", + "reference": "dff51f72b0706335131b00a7f49606168c582594", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2016-05-18 14:26:46" + }, + { + "name": "symfony/polyfill-php54", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php54.git", + "reference": "34d761992f6f2cc6092cc0e5e93f38b53ba5e4f1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/34d761992f6f2cc6092cc0e5e93f38b53ba5e4f1", + "reference": "34d761992f6f2cc6092cc0e5e93f38b53ba5e4f1", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php54\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2016-05-18 14:26:46" + }, + { + "name": "symfony/polyfill-php55", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php55.git", + "reference": "bf2ff9ad6be1a4772cb873e4eea94d70daa95c6d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php55/zipball/bf2ff9ad6be1a4772cb873e4eea94d70daa95c6d", + "reference": "bf2ff9ad6be1a4772cb873e4eea94d70daa95c6d", + "shasum": "" + }, + "require": { + "ircmaxell/password-compat": "~1.0", + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php55\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2016-05-18 14:26:46" + }, + { + "name": "symfony/polyfill-php56", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php56.git", + "reference": "3edf57a8fbf9a927533344cef65ad7e1cf31030a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/3edf57a8fbf9a927533344cef65ad7e1cf31030a", + "reference": "3edf57a8fbf9a927533344cef65ad7e1cf31030a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/polyfill-util": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php56\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2016-05-18 14:26:46" + }, + { + "name": "symfony/polyfill-php70", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php70.git", + "reference": "a42f4b6b05ed458910f8af4c4e1121b0101b2d85" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/a42f4b6b05ed458910f8af4c4e1121b0101b2d85", + "reference": "a42f4b6b05ed458910f8af4c4e1121b0101b2d85", + "shasum": "" + }, + "require": { + "paragonie/random_compat": "~1.0|~2.0", + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php70\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2016-05-18 14:26:46" + }, + { + "name": "symfony/polyfill-util", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-util.git", + "reference": "ef830ce3d218e622b221d6bfad42c751d974bf99" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/ef830ce3d218e622b221d6bfad42c751d974bf99", + "reference": "ef830ce3d218e622b221d6bfad42c751d974bf99", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Util\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony utilities for portability of PHP codes", + "homepage": "https://symfony.com", + "keywords": [ + "compat", + "compatibility", + "polyfill", + "shim" + ], + "time": "2016-05-18 14:26:46" }, { "name": "symfony/process", - "version": "v2.7.5", + "version": "v2.8.7", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "b27c8e317922cd3cdd3600850273cf6b82b2e8e9" + "reference": "115347d00c342198cdc52a7bd8bc15b5ab43500c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/b27c8e317922cd3cdd3600850273cf6b82b2e8e9", - "reference": "b27c8e317922cd3cdd3600850273cf6b82b2e8e9", + "url": "https://api.github.com/repos/symfony/process/zipball/115347d00c342198cdc52a7bd8bc15b5ab43500c", + "reference": "115347d00c342198cdc52a7bd8bc15b5ab43500c", "shasum": "" }, "require": { "php": ">=5.3.9" }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7" - }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Process\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1018,20 +1463,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2015-09-19 19:59:23" + "time": "2016-06-06 11:11:27" }, { "name": "symfony/routing", - "version": "v2.6.11", + "version": "v2.6.13", "target-dir": "Symfony/Component/Routing", "source": { "type": "git", - "url": "https://github.com/symfony/Routing.git", + "url": "https://github.com/symfony/routing.git", "reference": "0a1764d41bbb54f3864808c50569ac382b44d128" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Routing/zipball/0a1764d41bbb54f3864808c50569ac382b44d128", + "url": "https://api.github.com/repos/symfony/routing/zipball/0a1764d41bbb54f3864808c50569ac382b44d128", "reference": "0a1764d41bbb54f3864808c50569ac382b44d128", "shasum": "" }, @@ -1091,48 +1536,53 @@ }, { "name": "symfony/security-core", - "version": "v2.7.5", + "version": "v2.8.7", "source": { "type": "git", "url": "https://github.com/symfony/security-core.git", - "reference": "81dbe6f2118d33192500e83d0eef172e8b2f667f" + "reference": "2e9c6248735ef5a6746299a611346283dbcfd041" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-core/zipball/81dbe6f2118d33192500e83d0eef172e8b2f667f", - "reference": "81dbe6f2118d33192500e83d0eef172e8b2f667f", + "url": "https://api.github.com/repos/symfony/security-core/zipball/2e9c6248735ef5a6746299a611346283dbcfd041", + "reference": "2e9c6248735ef5a6746299a611346283dbcfd041", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.3.9", + "symfony/polyfill-php55": "~1.0", + "symfony/polyfill-php56": "~1.0", + "symfony/polyfill-php70": "~1.0", + "symfony/polyfill-util": "~1.0" }, "require-dev": { - "ircmaxell/password-compat": "1.0.*", "psr/log": "~1.0", - "symfony/event-dispatcher": "~2.1", - "symfony/expression-language": "~2.6", - "symfony/http-foundation": "~2.4", - "symfony/phpunit-bridge": "~2.7", - "symfony/translation": "~2.0,>=2.0.5", - "symfony/validator": "~2.5,>=2.5.5" + "symfony/event-dispatcher": "~2.1|~3.0.0", + "symfony/expression-language": "~2.6|~3.0.0", + "symfony/http-foundation": "~2.4|~3.0.0", + "symfony/ldap": "~2.8|~3.0.0", + "symfony/validator": "~2.5,>=2.5.9|~3.0.0" }, "suggest": { - "ircmaxell/password-compat": "For using the BCrypt password encoder in PHP <5.5", "symfony/event-dispatcher": "", "symfony/expression-language": "For using the expression voter", "symfony/http-foundation": "", + "symfony/ldap": "For using LDAP integration", "symfony/validator": "For using the user password constraint" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Security\\Core\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1150,29 +1600,30 @@ ], "description": "Symfony Security Component - Core Library", "homepage": "https://symfony.com", - "time": "2015-09-25 06:52:54" + "time": "2016-05-09 19:34:47" }, { "name": "symfony/security-csrf", - "version": "v2.7.5", + "version": "v2.8.7", "source": { "type": "git", "url": "https://github.com/symfony/security-csrf.git", - "reference": "238d6aea56008bfeae16cb9703d52b123582288b" + "reference": "817f35960621fdf3e29ce557cfcb70d3dae903c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-csrf/zipball/238d6aea56008bfeae16cb9703d52b123582288b", - "reference": "238d6aea56008bfeae16cb9703d52b123582288b", + "url": "https://api.github.com/repos/symfony/security-csrf/zipball/817f35960621fdf3e29ce557cfcb70d3dae903c9", + "reference": "817f35960621fdf3e29ce557cfcb70d3dae903c9", "shasum": "" }, "require": { "php": ">=5.3.9", - "symfony/security-core": "~2.4" + "symfony/polyfill-php56": "~1.0", + "symfony/polyfill-php70": "~1.0", + "symfony/security-core": "~2.4|~3.0.0" }, "require-dev": { - "symfony/http-foundation": "~2.1", - "symfony/phpunit-bridge": "~2.7" + "symfony/http-foundation": "~2.1|~3.0.0" }, "suggest": { "symfony/http-foundation": "For using the class SessionTokenStorage." @@ -1180,13 +1631,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Security\\Csrf\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1204,38 +1658,38 @@ ], "description": "Symfony Security Component - CSRF Library", "homepage": "https://symfony.com", - "time": "2015-08-24 07:13:45" + "time": "2016-03-07 14:04:32" }, { "name": "symfony/stopwatch", - "version": "v2.7.5", + "version": "v2.8.7", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "08dd97b3f22ab9ee658cd16e6758f8c3c404336e" + "reference": "5e628055488bcc42dbace3af65be435d094e37e4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/08dd97b3f22ab9ee658cd16e6758f8c3c404336e", - "reference": "08dd97b3f22ab9ee658cd16e6758f8c3c404336e", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/5e628055488bcc42dbace3af65be435d094e37e4", + "reference": "5e628055488bcc42dbace3af65be435d094e37e4", "shasum": "" }, "require": { "php": ">=5.3.9" }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7" - }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Stopwatch\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1253,28 +1707,27 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2015-09-22 13:49:29" + "time": "2016-06-06 11:11:27" }, { "name": "symfony/templating", - "version": "v2.7.5", + "version": "v2.8.7", "source": { "type": "git", "url": "https://github.com/symfony/templating.git", - "reference": "cb1b7421c53642bc515bc10caa81cc097775d6a1" + "reference": "9a3eb3202f6d2feab53e77b97e3ed10c339972d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/templating/zipball/cb1b7421c53642bc515bc10caa81cc097775d6a1", - "reference": "cb1b7421c53642bc515bc10caa81cc097775d6a1", + "url": "https://api.github.com/repos/symfony/templating/zipball/9a3eb3202f6d2feab53e77b97e3ed10c339972d7", + "reference": "9a3eb3202f6d2feab53e77b97e3ed10c339972d7", "shasum": "" }, "require": { "php": ">=5.3.9" }, "require-dev": { - "psr/log": "~1.0", - "symfony/phpunit-bridge": "~2.7" + "psr/log": "~1.0" }, "suggest": { "psr/log": "For using debug logging in loaders" @@ -1282,13 +1735,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Templating\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1306,20 +1762,20 @@ ], "description": "Symfony Templating Component", "homepage": "https://symfony.com", - "time": "2015-08-30 11:26:29" + "time": "2016-03-27 09:27:49" }, { "name": "symfony/translation", - "version": "v2.6.11", + "version": "v2.6.13", "target-dir": "Symfony/Component/Translation", "source": { "type": "git", - "url": "https://github.com/symfony/Translation.git", + "url": "https://github.com/symfony/translation.git", "reference": "d84291215b5892834dd8ca8ee52f9cbdb8274904" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Translation/zipball/d84291215b5892834dd8ca8ee52f9cbdb8274904", + "url": "https://api.github.com/repos/symfony/translation/zipball/d84291215b5892834dd8ca8ee52f9cbdb8274904", "reference": "d84291215b5892834dd8ca8ee52f9cbdb8274904", "shasum": "" }, @@ -1525,6 +1981,56 @@ "templating" ], "time": "2015-06-06 23:31:24" + }, + { + "name": "wp-cli/php-cli-tools", + "version": "v0.10.3", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/php-cli-tools.git", + "reference": "edead860cb60e95ebdad965ab21e4a1dad7e6b6e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/edead860cb60e95ebdad965ab21e4a1dad7e6b6e", + "reference": "edead860cb60e95ebdad965ab21e4a1dad7e6b6e", + "shasum": "" + }, + "require": { + "php": ">= 5.3.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "cli": "lib/" + }, + "files": [ + "lib/cli/cli.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "James Logsdon", + "email": "jlogsdon@php.net", + "role": "Developer" + }, + { + "name": "Daniel Bachhuber", + "email": "daniel@handbuilt.co", + "role": "Maintainer" + } + ], + "description": "Console utilities for PHP", + "homepage": "http://github.com/wp-cli/php-cli-tools", + "keywords": [ + "cli", + "console" + ], + "time": "2014-12-03 15:45:28" } ], "packages-dev": [ @@ -1582,39 +2088,136 @@ ], "time": "2015-06-14 21:17:01" }, + { + "name": "phpdocumentor/reflection-common", + "version": "1.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2015-12-27 11:43:31" + }, { "name": "phpdocumentor/reflection-docblock", - "version": "2.0.4", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8" + "reference": "45ada3e3fd09789fbfbd6d65b3f0901f0030dc61" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/45ada3e3fd09789fbfbd6d65b3f0901f0030dc61", + "reference": "45ada3e3fd09789fbfbd6d65b3f0901f0030dc61", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/type-resolver": "^0.1.5", + "webmozart/assert": "^1.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.4" }, - "suggest": { - "dflydev/markdown": "~1.0", - "erusev/parsedown": "~1.0" + "type": "library", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2016-06-06 06:44:13" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.1.8", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "9891754231e55d42f0d16988ffb799af39f31a12" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9891754231e55d42f0d16988ffb799af39f31a12", + "reference": "9891754231e55d42f0d16988ffb799af39f31a12", + "shasum": "" + }, + "require": { + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "psr-0": { - "phpDocumentor": [ + "psr-4": { + "phpDocumentor\\Reflection\\": [ "src/" ] } @@ -1626,37 +2229,39 @@ "authors": [ { "name": "Mike van Riel", - "email": "mike.vanriel@naenius.com" + "email": "me@mikevanriel.com" } ], - "time": "2015-02-03 12:10:50" + "time": "2016-03-28 10:02:29" }, { "name": "phpspec/prophecy", - "version": "v1.5.0", + "version": "v1.6.1", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7" + "reference": "58a8137754bc24b25740d4281399a4a3596058e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4745ded9307786b730d7a60df5cb5a6c43cf95f7", - "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/58a8137754bc24b25740d4281399a4a3596058e0", + "reference": "58a8137754bc24b25740d4281399a4a3596058e0", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", - "phpdocumentor/reflection-docblock": "~2.0", - "sebastian/comparator": "~1.1" + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", + "sebastian/comparator": "^1.1", + "sebastian/recursion-context": "^1.0" }, "require-dev": { - "phpspec/phpspec": "~2.0" + "phpspec/phpspec": "^2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4.x-dev" + "dev-master": "1.6.x-dev" } }, "autoload": { @@ -1689,7 +2294,7 @@ "spy", "stub" ], - "time": "2015-08-13 10:07:40" + "time": "2016-06-07 08:13:47" }, { "name": "phpunit/php-code-coverage", @@ -1843,21 +2448,24 @@ }, { "name": "phpunit/php-timer", - "version": "1.0.7", + "version": "1.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b" + "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b", - "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/38e9124049cf1a164f1e4537caf19c99bf1eb260", + "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260", "shasum": "" }, "require": { "php": ">=5.3.3" }, + "require-dev": { + "phpunit/phpunit": "~4|~5" + }, "type": "library", "autoload": { "classmap": [ @@ -1880,7 +2488,7 @@ "keywords": [ "timer" ], - "time": "2015-06-21 08:01:12" + "time": "2016-05-12 18:03:57" }, { "name": "phpunit/php-token-stream", @@ -2125,28 +2733,28 @@ }, { "name": "sebastian/diff", - "version": "1.3.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3" + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/863df9687835c62aa423a22412d26fa2ebde3fd3", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e", + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e", "shasum": "" }, "require": { "php": ">=5.3.3" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "phpunit/phpunit": "~4.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -2169,24 +2777,24 @@ } ], "description": "Diff implementation", - "homepage": "http://www.github.com/sebastianbergmann/diff", + "homepage": "https://github.com/sebastianbergmann/diff", "keywords": [ "diff" ], - "time": "2015-02-22 15:13:53" + "time": "2015-12-08 07:14:41" }, { "name": "sebastian/environment", - "version": "1.3.2", + "version": "1.3.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44" + "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6324c907ce7a52478eeeaede764f48733ef5ae44", - "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/4e8f0da10ac5802913afc151413bc8c53b6c2716", + "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716", "shasum": "" }, "require": { @@ -2223,7 +2831,7 @@ "environment", "hhvm" ], - "time": "2015-08-03 06:14:51" + "time": "2016-05-17 03:18:57" }, { "name": "sebastian/exporter", @@ -2344,16 +2952,16 @@ }, { "name": "sebastian/recursion-context", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "994d4a811bafe801fb06dccbee797863ba2792ba" + "reference": "913401df809e99e4f47b27cdd781f4a258d58791" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/994d4a811bafe801fb06dccbee797863ba2792ba", - "reference": "994d4a811bafe801fb06dccbee797863ba2792ba", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/913401df809e99e4f47b27cdd781f4a258d58791", + "reference": "913401df809e99e4f47b27cdd781f4a258d58791", "shasum": "" }, "require": { @@ -2393,7 +3001,7 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2015-06-21 08:04:50" + "time": "2015-11-11 19:50:13" }, { "name": "sebastian/version", @@ -2429,11 +3037,62 @@ "description": "Library that helps with managing the version number of Git-hosted PHP projects", "homepage": "https://github.com/sebastianbergmann/version", "time": "2015-06-21 13:59:46" + }, + { + "name": "webmozart/assert", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/webmozart/assert.git", + "reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/assert/zipball/30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde", + "reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2015-08-24 13:29:44" } ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "qtism/qtism": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/src/Config/resources/schemas/activity.json b/src/Config/resources/schemas/activity.json index 5911d0a9..df268b4e 100644 --- a/src/Config/resources/schemas/activity.json +++ b/src/Config/resources/schemas/activity.json @@ -10,12 +10,34 @@ "required": false, "type": "string" }, - "items": { - "required": false, - "type": "array" - }, "data": { "attributes": { + "sections": { + "required": false, + "type": "array", + "items": { + "attributes": { + "items": { + "required": false, + "type": "array" + }, + "config": { + "required": false, + "type": "object", + "attributes": { + "subtitle": { + "required": false, + "type": "string" + } + } + } + } + } + }, + "items": { + "required": false, + "type": "array" + }, "config": { "attributes": { "ui_style": { diff --git a/src/Config/resources/schemas/questions.json b/src/Config/resources/schemas/questions.json index 2f993a03..be7c7575 100644 --- a/src/Config/resources/schemas/questions.json +++ b/src/Config/resources/schemas/questions.json @@ -1,10 +1,10 @@ { "meta": { "status": true, - "timestamp": 1462889409, + "timestamp": 1465443048, "request_version": "", "schema_version": { - "responses": "v2.84.0", + "responses": "v2.86.0", "feedback": "v2.71.0", "features": "v2.84.0" }, @@ -15197,7 +15197,7 @@ "ticks_distance": { "default": 1, "description": "The distance between the ticks displayed in the axis", - "min": 1, + "min": 0, "name": "Ticks distance", "required": true, "type": "number" @@ -15273,7 +15273,7 @@ "ticks_distance": { "default": 1, "description": "The distance between the ticks displayed in the axis", - "min": 1, + "min": 0, "name": "Ticks distance", "required": true, "type": "number" @@ -15398,7 +15398,7 @@ "attributes": { "x_distance": { "description": "Distance between grid lines perpendicular to the X axis", - "min": 1, + "min": 0, "name": "x_distance", "required": true, "default": 1, @@ -15406,7 +15406,7 @@ }, "y_distance": { "description": "Distance between grid lines perpendicular to the Y axis", - "min": 1, + "min": 0, "name": "y_distance", "required": true, "default": 1, @@ -16041,6 +16041,41 @@ "name": "Valid response", "required": true, "type": "object" + }, + "alt_responses": { + "description": "An array of alternate response objects used for giving a supplementary value if the question was not valid", + "items": { + "attributes": { + "score": { + "default": 1, + "description": "Score for this alternate response.", + "min": 0, + "name": "Score", + "required": true, + "type": "number" + }, + "value": { + "name": "Value", + "type": "array", + "required": true, + "description": "An array containing a single valid response or many if multiple_responses is true.", + "items": { + "name": "Valid hotspot", + "type": "string", + "element": "select", + "options": { + "dependency": "areas" + } + } + } + }, + "required": false, + "type": "object", + "name": "Alternate response" + }, + "name": "Alternate responses", + "required": false, + "type": "array" } }, "conditional_attributes": { diff --git a/src/Config/services.yml b/src/Config/services.yml index 3433222b..37a11e46 100644 --- a/src/Config/services.yml +++ b/src/Config/services.yml @@ -14,11 +14,14 @@ services: arguments: ["@item_builder_factory"] scope: prototype qtiv2_test_mapper: - class: LearnosityQti\Processors\QtiV2\In\TestMapper - scope: prototype + class: LearnosityQti\Processors\QtiV2\In\TestMapper + scope: prototype learnosity_item_writer: class: LearnosityQti\Processors\Learnosity\Out\ItemWriter scope: prototype + learnosity_activity_writer: + class: LearnosityQti\Processors\Learnosity\Out\ActivityWriter + scope: prototype learnosity_question_writer: class: LearnosityQti\Processors\Learnosity\Out\QuestionWriter scope: prototype diff --git a/src/Converter.php b/src/Converter.php index e760b7b7..0397692b 100644 --- a/src/Converter.php +++ b/src/Converter.php @@ -10,6 +10,7 @@ use LearnosityQti\Processors\IMSCP\Out\ManifestWriter; use LearnosityQti\Processors\Learnosity\In\ItemMapper; use LearnosityQti\Processors\Learnosity\In\QuestionMapper; +use LearnosityQti\Processors\QtiV2\In\TestMapper; use LearnosityQti\Processors\QtiV2\Out\ItemWriter; use LearnosityQti\Processors\QtiV2\Out\QuestionWriter; use LearnosityQti\Services\LearnosityToQtiPreProcessingService; @@ -118,13 +119,34 @@ public static function convertQtiManifestToLearnosity($xmlString, array $rules = } } + public static function convertQtiTestToLearnosity($xmlString, $validate = true) + { + $testMapper = AppContainer::getApplicationContainer()->get('qtiv2_test_mapper'); + $activityWriter = AppContainer::getApplicationContainer()->get('learnosity_activity_writer'); + + try { + /** @var TestMapper $testMapper */ + list($activity, $exceptions) = $testMapper->parse($xmlString, $validate); + } catch (XmlStorageException $e) { + // Check invalid schema error message and intercept to rethrow as known `InvalidQtiException` exception + $exceptionMessage = $e->getMessage(); + if (StringUtil::startsWith($exceptionMessage, 'The document could not be validated with schema')) { + $exceptionMessage = preg_replace('/The document could not be validated with schema(.*)/', 'The document could not be validated with standard QTI schema: ', $exceptionMessage); + throw new InvalidQtiException($exceptionMessage); + } else { + throw $e; + } + } + + $activityData = $activityWriter->convert($activity); + return [$activityData, $exceptions]; + } + public static function convertQtiItemToLearnosity($xmlString, $baseAssetsUrl = '', $validate = true) { $itemMapper = AppContainer::getApplicationContainer()->get('qtiv2_item_mapper'); $itemWriter = AppContainer::getApplicationContainer()->get('learnosity_item_writer'); $questionWriter = AppContainer::getApplicationContainer()->get('learnosity_question_writer'); - $assetsProcessing = AppContainer::getApplicationContainer()->get('assets_processing'); - $assetsProcessing->setBaseAssetUrl($baseAssetsUrl); // Parse `em try { @@ -132,7 +154,7 @@ public static function convertQtiItemToLearnosity($xmlString, $baseAssetsUrl = ' } catch (XmlStorageException $e) { // Check invalid schema error message and intercept to rethrow as known `InvalidQtiException` exception $exceptionMessage = $e->getMessage(); - if (StringUtil::startsWith($exceptionMessage, 'The document could not be validated with schema')) { + if (StringUtil::startsWith($exceptionMessage, 'The document could not be validated with XML Schema')) { $exceptionMessage = preg_replace('/The document could not be validated with schema(.*)/', 'The document could not be validated with standard QTI schema: ', $exceptionMessage); throw new InvalidQtiException($exceptionMessage); } else { diff --git a/src/Processors/Learnosity/In/TestMapper.php b/src/Processors/Learnosity/In/TestMapper.php new file mode 100644 index 00000000..cb208092 --- /dev/null +++ b/src/Processors/Learnosity/In/TestMapper.php @@ -0,0 +1,31 @@ + UuidUtil::generate(), + 'data' => $questionDataJson + ]; + return $this->parse($questionJson); + } +} diff --git a/src/Processors/Learnosity/Out/ActivityWriter.php b/src/Processors/Learnosity/Out/ActivityWriter.php new file mode 100644 index 00000000..caa9d5cc --- /dev/null +++ b/src/Processors/Learnosity/Out/ActivityWriter.php @@ -0,0 +1,22 @@ +to_array(); + + // Check whether `items` empty or not first + if (!empty($json['items'])) { + unset($json['sections']); + } else { + unset($json['items']); + } + + return $json; + } +} diff --git a/src/Processors/QtiV2/In/Constants.php b/src/Processors/QtiV2/In/Constants.php index 55f745d7..324ac8f7 100644 --- a/src/Processors/QtiV2/In/Constants.php +++ b/src/Processors/QtiV2/In/Constants.php @@ -16,4 +16,9 @@ class Constants 'graphicGapMatchInteraction', 'hotspotInteraction' ]; + + public static $needMergeInteractionTypes = [ + 'textEntryInteraction', + 'inlineChoiceInteraction' + ]; } diff --git a/src/Processors/QtiV2/In/Interactions/HotspotInteractionMapper.php b/src/Processors/QtiV2/In/Interactions/HotspotInteractionMapper.php index f007be71..4f53f009 100644 --- a/src/Processors/QtiV2/In/Interactions/HotspotInteractionMapper.php +++ b/src/Processors/QtiV2/In/Interactions/HotspotInteractionMapper.php @@ -10,8 +10,8 @@ use LearnosityQti\Processors\QtiV2\In\Validation\HotspotInteractionValidationBuilder; use LearnosityQti\Services\LogService; use LearnosityQti\Utils\QtiMarshallerUtil; -use qtism\common\datatypes\Coords; -use qtism\common\datatypes\Shape; +use qtism\common\datatypes\QtiCoords; +use qtism\common\datatypes\QtiShape; use qtism\data\content\interactions\HotspotChoice; use qtism\data\content\interactions\HotspotChoiceCollection; use qtism\data\content\interactions\HotspotInteraction; @@ -103,7 +103,7 @@ private function buildAreas(HotspotChoiceCollection $hotspotChoices, Object $ima foreach ($hotspotChoices as $key => $choice) { // Store unsupported shapes so later on we can inform that we are not supporting them $shape = $choice->getShape(); - if ($shape != Shape::RECT || $choice->getClass() != Shape::POLY) { + if ($shape != QtiShape::RECT || $choice->getClass() != QtiShape::POLY) { if (in_array($shape, $unsupportedShapes)) { $unsupportedShapes[] = $shape; } @@ -114,7 +114,7 @@ private function buildAreas(HotspotChoiceCollection $hotspotChoices, Object $ima return $areas; } - private function transformCoordinates(Coords $coords, $shape, Object $imageObject) + private function transformCoordinates(QtiCoords $coords, $shape, Object $imageObject) { $width = $imageObject->getWidth(); $height = $imageObject->getHeight(); @@ -122,7 +122,7 @@ private function transformCoordinates(Coords $coords, $shape, Object $imageObjec $coords = explode(',', $coords); switch ($shape) { // rect: left-x, top-y, right-x, bottom-y. - case Shape::RECT: + case QtiShape::RECT: $leftX = round($coords[0] / $width * 100, 2); $topY = round($coords[1] / $height * 100, 2); $rightX = round($coords[2] / $width * 100, 2); @@ -134,7 +134,7 @@ private function transformCoordinates(Coords $coords, $shape, Object $imageObjec ['x' => $leftX, 'y' => $bottomY], // Bottom left ]; return $result; - case Shape::CIRCLE: + case QtiShape::CIRCLE: // circle: center-x, center-y, radius. Note. When the radius value is a percentage value, user agents // should calculate the final radius value based on the associated object's width and height. The radius should be the smaller value of the two. LogService::log('Unable to map QTI `circle` Shape. Mapping it as `rect` instead'); @@ -150,7 +150,7 @@ private function transformCoordinates(Coords $coords, $shape, Object $imageObjec ['x' => $leftX, 'y' => $bottomY], // Bottom left (-radius, -radius) ]; return $result; - case Shape::POLY: + case QtiShape::POLY: // poly: x1, y1, x2, y2, ..., xN, yN. The first x and y coordinate pair and the last should be the same to close the polygon. // When these coordinate values are not the same, user agents should infer an additional coordinate pair to close the polygon. $result = []; @@ -158,7 +158,7 @@ private function transformCoordinates(Coords $coords, $shape, Object $imageObjec $result[] = ['x' => round($coords[$i] / $width * 100, 2), 'y' => round($coords[$i + 1] / $height * 100, 2)]; } return $result; - case Shape::ELLIPSE: + case QtiShape::ELLIPSE: default: LogService::log('Unsupported QTI Shape mapping conversion. Area mapping conversion is ignored'); return []; diff --git a/src/Processors/QtiV2/In/Interactions/OrderInteractionMapper.php b/src/Processors/QtiV2/In/Interactions/OrderInteractionMapper.php index 1db376f5..109cfd6b 100644 --- a/src/Processors/QtiV2/In/Interactions/OrderInteractionMapper.php +++ b/src/Processors/QtiV2/In/Interactions/OrderInteractionMapper.php @@ -48,7 +48,7 @@ private function validate(QtiOrderInteraction $interaction) foreach ($interaction->getSimpleChoices() as $simpleChoice) { /** @var SimpleChoice $simpleChoice */ if ($simpleChoice->isFixed()) { - LogService::log('Attribute `fixed` for ' . $simpleChoice->getIdentifier() . 'is not supported'); + LogService::log('Attribute `fixed` for ' . $simpleChoice->getIdentifier() . ' is not supported'); } } return true; diff --git a/src/Processors/QtiV2/In/ItemBuilderFactory.php b/src/Processors/QtiV2/In/ItemBuilderFactory.php index 4788de54..d61354c9 100644 --- a/src/Processors/QtiV2/In/ItemBuilderFactory.php +++ b/src/Processors/QtiV2/In/ItemBuilderFactory.php @@ -11,9 +11,8 @@ class ItemBuilderFactory { public function getItemBuilder(QtiComponentCollection $interactionComponents) { - $possibleMergedInteractionTypes = ['textEntryInteraction', 'inlineChoiceInteraction']; $interactionTypes = self::getUniqueInteractionTypes($interactionComponents); - if (count($interactionTypes) === 1 && in_array($interactionTypes[0], $possibleMergedInteractionTypes)) { + if (count($interactionTypes) === 1 && in_array($interactionTypes[0], Constants::$needMergeInteractionTypes)) { return new MergedItemBuilder(); } return new RegularItemBuilder(); diff --git a/src/Processors/QtiV2/In/ItemBuilders/MergedItemBuilder.php b/src/Processors/QtiV2/In/ItemBuilders/MergedItemBuilder.php index 875840f3..b8062c27 100644 --- a/src/Processors/QtiV2/In/ItemBuilders/MergedItemBuilder.php +++ b/src/Processors/QtiV2/In/ItemBuilders/MergedItemBuilder.php @@ -4,6 +4,7 @@ use LearnosityQti\Entities\BaseQuestionType; use LearnosityQti\Entities\Question; +use LearnosityQti\Processors\QtiV2\In\Constants; use LearnosityQti\Processors\QtiV2\In\MergedInteractions\AbstractMergedInteractionMapper; use LearnosityQti\Processors\QtiV2\In\ResponseProcessingTemplate; use qtism\data\content\interactions\Interaction; @@ -63,9 +64,8 @@ protected function getMergedInteractionType(QtiComponentCollection $interactionC /* @var $component Interaction */ return $component->getQtiClassName(); }, $interactionComponents->getArrayCopy())); - $possibleMergedInteractionTypes = ['textEntryInteraction', 'inlineChoiceInteraction']; - if (count($interactionTypes) === 1 && in_array($interactionTypes[0], $possibleMergedInteractionTypes)) { + if (count($interactionTypes) === 1 && in_array($interactionTypes[0], Constants::$needMergeInteractionTypes)) { return $interactionTypes[0]; } else { return false; diff --git a/src/Processors/QtiV2/In/ItemBuilders/RegularItemBuilder.php b/src/Processors/QtiV2/In/ItemBuilders/RegularItemBuilder.php index 99f831a3..989ea757 100644 --- a/src/Processors/QtiV2/In/ItemBuilders/RegularItemBuilder.php +++ b/src/Processors/QtiV2/In/ItemBuilders/RegularItemBuilder.php @@ -7,6 +7,7 @@ use LearnosityQti\Processors\QtiV2\In\ResponseProcessingTemplate; use LearnosityQti\Utils\QtiMarshallerUtil; use LearnosityQti\Services\LogService; +use LearnosityQti\Utils\SimpleHtmlDom\SimpleHtmlDom; use qtism\data\content\interactions\Interaction; use qtism\data\content\ItemBody; use qtism\data\QtiComponentCollection; @@ -50,17 +51,30 @@ public function map( $question = $mapper->getQuestionType(); $this->questions[$questionReference] = new Question($question->get_type(), $questionReference, $question); - $questionsXmls[$questionReference] = QtiMarshallerUtil::marshall($component); + $questionsXmls[$questionReference] = [ + 'qtiClassName' => $component->getQtiClassName(), + 'responseIdentifier' => $component->getResponseIdentifier() + ]; } // Build item's HTML content - $extraContent = QtiMarshallerUtil::marshallCollection($itemBody->getComponents()); - foreach ($questionsXmls as $questionReference => $interactionXml) { + $extraContentHtml = new SimpleHtmlDom(); + if (!$extraContentHtml->load(QtiMarshallerUtil::marshallCollection($itemBody->getComponents()), false)) { + throw new \Exception('Issues with the content for itemBody, it might not be valid'); + } + + foreach ($questionsXmls as $questionReference => $interactionData) { // Append this question span to our `item` content as it is $this->content .= ''; - // Store extra html content since we now has to slug it in into question stimulus - $extraContent = str_replace($interactionXml, '', $extraContent); + // Clean up interaction HTML content + $qtiClassName = $interactionData['qtiClassName']; + $responseIdentifier = $interactionData['responseIdentifier']; + $toFind = $qtiClassName . '[responseIdentifier="' . $responseIdentifier. '"]'; + foreach ($extraContentHtml->find($toFind) as &$tag) { + $tag->outertext = ''; + } } + $extraContent = $extraContentHtml->save(); // Making assumption question always has stimulus `right`? // So, prepend the extra content on the stimulus on the first question diff --git a/src/Processors/QtiV2/In/TestMapper.php b/src/Processors/QtiV2/In/TestMapper.php new file mode 100644 index 00000000..999d7c47 --- /dev/null +++ b/src/Processors/QtiV2/In/TestMapper.php @@ -0,0 +1,81 @@ +loadFromString($xmlString, $validate); + + /** @var AssessmentItem $assessmentItem */ + $assessmentTest = $xmlDocument->getDocumentComponent(); + if (!($assessmentTest instanceof AssessmentTest)) { + throw new MappingException('XML is not a valid document'); + } + + // TODO: Write up the exceptions! + return [$this->buildActivity($assessmentTest), []]; + } + + private function buildActivity(AssessmentTest $assessmentTest) + { + $data = new activity_data(); + + // Support on sections first + $sectionCollection = $assessmentTest->getComponentsByClassName('assessmentSection', true); + $sections = []; + /** @var AssessmentSection $assessmentSection */ + foreach ($sectionCollection as $assessmentSection) { + $references = []; + + // Populate item references + $itemRefCollection = $assessmentSection->getComponentsByClassName('assessmentItemRef', true); + /** @var AssessmentItemRef $assessmentItemRef */ + foreach ($itemRefCollection as $assessmentItemRef) { + $references[] = $assessmentItemRef->getIdentifier(); + } + $section = new activity_data_sections_item(); + $section->set_items($references); + + // Set assessment section title if exists + if (!empty($assessmentSection->getTitle())) { + $sectionConfig = new activity_data_sections_item_config(); + $sectionConfig->set_subtitle($assessmentSection->getTitle()); + $section->set_config($sectionConfig); + } + + $sections[] = $section; + } + $data->set_sections($sections); + $reference = $assessmentTest->getIdentifier(); + $activity = new activity($reference, $data); + + // Return dah` activity~! + return $activity; + } +} diff --git a/src/Processors/QtiV2/In/Validation/ChoiceInteractionValidationBuilder.php b/src/Processors/QtiV2/In/Validation/ChoiceInteractionValidationBuilder.php index c9a79d30..b712b9ef 100644 --- a/src/Processors/QtiV2/In/Validation/ChoiceInteractionValidationBuilder.php +++ b/src/Processors/QtiV2/In/Validation/ChoiceInteractionValidationBuilder.php @@ -33,17 +33,10 @@ protected function getMatchCorrectTemplateValidation() LogService::log('Invalid choice `' . $value->getValue() . '`'); continue; } - $values[] = new ValidResponse(1, [$value->getValue()]); + $values[] = $value->getValue(); } - // Handle `multiple` cardinality - if ($this->responseDeclaration->getCardinality() === Cardinality::MULTIPLE) { - $combinationChoicesCount = $this->maxChoices === 0 ? count($values) : $this->maxChoices; - $combinationResponses = ArrayUtil::combinations($values, $combinationChoicesCount); - $values = ArrayUtil::combineValidResponsesWithFixedScore($combinationResponses, 1); - } - - return ValidationBuilder::build('mcq', 'exactMatch', $values); + return ValidationBuilder::build('mcq', 'exactMatch', [new ValidResponse(1, $values)]); } protected function getMapResponseTemplateValidation() diff --git a/src/Processors/QtiV2/In/Validation/GapMatchInteractionValidationBuilder.php b/src/Processors/QtiV2/In/Validation/GapMatchInteractionValidationBuilder.php index 0bf9a7f6..2c7b5f29 100644 --- a/src/Processors/QtiV2/In/Validation/GapMatchInteractionValidationBuilder.php +++ b/src/Processors/QtiV2/In/Validation/GapMatchInteractionValidationBuilder.php @@ -6,7 +6,7 @@ use LearnosityQti\Processors\Learnosity\In\ValidationBuilder; use LearnosityQti\Processors\Learnosity\In\ValidationBuilder\ValidResponse; use LearnosityQti\Utils\ArrayUtil; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\data\state\MapEntry; use qtism\data\state\ResponseDeclaration; @@ -41,10 +41,10 @@ protected function getMatchCorrectTemplateValidation() $responseIndexSet = []; foreach ($this->responseDeclaration->getCorrectResponse()->getValues() as $value) { - /** @var DirectedPair $valuePair */ + /** @var QtiDirectedPair $valuePair */ $valuePair = $value->getValue(); - // Map response value and index based from `DirectedPair` Value, try to guess which one is which since they + // Map response value and index based from `QtiDirectedPair` Value, try to guess which one is which since they // apparently can swap :( if (isset($this->possibleResponses[$valuePair->getFirst()]) && isset($gapIdentifiersIndexMap[$valuePair->getSecond()])) { $responseValue = $this->possibleResponses[$valuePair->getFirst()]; @@ -91,7 +91,7 @@ protected function getMapResponseTemplateValidation() foreach ($this->responseDeclaration->getMapping()->getMapEntries() as $mapEntry) { /** @var MapEntry $mapEntry */ - /** @var DirectedPair $mapKey */ + /** @var QtiDirectedPair $mapKey */ $mapKey = $mapEntry->getMapKey(); // Map response value and index based from the `mapKey`, try to guess which one is which since they diff --git a/src/Processors/QtiV2/In/Validation/MatchInteractionValidationBuilder.php b/src/Processors/QtiV2/In/Validation/MatchInteractionValidationBuilder.php index 7015152d..8bd1d77b 100644 --- a/src/Processors/QtiV2/In/Validation/MatchInteractionValidationBuilder.php +++ b/src/Processors/QtiV2/In/Validation/MatchInteractionValidationBuilder.php @@ -5,7 +5,7 @@ use LearnosityQti\Exceptions\MappingException; use LearnosityQti\Processors\Learnosity\In\ValidationBuilder\ValidationBuilder; use LearnosityQti\Processors\Learnosity\In\ValidationBuilder\ValidResponse; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\data\state\MapEntry; use qtism\data\state\ResponseDeclaration; @@ -26,10 +26,10 @@ protected function getMatchCorrectTemplateValidation() // Build `value` array for a `valid_response` objects $values = []; foreach ($this->responseDeclaration->getCorrectResponse()->getValues() as $value) { - /** @var DirectedPair $valuePair */ + /** @var QtiDirectedPair $valuePair */ $valuePair = $value->getValue(); - // Map response value and index based from `DirectedPair` Value, try to guess which one is which since they + // Map response value and index based from `QtiDirectedPair` Value, try to guess which one is which since they // apparently can swap :( if (isset($this->stemsMapping[$valuePair->getFirst()]) && isset($this->optionsMapping[$valuePair->getSecond()])) { $responseIndex = $this->stemsMapping[$valuePair->getFirst()]; @@ -64,7 +64,7 @@ protected function getMapResponseTemplateValidation() $score += $mapEntry->getMappedValue(); $mapKey = $mapEntry->getMapKey(); - // Map response value and index based from `DirectedPair` Value, try to guess which one is which since they + // Map response value and index based from `QtiDirectedPair` Value, try to guess which one is which since they // apparently can swap :( if (isset($this->stemsMapping[$mapKey->getFirst()]) && isset($this->optionsMapping[$mapKey->getSecond()])) { $responseIndex = $this->stemsMapping[$mapKey->getFirst()]; diff --git a/src/Processors/QtiV2/Marshallers/LearnosityMarshallerFactory.php b/src/Processors/QtiV2/Marshallers/LearnosityMarshallerFactory.php index 75c48065..997840d1 100644 --- a/src/Processors/QtiV2/Marshallers/LearnosityMarshallerFactory.php +++ b/src/Processors/QtiV2/Marshallers/LearnosityMarshallerFactory.php @@ -2,9 +2,9 @@ namespace LearnosityQti\Processors\QtiV2\Marshallers; -use qtism\data\storage\xml\marshalling\MarshallerFactory; +use qtism\data\storage\xml\marshalling\Qti21MarshallerFactory; -class LearnosityMarshallerFactory extends MarshallerFactory +class LearnosityMarshallerFactory extends Qti21MarshallerFactory { public function __construct() { diff --git a/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php b/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php index 4c0d1c2d..cc67e64f 100644 --- a/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php +++ b/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php @@ -5,13 +5,11 @@ use LearnosityQti\Entities\BaseQuestionType; use LearnosityQti\Entities\QuestionTypes\hotspot; use LearnosityQti\Entities\QuestionTypes\hotspot_image; -use LearnosityQti\Entities\QuestionTypes\hotspot_metadata; use LearnosityQti\Processors\QtiV2\Out\Validation\HotspotValidationBuilder; use LearnosityQti\Utils\CurlUtil; use LearnosityQti\Utils\MimeUtil; -use qtism\common\datatypes\Coords; -use qtism\common\datatypes\Shape; -use qtism\common\utils\Format; +use qtism\common\datatypes\QtiCoords; +use qtism\common\datatypes\QtiShape; use qtism\data\content\interactions\HotspotChoice; use qtism\data\content\interactions\HotspotChoiceCollection; use qtism\data\content\interactions\HotspotInteraction; @@ -39,7 +37,7 @@ public function convert(BaseQuestionType $questionType, $interactionIdentifier, } $choiceIdentifier = 'CHOICE_' . $index; $valueIdentifierMap[$index] = $choiceIdentifier; - $hotspotChoice = new HotspotChoice($choiceIdentifier, Shape::POLY, new Coords(Shape::POLY, $coords)); + $hotspotChoice = new HotspotChoice($choiceIdentifier, QtiShape::POLY, new QtiCoords(QtiShape::POLY, $coords)); $choicesCollection->attach($hotspotChoice); } @@ -47,7 +45,8 @@ public function convert(BaseQuestionType $questionType, $interactionIdentifier, $imageObject = $this->buildMainImageObject($question->get_image()); $hasMultiResponses = !empty($question->get_multiple_responses()) && $question->get_multiple_responses(); $maxChoices = $hasMultiResponses ? $choicesCollection->count() : 1; - $interaction = new HotspotInteraction($interactionIdentifier, $imageObject, $maxChoices, $choicesCollection); + $interaction = new HotspotInteraction($interactionIdentifier, $imageObject, $choicesCollection); + $interaction->setMaxChoices($maxChoices); // Set min choices are 0 because we allow no responses $interaction->setMinChoices(0); diff --git a/src/Processors/QtiV2/Out/QuestionTypes/ImageclozeassociationMapper.php b/src/Processors/QtiV2/Out/QuestionTypes/ImageclozeassociationMapper.php index 177eac93..69c918c4 100644 --- a/src/Processors/QtiV2/Out/QuestionTypes/ImageclozeassociationMapper.php +++ b/src/Processors/QtiV2/Out/QuestionTypes/ImageclozeassociationMapper.php @@ -11,7 +11,7 @@ use LearnosityQti\Utils\MimeUtil; use LearnosityQti\Utils\QtiCoordinateUtil; use LearnosityQti\Utils\SimpleHtmlDom\SimpleHtmlDom; -use qtism\common\datatypes\Shape; +use qtism\common\datatypes\QtiShape; use qtism\data\content\interactions\AssociableHotspot; use qtism\data\content\interactions\AssociableHotspotCollection; use qtism\data\content\interactions\GapImg; @@ -68,7 +68,7 @@ private function buildAssociableHotspotCollection(array $responsePositions, $ima $rectangleWidth, $rectangleHeight ); - $associableHotspot = new AssociableHotspot(self::ASSOCIABLEHOTSPOT_IDENTIFIER_PREFIX . $index, 1, Shape::RECT, $coords); + $associableHotspot = new AssociableHotspot(self::ASSOCIABLEHOTSPOT_IDENTIFIER_PREFIX . $index, 1, QtiShape::RECT, $coords); $associableHotspotCollection->attach($associableHotspot); } return $associableHotspotCollection; diff --git a/src/Processors/QtiV2/Out/Validation/ChoicematrixValidationBuilder.php b/src/Processors/QtiV2/Out/Validation/ChoicematrixValidationBuilder.php index 461c0504..a7f76c12 100644 --- a/src/Processors/QtiV2/Out/Validation/ChoicematrixValidationBuilder.php +++ b/src/Processors/QtiV2/Out/Validation/ChoicematrixValidationBuilder.php @@ -3,7 +3,7 @@ namespace LearnosityQti\Processors\QtiV2\Out\Validation; use LearnosityQti\Exceptions\MappingException; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\common\enums\BaseType; use qtism\common\enums\Cardinality; use qtism\data\state\CorrectResponse; @@ -44,13 +44,13 @@ private function buildValueCollection(array $learnosityValues) { // The validation in `choicematrix` relies on its key to describe the index of stem/option pair $valueCollection = new ValueCollection(); - foreach ($this->buildDirectedPairs($learnosityValues) as $pair) { + foreach ($this->buildQtiDirectedPairs($learnosityValues) as $pair) { $valueCollection->attach(new Value($pair)); } return $valueCollection; } - private function buildDirectedPairs(array $values) + private function buildQtiDirectedPairs(array $values) { $pairs = []; foreach ($values as $key => $value) { @@ -58,12 +58,12 @@ private function buildDirectedPairs(array $values) foreach ($value as $v) { $stemIdentifier = $this->stemIndexIdentifierMap[$key]; $optionIdentifier = $this->optionIndexIdentifierMap[intval($v)]; - $pairs[] = new DirectedPair($stemIdentifier, $optionIdentifier); + $pairs[] = new QtiDirectedPair($stemIdentifier, $optionIdentifier); } } else { $stemIdentifier = $this->stemIndexIdentifierMap[$key]; $optionIdentifier = $this->optionIndexIdentifierMap[intval($value)]; - $pairs[] = new DirectedPair($stemIdentifier, $optionIdentifier); + $pairs[] = new QtiDirectedPair($stemIdentifier, $optionIdentifier); } } return $pairs; diff --git a/src/Processors/QtiV2/Out/Validation/ClozeassociationValidationBuilder.php b/src/Processors/QtiV2/Out/Validation/ClozeassociationValidationBuilder.php index 14a44df7..e29df0ec 100644 --- a/src/Processors/QtiV2/Out/Validation/ClozeassociationValidationBuilder.php +++ b/src/Processors/QtiV2/Out/Validation/ClozeassociationValidationBuilder.php @@ -5,7 +5,7 @@ use LearnosityQti\Entities\QuestionTypes\clozeassociation_validation; use LearnosityQti\Exceptions\MappingException; use LearnosityQti\Processors\QtiV2\Out\QuestionTypes\ClozeassociationMapper; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\common\enums\BaseType; use qtism\common\enums\Cardinality; use qtism\data\state\CorrectResponse; @@ -42,7 +42,7 @@ protected function buildResponseDeclaration($responseIdentifier, $validation) if (!empty($validResponse)) { $first = ClozeassociationMapper::GAP_IDENTIFIER_PREFIX . $index; $second = ClozeassociationMapper::GAPCHOICE_IDENTIFIER_PREFIX . $this->possibleResponsesMap[$validResponse]; - $values->attach(new Value(new DirectedPair($first, $second))); + $values->attach(new Value(new QtiDirectedPair($first, $second))); } } if ($values->count() > 0) { diff --git a/src/Processors/QtiV2/Out/Validation/ImageclozeassociationValidationBuilder.php b/src/Processors/QtiV2/Out/Validation/ImageclozeassociationValidationBuilder.php index 4b158c80..555f073c 100644 --- a/src/Processors/QtiV2/Out/Validation/ImageclozeassociationValidationBuilder.php +++ b/src/Processors/QtiV2/Out/Validation/ImageclozeassociationValidationBuilder.php @@ -5,7 +5,7 @@ use LearnosityQti\Entities\QuestionTypes\imageclozeassociation_validation; use LearnosityQti\Exceptions\MappingException; use LearnosityQti\Processors\QtiV2\Out\QuestionTypes\ImageclozeassociationMapper; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\common\enums\BaseType; use qtism\common\enums\Cardinality; use qtism\data\state\CorrectResponse; @@ -42,7 +42,7 @@ protected function buildResponseDeclaration($responseIdentifier, $validation) if (!empty($validResponse)) { $first = ImageclozeassociationMapper::ASSOCIABLEHOTSPOT_IDENTIFIER_PREFIX . $index; $second = ImageclozeassociationMapper::GAPIMG_IDENTIFIER_PREFIX . $this->possibleResponsesMap[$validResponse]; - $values->attach(new Value(new DirectedPair($first, $second))); + $values->attach(new Value(new QtiDirectedPair($first, $second))); } } if ($values->count() > 0) { diff --git a/src/Utils/QtiCoordinateUtil.php b/src/Utils/QtiCoordinateUtil.php index c2ced16c..b839ab2b 100644 --- a/src/Utils/QtiCoordinateUtil.php +++ b/src/Utils/QtiCoordinateUtil.php @@ -2,22 +2,22 @@ namespace LearnosityQti\Utils; -use qtism\common\datatypes\Coords; -use qtism\common\datatypes\Shape; +use qtism\common\datatypes\QtiCoords; +use qtism\common\datatypes\QtiShape; class QtiCoordinateUtil { public static function convertQtiCoordsToPercentage(array $areaCoords, array $objectCoords, $qtiShape) { switch ($qtiShape) { - case Shape::RECT: + case QtiShape::RECT: return [ 'x' => round($objectCoords[0] / $areaCoords[0] * 100, 2), 'y' => round($objectCoords[1] / $areaCoords[1] * 100, 2), 'width' => $objectCoords[2] - $objectCoords[0], 'height' => $objectCoords[3] - $objectCoords[1] ]; - case Shape::CIRCLE: + case QtiShape::CIRCLE: return [ 'x' => round($objectCoords[0] / $areaCoords[0] * 100, 2), 'y' => round($objectCoords[1] / $areaCoords[1] * 100, 2) @@ -34,6 +34,6 @@ public static function convertPercentageToQtiCoords(array $responsePosition, $im $rightX = round($leftX + $rectangleWidth, 0); $bottomY = round($topY + $rectangleHeight, 0); - return new Coords(Shape::RECT, [intval($leftX), intval($topY), intval($rightX), intval($bottomY)]); + return new QtiCoords(QtiShape::RECT, [intval($leftX), intval($topY), intval($rightX), intval($bottomY)]); } } diff --git a/src/Utils/QtiMarshallerUtil.php b/src/Utils/QtiMarshallerUtil.php index 1b749064..bca2456f 100644 --- a/src/Utils/QtiMarshallerUtil.php +++ b/src/Utils/QtiMarshallerUtil.php @@ -8,13 +8,15 @@ use qtism\data\content\TextRun; use qtism\data\QtiComponent; use qtism\data\QtiComponentCollection; -use qtism\data\storage\xml\marshalling\MarshallerFactory; +use qtism\data\storage\xml\marshalling\Qti21MarshallerFactory; class QtiMarshallerUtil { public static function unmarshallElement($string) { try { + libxml_use_internal_errors(true); + $dom = new DOMDocument('1.0', 'UTF-8'); $dom->formatOutput = true; @@ -22,7 +24,11 @@ public static function unmarshallElement($string) $string = html_entity_decode($string, ENT_XHTML); // TODO: Can only unmarshall nice stuff, doesnt work with dodgy or invalid HTML - $dom->loadXML("$string", LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); + if (!$dom->loadXML("$string", LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD)) { + $errors = libxml_get_errors(); + throw new \Exception('Something wrong with XML format'); + } + $marshallerFactory = new LearnosityMarshallerFactory(); $components = new QtiComponentCollection(); foreach ($dom->documentElement->childNodes as $element) { @@ -40,6 +46,15 @@ public static function unmarshallElement($string) } } + public static function marshallValidCollection(QtiComponentCollection $collection) + { + $results = []; + foreach ($collection as $component) { + $results[] = self::marshallValidQti($component); + } + return implode('', $results); + } + public static function marshallCollection(QtiComponentCollection $collection) { $results = []; @@ -70,9 +85,9 @@ public static function marshall(QtiComponent $component) public static function marshallValidQti(QtiComponent $component) { - $marshallerFactory = new MarshallerFactory(); + $marshallerFactory = new Qti21MarshallerFactory(); $marshaller = $marshallerFactory->createMarshaller($component); - $element = $marshaller->marshall($component); + $element = $marshaller->marshall($component); $dom = new \DOMDocument(); $dom->preserveWhiteSpace = false; diff --git a/src/Utils/StringUtil.php b/src/Utils/StringUtil.php index 1806c48a..9068a47c 100644 --- a/src/Utils/StringUtil.php +++ b/src/Utils/StringUtil.php @@ -18,14 +18,16 @@ public static function contains($haystack, $needle) return strpos($haystack, $needle) !== false; } - public static function startsWith($haystack, $needle) { + public static function startsWith($haystack, $needle) + { // Search backwards starting from haystack length characters from the end - return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== FALSE; + return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false; } - public static function endsWith($haystack, $needle) { + public static function endsWith($haystack, $needle) + { // Search forward starting from end minus needle length characters - return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== FALSE); + return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== false); } /** diff --git a/tests/Integration/ConverterTest.php b/tests/Integration/ConverterTest.php index ab8f46ba..9c5e5aa5 100644 --- a/tests/Integration/ConverterTest.php +++ b/tests/Integration/ConverterTest.php @@ -4,7 +4,6 @@ use LearnosityQti\Converter; use LearnosityQti\Tests\AbstractTest; -use LearnosityQti\Utils\FileSystemUtil; class ConverterTest extends AbstractTest { diff --git a/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ChoicematrixMapperTest.php b/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ChoicematrixMapperTest.php index 63891470..82acfbd5 100644 --- a/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ChoicematrixMapperTest.php +++ b/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ChoicematrixMapperTest.php @@ -3,14 +3,12 @@ namespace LearnosityQti\Tests\Integration\Processors\QtiV2\Out\QuestionTypes; use LearnosityQti\Processors\QtiV2\Out\Constants; -use LearnosityQti\Tests\Integration\Processors\QtiV2\Out\QuestionTypes\AbstractQuestionTypeTest; use LearnosityQti\Utils\QtiMarshallerUtil; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\common\enums\BaseType; use qtism\common\enums\Cardinality; use qtism\data\content\interactions\MatchInteraction; use qtism\data\content\interactions\SimpleAssociableChoice; -use qtism\data\state\MapEntry; use qtism\data\state\ResponseDeclaration; use qtism\data\state\Value; @@ -74,7 +72,7 @@ public function testSimpleCase() $this->assertNull($responseDeclaration->getMapping()); } - private function assertDirectPair(DirectedPair $pair, $expectedFirstValue, $expectedSecondValue) + private function assertDirectPair(QtiDirectedPair $pair, $expectedFirstValue, $expectedSecondValue) { $this->assertEquals($expectedFirstValue, $pair->getFirst()); $this->assertEquals($expectedSecondValue, $pair->getSecond()); diff --git a/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ClozeassociationMapperTest.php b/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ClozeassociationMapperTest.php index 3bd8ab44..ee806595 100644 --- a/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ClozeassociationMapperTest.php +++ b/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ClozeassociationMapperTest.php @@ -4,7 +4,7 @@ use LearnosityQti\Processors\QtiV2\Out\Constants; use LearnosityQti\Utils\QtiMarshallerUtil; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\common\enums\BaseType; use qtism\common\enums\Cardinality; use qtism\data\AssessmentItem; @@ -60,7 +60,7 @@ public function testSimpleCommonCase() $this->assertEquals(null, $responseDeclaration->getMapping()); } - private function assertDirectPair(DirectedPair $pair, $expectedFirstValue, $expectedSecondValue) + private function assertDirectPair(QtiDirectedPair $pair, $expectedFirstValue, $expectedSecondValue) { $this->assertEquals($expectedFirstValue, $pair->getFirst()); $this->assertEquals($expectedSecondValue, $pair->getSecond()); diff --git a/tests/Integration/Processors/QtiV2/Out/QuestionTypes/HotspotMapperTest.php b/tests/Integration/Processors/QtiV2/Out/QuestionTypes/HotspotMapperTest.php index b4e76fad..e1b144bf 100644 --- a/tests/Integration/Processors/QtiV2/Out/QuestionTypes/HotspotMapperTest.php +++ b/tests/Integration/Processors/QtiV2/Out/QuestionTypes/HotspotMapperTest.php @@ -2,19 +2,13 @@ namespace LearnosityQti\Tests\Integration\Processors\QtiV2\Out\QuestionTypes; -use LearnosityQti\Processors\QtiV2\Out\Constants; use LearnosityQti\Utils\QtiMarshallerUtil; -use qtism\common\datatypes\Shape; +use qtism\common\datatypes\QtiShape; use qtism\common\enums\BaseType; use qtism\common\enums\Cardinality; -use qtism\data\content\interactions\ChoiceInteraction; use qtism\data\content\interactions\HotspotChoice; use qtism\data\content\interactions\HotspotInteraction; -use qtism\data\content\interactions\Orientation; -use qtism\data\content\interactions\SimpleChoice; use qtism\data\state\CorrectResponse; -use qtism\data\state\MapEntry; -use qtism\data\state\Mapping; use qtism\data\state\ResponseDeclaration; use qtism\data\state\Value; @@ -41,7 +35,7 @@ public function testSimpleCase() /** @var HotspotChoice[] $choices */ $choices = $interaction->getHotspotChoices()->getArrayCopy(true); $this->assertEquals($choices[0]->getIdentifier(), 'CHOICE_0'); - $this->assertEquals($choices[0]->getShape(), Shape::POLY); // Shape shall be POLY + $this->assertEquals($choices[0]->getShape(), QtiShape::POLY); // QtiShape shall be POLY $this->assertEquals($choices[0]->getCoords()->count(), 96); $this->assertEquals($choices[1]->getIdentifier(), 'CHOICE_1'); $this->assertEquals($choices[2]->getIdentifier(), 'CHOICE_2'); @@ -51,8 +45,6 @@ public function testSimpleCase() $this->assertEquals(0, $interaction->getMinChoices()); $this->assertEquals(1, $interaction->getMaxChoices()); - - // Simple validation on and $this->assertEquals(1, $assessmentItem->getResponseDeclarations()->count()); $this->assertNotNull($assessmentItem->getResponseProcessing()); diff --git a/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ImageclozeassociationMapperTest.php b/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ImageclozeassociationMapperTest.php index a7e95c2d..1ecfb4b3 100644 --- a/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ImageclozeassociationMapperTest.php +++ b/tests/Integration/Processors/QtiV2/Out/QuestionTypes/ImageclozeassociationMapperTest.php @@ -4,7 +4,7 @@ use LearnosityQti\Processors\QtiV2\Out\Constants; use LearnosityQti\Utils\QtiMarshallerUtil; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\common\enums\BaseType; use qtism\common\enums\Cardinality; use qtism\data\AssessmentItem; @@ -73,7 +73,7 @@ public function testSimpleCommonCase() $this->assertEquals(null, $responseDeclaration->getMapping()); } - private function assertDirectPair(DirectedPair $pair, $expectedFirstValue, $expectedSecondValue) + private function assertDirectPair(QtiDirectedPair $pair, $expectedFirstValue, $expectedSecondValue) { $this->assertEquals($expectedFirstValue, $pair->getFirst()); $this->assertEquals($expectedSecondValue, $pair->getSecond()); diff --git a/tests/Unit/Processors/QtiV2/In/Fixtures/ChoiceInteractionBuilder.php b/tests/Unit/Processors/QtiV2/In/Fixtures/ChoiceInteractionBuilder.php index bdbb736b..0cad7dcb 100644 --- a/tests/Unit/Processors/QtiV2/In/Fixtures/ChoiceInteractionBuilder.php +++ b/tests/Unit/Processors/QtiV2/In/Fixtures/ChoiceInteractionBuilder.php @@ -10,27 +10,6 @@ class ChoiceInteractionBuilder { - public function testWithoutSettingWidthOnImageObject() - { - $this->setExpectedException('LearnosityQti\Exceptions\MappingException'); - - $bgObject = new Object('http://img.png', 'image/png'); - $testInteraction = GraphicGapInteractionBuilder::build( - 'testInteraction', - $bgObject, - ['A' => 'img_A.png'], - ['G1' => [0, 0, 10, 10]] - ); - $responseProcessingTemplate = ResponseProcessingTemplate::mapResponse(); - $responseDeclaration = ResponseDeclarationBuilder::buildWithMapping( - 'testIdentifier', - ['A G1' => [1, false]], - 'DirectedPair' - ); - $mapper = new GraphicGapMatchInteractionMapper($testInteraction, $responseDeclaration, $responseProcessingTemplate); - $question = $mapper->getQuestionType(); - } - public static function buildSimple($responseIdentifier, array $identifierLabelMap) { $collection = new SimpleChoiceCollection(); diff --git a/tests/Unit/Processors/QtiV2/In/Fixtures/GraphicGapInteractionBuilder.php b/tests/Unit/Processors/QtiV2/In/Fixtures/GraphicGapInteractionBuilder.php index 0be2f7a1..36e968f8 100644 --- a/tests/Unit/Processors/QtiV2/In/Fixtures/GraphicGapInteractionBuilder.php +++ b/tests/Unit/Processors/QtiV2/In/Fixtures/GraphicGapInteractionBuilder.php @@ -2,8 +2,8 @@ namespace LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures; -use qtism\common\datatypes\Coords; -use qtism\common\datatypes\Shape; +use qtism\common\datatypes\QtiCoords; +use qtism\common\datatypes\QtiShape; use qtism\data\content\interactions\AssociableHotspot; use qtism\data\content\interactions\AssociableHotspotCollection; use qtism\data\content\interactions\GapImg; @@ -25,8 +25,8 @@ public static function build($identifier, $bgObject, $gapImgs, $hotspots) $associableHotspotCollection = new AssociableHotspotCollection(); foreach ($hotspots as $id => $data) { - $coords = new Coords(Shape::RECT, $data); - $associableHotspot = new AssociableHotspot($id, 1, Shape::RECT, $coords); + $coords = new QtiCoords(QtiShape::RECT, $data); + $associableHotspot = new AssociableHotspot($id, 1, QtiShape::RECT, $coords); $associableHotspotCollection->attach($associableHotspot); } diff --git a/tests/Unit/Processors/QtiV2/In/Fixtures/GraphicOrderInteractionBuilder.php b/tests/Unit/Processors/QtiV2/In/Fixtures/GraphicOrderInteractionBuilder.php index 507b5a3d..31dd121e 100644 --- a/tests/Unit/Processors/QtiV2/In/Fixtures/GraphicOrderInteractionBuilder.php +++ b/tests/Unit/Processors/QtiV2/In/Fixtures/GraphicOrderInteractionBuilder.php @@ -2,8 +2,8 @@ namespace LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures; -use qtism\common\datatypes\Coords; -use qtism\common\datatypes\Shape; +use qtism\common\datatypes\QtiCoords; +use qtism\common\datatypes\QtiShape; use qtism\data\content\interactions\GraphicOrderInteraction; use qtism\data\content\interactions\HotspotChoice; use qtism\data\content\interactions\HotspotChoiceCollection; @@ -14,8 +14,8 @@ public static function build($identifier, $bgObject, $hotspotChoices) { $hotSpotChoiceCollection = new HotspotChoiceCollection(); foreach ($hotspotChoices as $identifier => $data) { - $coords = new Coords(Shape::CIRCLE, $data); - $hotspotChoice = new HotspotChoice($identifier, Shape::CIRCLE, $coords); + $coords = new QtiCoords(QtiShape::CIRCLE, $data); + $hotspotChoice = new HotspotChoice($identifier, QtiShape::CIRCLE, $coords); $hotSpotChoiceCollection->attach($hotspotChoice); } return new GraphicOrderInteraction($identifier, $bgObject, $hotSpotChoiceCollection); diff --git a/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php b/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php index 9fe1086d..44168554 100644 --- a/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php +++ b/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php @@ -2,8 +2,8 @@ namespace LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures; -use qtism\common\datatypes\Coords; -use qtism\common\datatypes\Shape; +use qtism\common\datatypes\QtiCoords; +use qtism\common\datatypes\QtiShape; use qtism\data\content\interactions\HotspotChoice; use qtism\data\content\interactions\HotspotChoiceCollection; use qtism\data\content\interactions\HotspotInteraction; @@ -17,7 +17,7 @@ public static function buildWithRectShapesChoices($responseIdentifier) $imageObject->setWidth(131); $imageObject->setHeight(37); $collection = self::buildRectShapesChoices(); - return new HotspotInteraction($responseIdentifier, $imageObject, 0, $collection); + return new HotspotInteraction($responseIdentifier, $imageObject, $collection); } public static function buildWithCircleShapesChoices($responseIdentifier) @@ -27,11 +27,11 @@ public static function buildWithCircleShapesChoices($responseIdentifier) $imageObject->setHeight(280); $collection = new HotspotChoiceCollection(); - $collection->attach(new HotspotChoice('A', Shape::CIRCLE, new Coords(Shape::CIRCLE, [77, 115, 8]))); - $collection->attach(new HotspotChoice('B', Shape::CIRCLE, new Coords(Shape::CIRCLE, [118, 184, 8]))); - $collection->attach(new HotspotChoice('C', Shape::CIRCLE, new Coords(Shape::CIRCLE, [150, 235, 8]))); - $collection->attach(new HotspotChoice('D', Shape::CIRCLE, new Coords(Shape::CIRCLE, [96, 114, 8]))); - return new HotspotInteraction($responseIdentifier, $imageObject, 0, $collection); + $collection->attach(new HotspotChoice('A', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [77, 115, 8]))); + $collection->attach(new HotspotChoice('B', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [118, 184, 8]))); + $collection->attach(new HotspotChoice('C', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [150, 235, 8]))); + $collection->attach(new HotspotChoice('D', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [96, 114, 8]))); + return new HotspotInteraction($responseIdentifier, $imageObject, $collection); } public static function buildWithPolyShapesChoices($responseIdentifier) @@ -40,16 +40,16 @@ public static function buildWithPolyShapesChoices($responseIdentifier) $imageObject->setWidth(131); $imageObject->setHeight(37); $collection = new HotspotChoiceCollection(); - $collection->attach(new HotspotChoice('A', Shape::POLY, new Coords(Shape::POLY, [7, 12, 64, 12, 64, 28, 7, 28]))); - $collection->attach(new HotspotChoice('B', Shape::POLY, new Coords(Shape::POLY, [66, 11, 125, 11, 125, 30, 66, 30]))); + $collection->attach(new HotspotChoice('A', QtiShape::POLY, new QtiCoords(QtiShape::POLY, [7, 12, 64, 12, 64, 28, 7, 28]))); + $collection->attach(new HotspotChoice('B', QtiShape::POLY, new QtiCoords(QtiShape::POLY, [66, 11, 125, 11, 125, 30, 66, 30]))); return new HotspotInteraction($responseIdentifier, $imageObject, 0, $collection); } public static function buildRectShapesChoices() { $collection = new HotspotChoiceCollection(); - $collection->attach(new HotspotChoice('A', Shape::RECT, new Coords(Shape::RECT, [7, 12, 64, 28]))); - $collection->attach(new HotspotChoice('B', Shape::RECT, new Coords(Shape::RECT, [66, 11, 125, 30]))); + $collection->attach(new HotspotChoice('A', QtiShape::RECT, new QtiCoords(QtiShape::RECT, [7, 12, 64, 28]))); + $collection->attach(new HotspotChoice('B', QtiShape::RECT, new QtiCoords(QtiShape::RECT, [66, 11, 125, 30]))); return $collection; } } diff --git a/tests/Unit/Processors/QtiV2/In/Fixtures/ResponseDeclarationBuilder.php b/tests/Unit/Processors/QtiV2/In/Fixtures/ResponseDeclarationBuilder.php index 0f787c6d..d6da9a22 100644 --- a/tests/Unit/Processors/QtiV2/In/Fixtures/ResponseDeclarationBuilder.php +++ b/tests/Unit/Processors/QtiV2/In/Fixtures/ResponseDeclarationBuilder.php @@ -2,7 +2,7 @@ namespace LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\data\state\CorrectResponse; use qtism\data\state\MapEntry; use qtism\data\state\MapEntryCollection; @@ -44,7 +44,7 @@ public static function buildWithMapping($identifier, array $mapping, $mapEntryKe $caseSensitive = isset($values[1]) ? $values[1] : false; if ($mapEntryKeyType) { $keyParts = explode(' ', $mapKey); - $mapKey = new DirectedPair($keyParts[0], $keyParts[1]); + $mapKey = new QtiDirectedPair($keyParts[0], $keyParts[1]); } $mapEntryCollection->attach(new MapEntry($mapKey, floatval($mappedValue), $caseSensitive)); } diff --git a/tests/Unit/Processors/QtiV2/In/Interactions/ChoiceInteractionTest.php b/tests/Unit/Processors/QtiV2/In/Interactions/ChoiceInteractionTest.php index 5ad77a12..5d0ad24c 100644 --- a/tests/Unit/Processors/QtiV2/In/Interactions/ChoiceInteractionTest.php +++ b/tests/Unit/Processors/QtiV2/In/Interactions/ChoiceInteractionTest.php @@ -60,10 +60,8 @@ public function testShouldHandleMatchCorrectValidation() $validation = $mcq->get_validation(); $this->assertNotNull($validation); - $this->assertEquals(['one'], $validation->get_valid_response()->get_value()); + $this->assertEquals(['one', 'two'], $validation->get_valid_response()->get_value()); $this->assertEquals(1, $validation->get_valid_response()->get_score()); - $this->assertEquals(['two'], $validation->get_alt_responses()[0]->get_value()); - $this->assertEquals(1, $validation->get_alt_responses()[0]->get_score()); $this->assertEquals(count($optionsMap), count($mcq->get_options())); foreach ($mcq->get_options() as $option) { @@ -154,12 +152,8 @@ public function testShouldHandleMultipleCardinalityWithMatchCorrect() $validation = $mcq->get_validation(); $this->assertNotNull($validation); - $this->assertEquals(['one'], $validation->get_valid_response()->get_value()); + $this->assertEquals(['one', 'two'], $validation->get_valid_response()->get_value()); $this->assertEquals(1, $validation->get_valid_response()->get_score()); - $this->assertEquals(['two'], $validation->get_alt_responses()[0]->get_value()); - $this->assertEquals(1, $validation->get_alt_responses()[1]->get_score()); - $this->assertEquals(['two', 'one'], $validation->get_alt_responses()[1]->get_value()); - $this->assertEquals(1, $validation->get_alt_responses()[0]->get_score()); } public function testShouldHandleMultipleCardinalityWithMapResponse() diff --git a/tests/Unit/Processors/QtiV2/In/Interactions/GapMatchInteractionTest.php b/tests/Unit/Processors/QtiV2/In/Interactions/GapMatchInteractionTest.php index 901020fb..0c6e3fa0 100644 --- a/tests/Unit/Processors/QtiV2/In/Interactions/GapMatchInteractionTest.php +++ b/tests/Unit/Processors/QtiV2/In/Interactions/GapMatchInteractionTest.php @@ -8,14 +8,13 @@ use LearnosityQti\Services\LogService; use LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures\GapMatchInteractionBuilder; use LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures\ResponseDeclarationBuilder; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; class GapMatchInteractionTest extends AbstractInteractionTest { public function testWithMapResponseValidationMissingGapIdentifier() { - $testInteraction = - GapMatchInteractionBuilder::buildGapMatchInteraction( + $testInteraction = GapMatchInteractionBuilder::buildGapMatchInteraction( 'testGapMatchInteraction', [ 'A' => 'Gap A', @@ -33,7 +32,7 @@ public function testWithMapResponseValidationMissingGapIdentifier() $responseDeclaration = ResponseDeclarationBuilder::buildWithMapping( 'testIdentifier', $validResponseIdentifier, - 'DirectedPair' + 'QtiDirectedPair' ); $mapper = new GapMatchInteractionMapper($testInteraction, $responseDeclaration, $responseProcessingTemplate); /** @var clozeassociation $q */ @@ -64,7 +63,7 @@ public function testWithMatchCorrectValidationMissingGapIdentifier() ); $responseProcessingTemplate = ResponseProcessingTemplate::matchCorrect(); $validResponseIdentifier = [ - new DirectedPair('A', 'G1') + new QtiDirectedPair('A', 'G1') ]; $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse('testIdentifier', $validResponseIdentifier); @@ -105,7 +104,7 @@ public function testWithMapResponseValidationDuplicatedResponses() $responseDeclaration = ResponseDeclarationBuilder::buildWithMapping( 'testIdentifier', $validResponseIdentifier, - 'DirectedPair' + 'QtiDirectedPair' ); $mapper = new GapMatchInteractionMapper($testInteraction, $responseDeclaration, $responseProcessingTemplate); /** @var clozeassociation $q */ @@ -158,10 +157,10 @@ public function testWithMatchCorrectResponseValidationDuplicatedResponses() ); $responseProcessingTemplate = ResponseProcessingTemplate::matchCorrect(); $validResponseIdentifier = [ - new DirectedPair('A', 'G1'), - new DirectedPair('B', 'G1'), - new DirectedPair('C', 'G2'), - new DirectedPair('B', 'G2') + new QtiDirectedPair('A', 'G1'), + new QtiDirectedPair('B', 'G1'), + new QtiDirectedPair('C', 'G2'), + new QtiDirectedPair('B', 'G2') ]; $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse('testIdentifier', $validResponseIdentifier); @@ -226,7 +225,7 @@ public function testWithMapResponseValidationMixedResponses() $responseDeclaration = ResponseDeclarationBuilder::buildWithMapping( 'testIdentifier', $validResponseIdentifier, - 'DirectedPair' + 'QtiDirectedPair' ); $mapper = new GapMatchInteractionMapper($testInteraction, $responseDeclaration, $responseProcessingTemplate); /** @var clozeassociation $q */ @@ -280,10 +279,10 @@ public function testWithMatchCorrectResponseSwappedValuePair() ); $responseProcessingTemplate = ResponseProcessingTemplate::matchCorrect(); $validResponseIdentifier = [ - new DirectedPair('G1', 'A'), - new DirectedPair('G1', 'B'), - new DirectedPair('G2', 'C'), - new DirectedPair('G2', 'B') + new QtiDirectedPair('G1', 'A'), + new QtiDirectedPair('G1', 'B'), + new QtiDirectedPair('G2', 'C'), + new QtiDirectedPair('G2', 'B') ]; $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse('testIdentifier', $validResponseIdentifier); @@ -349,7 +348,7 @@ public function testMapResponseWithSwappedValuePair() $responseDeclaration = ResponseDeclarationBuilder::buildWithMapping( 'testIdentifier', $validResponseIdentifier, - 'DirectedPair' + 'QtiDirectedPair' ); $mapper = new GapMatchInteractionMapper($testInteraction, $responseDeclaration, $responseProcessingTemplate); /** @var clozeassociation $q */ diff --git a/tests/Unit/Processors/QtiV2/In/Interactions/GraphicGapMatchInteractionTest.php b/tests/Unit/Processors/QtiV2/In/Interactions/GraphicGapMatchInteractionTest.php index a0e8ed52..c2af6c8c 100644 --- a/tests/Unit/Processors/QtiV2/In/Interactions/GraphicGapMatchInteractionTest.php +++ b/tests/Unit/Processors/QtiV2/In/Interactions/GraphicGapMatchInteractionTest.php @@ -11,7 +11,7 @@ use LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures\GraphicGapInteractionBuilder; use LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures\ResponseDeclarationBuilder; use LearnosityQti\Utils\StringUtil; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\data\content\xhtml\Object; class GraphicGapMatchInteractionTest extends AbstractInteractionTest @@ -31,7 +31,7 @@ public function testWithoutSettingWidthOnImageObject() $responseDeclaration = ResponseDeclarationBuilder::buildWithMapping( 'testIdentifier', ['A G1' => [1, false]], - 'DirectedPair' + 'QtiDirectedPair' ); $mapper = new GraphicGapMatchInteractionMapper($testInteraction, $responseDeclaration, $responseProcessingTemplate); $question = $mapper->getQuestionType(); @@ -60,7 +60,7 @@ public function testWithMapResponseValidationMissingAssociableIdentifier() $responseDeclaration = ResponseDeclarationBuilder::buildWithMapping( 'testIdentifier', ['A G1' => [1, false]], - 'DirectedPair' + 'QtiDirectedPair' ); $mapper = new GraphicGapMatchInteractionMapper($testInteraction, $responseDeclaration, $responseProcessingTemplate); /** @var imageclozeassociation $q */ @@ -106,7 +106,7 @@ public function testMapResponseValidation() $responseDeclaration = ResponseDeclarationBuilder::buildWithMapping( 'testIdentifier', $validResponseIdentifier, - 'DirectedPair' + 'QtiDirectedPair' ); $mapper = new GraphicGapMatchInteractionMapper($testInteraction, $responseDeclaration, $responseProcessingTemplate); @@ -169,9 +169,9 @@ public function testMatchCorrectValidation() $responseProcessingTemplate = ResponseProcessingTemplate::matchCorrect(); $validResponseIdentifier = [ - new DirectedPair('A', 'G1'), - new DirectedPair('A', 'G2'), - new DirectedPair('B', 'G1'), + new QtiDirectedPair('A', 'G1'), + new QtiDirectedPair('A', 'G2'), + new QtiDirectedPair('B', 'G1'), ]; $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse('testIdentifier', $validResponseIdentifier); diff --git a/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php b/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php index 6baf616e..805bc1a4 100644 --- a/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php +++ b/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php @@ -17,10 +17,10 @@ public function testImageWithoutWidth() $imageObject = new Object('http://anyurl.com', 'image/png'); $collection = HotspotInteractionBuilder::buildRectShapesChoices(); - $interaction = new HotspotInteraction('thisJustWontWork', $imageObject, 0, $collection); + $interaction = new HotspotInteraction('thisJustWontWork', $imageObject, $collection); $responseProcessingTemplate = ResponseProcessingTemplate::matchCorrect(); - $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse('thisJustWontWork', ['hotspot1']); + $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse('thisJustWontWork', ['A']); $mapper = new HotspotInteractionMapper($interaction, $responseDeclaration, $responseProcessingTemplate); $question = $mapper->getQuestionType(); } diff --git a/tests/Unit/Processors/QtiV2/In/Interactions/MatchInteractionTest.php b/tests/Unit/Processors/QtiV2/In/Interactions/MatchInteractionTest.php index 8d105ccd..396f6d7e 100644 --- a/tests/Unit/Processors/QtiV2/In/Interactions/MatchInteractionTest.php +++ b/tests/Unit/Processors/QtiV2/In/Interactions/MatchInteractionTest.php @@ -9,7 +9,7 @@ use LearnosityQti\Processors\QtiV2\In\ResponseProcessingTemplate; use LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures\MatchInteractionBuilder; use LearnosityQti\Tests\Unit\Processors\QtiV2\In\Fixtures\ResponseDeclarationBuilder; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; class MatchInteractionTest extends AbstractInteractionTest { @@ -41,7 +41,7 @@ public function testShouldHandleMapResponseValidationWithMultipleResponses() $responseDeclaration = ResponseDeclarationBuilder::buildWithMapping( 'testIdentifier', $validResponseIdentifier, - 'DirectedPair' + 'QtiDirectedPair' ); $mapper = new MatchInteractionMapper($testMatchInteraction, $responseDeclaration, $responseProcessingTemplate); @@ -90,9 +90,9 @@ public function testShouldHandleMatchCorrectValidationWithMultipleResponses() $testMatchInteraction->setMaxAssociations(3); $responseProcessingTemplate = ResponseProcessingTemplate::matchCorrect(); $validResponseIdentifier = [ - new DirectedPair('A', 'D'), - new DirectedPair('B', 'C'), - new DirectedPair('A', 'E') + new QtiDirectedPair('A', 'D'), + new QtiDirectedPair('B', 'C'), + new QtiDirectedPair('A', 'E') ]; $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse( 'testIdentifier', @@ -143,8 +143,8 @@ public function testShouldHandleMatchCorrectValidationWithoutMultipleResponses() $interaction->setMaxAssociations(2); $responseProcessingTemplate = ResponseProcessingTemplate::matchCorrect(); $validResponseIdentifier = [ - new DirectedPair('A', 'D'), - new DirectedPair('B', 'C') + new QtiDirectedPair('A', 'D'), + new QtiDirectedPair('B', 'C') ]; $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse( 'testIdentifier', diff --git a/tests/Unit/Processors/QtiV2/Out/QuestionTypes/ChoicematrixMapperTest.php b/tests/Unit/Processors/QtiV2/Out/QuestionTypes/ChoicematrixMapperTest.php index c92aa16a..551aac7a 100644 --- a/tests/Unit/Processors/QtiV2/Out/QuestionTypes/ChoicematrixMapperTest.php +++ b/tests/Unit/Processors/QtiV2/Out/QuestionTypes/ChoicematrixMapperTest.php @@ -9,7 +9,7 @@ use LearnosityQti\Processors\QtiV2\Out\Constants; use LearnosityQti\Processors\QtiV2\Out\QuestionTypes\ChoicematrixMapper; use LearnosityQti\Utils\QtiMarshallerUtil; -use qtism\common\datatypes\DirectedPair; +use qtism\common\datatypes\QtiDirectedPair; use qtism\data\content\interactions\MatchInteraction; use qtism\data\content\interactions\SimpleAssociableChoice; use qtism\data\processing\ResponseProcessing; @@ -156,7 +156,7 @@ private function buildSimpleChoiceMatrixQuestion() return $question; } - private function assertDirectPair(DirectedPair $pair, $expectedFirstValue, $expectedSecondValue) + private function assertDirectPair(QtiDirectedPair $pair, $expectedFirstValue, $expectedSecondValue) { $this->assertEquals($expectedFirstValue, $pair->getFirst()); $this->assertEquals($expectedSecondValue, $pair->getSecond()); From 1a18f89e34f5d0c8c4122eb167ce345ee9bd500f Mon Sep 17 00:00:00 2001 From: Stella Lie Date: Mon, 4 Jul 2016 18:08:35 +1000 Subject: [PATCH 3/4] Fixed the composer json to now have fixed version of the QTI lib --- composer.json | 2 +- composer.lock | 129 +++++++++--------- .../QtiV2/Out/QuestionTypes/HotspotMapper.php | 3 +- .../In/Fixtures/HotspotInteractionBuilder.php | 4 +- .../Interactions/HotspotInteractionTest.php | 2 +- 5 files changed, 69 insertions(+), 71 deletions(-) diff --git a/composer.json b/composer.json index 505a1a54..db03b02e 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "symfony/dependency-injection": "v2.6.8", "jms/aop-bundle": "1.0.1", "jms/di-extra-bundle": "1.5.0", - "qtism/qtism": "dev-master" + "qtism/qtism": "3.2.3" }, "require-dev": { "phpunit/phpunit": "4.8.4" diff --git a/composer.lock b/composer.lock index 9177111e..011a34d3 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "d57cc5b348062cc7c191d6da6c89ab06", - "content-hash": "35810f8459dbbeca39d36a684a97a584", + "hash": "73ec6819cd6a6ab284fc9ffecb2db34d", + "content-hash": "bcb2cf4e09c0d4b326ae9d44c24cd120", "packages": [ { "name": "doctrine/annotations", @@ -469,16 +469,16 @@ }, { "name": "qtism/qtism", - "version": "dev-master", + "version": "3.2.3", "source": { "type": "git", "url": "https://github.com/oat-sa/qti-sdk.git", - "reference": "0e55ce02f501ec923aa1f825bbc1204e440746b2" + "reference": "ba25bee79f055c762716c632c1b7e5a85c9b3013" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/oat-sa/qti-sdk/zipball/0e55ce02f501ec923aa1f825bbc1204e440746b2", - "reference": "0e55ce02f501ec923aa1f825bbc1204e440746b2", + "url": "https://api.github.com/repos/oat-sa/qti-sdk/zipball/ba25bee79f055c762716c632c1b7e5a85c9b3013", + "reference": "ba25bee79f055c762716c632c1b7e5a85c9b3013", "shasum": "" }, "require": { @@ -530,7 +530,7 @@ "QTI", "TAO" ], - "time": "2016-06-22 15:50:45" + "time": "2016-05-09 10:51:41" }, { "name": "symfony/config", @@ -585,16 +585,16 @@ }, { "name": "symfony/debug", - "version": "v2.8.7", + "version": "v2.8.8", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "c7d6d8a599e4609a1abc76351d6234a2997e16ed" + "reference": "2477199ad1dd1c43fe18a84d7907fffa025eff10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/c7d6d8a599e4609a1abc76351d6234a2997e16ed", - "reference": "c7d6d8a599e4609a1abc76351d6234a2997e16ed", + "url": "https://api.github.com/repos/symfony/debug/zipball/2477199ad1dd1c43fe18a84d7907fffa025eff10", + "reference": "2477199ad1dd1c43fe18a84d7907fffa025eff10", "shasum": "" }, "require": { @@ -638,7 +638,7 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2016-06-06 15:06:25" + "time": "2016-06-29 05:29:29" }, { "name": "symfony/dependency-injection", @@ -703,16 +703,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v2.8.7", + "version": "v2.8.8", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "2a6b8713f8bdb582058cfda463527f195b066110" + "reference": "b180b70439dca70049b6b9b7e21d75e6e5d7aca9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/2a6b8713f8bdb582058cfda463527f195b066110", - "reference": "2a6b8713f8bdb582058cfda463527f195b066110", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/b180b70439dca70049b6b9b7e21d75e6e5d7aca9", + "reference": "b180b70439dca70049b6b9b7e21d75e6e5d7aca9", "shasum": "" }, "require": { @@ -759,20 +759,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2016-06-06 11:11:27" + "time": "2016-06-29 05:29:29" }, { "name": "symfony/filesystem", - "version": "v2.8.7", + "version": "v2.8.8", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "dee379131dceed90a429e951546b33edfe7dccbb" + "reference": "7258ddd6f987053f21fa43d03430580ba54e6096" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/dee379131dceed90a429e951546b33edfe7dccbb", - "reference": "dee379131dceed90a429e951546b33edfe7dccbb", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/7258ddd6f987053f21fa43d03430580ba54e6096", + "reference": "7258ddd6f987053f21fa43d03430580ba54e6096", "shasum": "" }, "require": { @@ -808,7 +808,7 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2016-04-12 18:01:21" + "time": "2016-06-29 05:31:50" }, { "name": "symfony/finder", @@ -945,16 +945,16 @@ }, { "name": "symfony/http-foundation", - "version": "v2.8.7", + "version": "v2.8.8", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "744dae663ffcfa21d8a111fb63541954199acbb2" + "reference": "7a55440a2bebd37b8bd06f99f5def1ddf0aa9249" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/744dae663ffcfa21d8a111fb63541954199acbb2", - "reference": "744dae663ffcfa21d8a111fb63541954199acbb2", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/7a55440a2bebd37b8bd06f99f5def1ddf0aa9249", + "reference": "7a55440a2bebd37b8bd06f99f5def1ddf0aa9249", "shasum": "" }, "require": { @@ -996,7 +996,7 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2016-06-06 11:11:27" + "time": "2016-06-29 07:02:14" }, { "name": "symfony/http-kernel", @@ -1418,16 +1418,16 @@ }, { "name": "symfony/process", - "version": "v2.8.7", + "version": "v2.8.8", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "115347d00c342198cdc52a7bd8bc15b5ab43500c" + "reference": "89f33c16796415ccfd8bb3cf8d520cbb79899bfe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/115347d00c342198cdc52a7bd8bc15b5ab43500c", - "reference": "115347d00c342198cdc52a7bd8bc15b5ab43500c", + "url": "https://api.github.com/repos/symfony/process/zipball/89f33c16796415ccfd8bb3cf8d520cbb79899bfe", + "reference": "89f33c16796415ccfd8bb3cf8d520cbb79899bfe", "shasum": "" }, "require": { @@ -1463,7 +1463,7 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2016-06-06 11:11:27" + "time": "2016-06-29 05:29:29" }, { "name": "symfony/routing", @@ -1536,16 +1536,16 @@ }, { "name": "symfony/security-core", - "version": "v2.8.7", + "version": "v2.8.8", "source": { "type": "git", "url": "https://github.com/symfony/security-core.git", - "reference": "2e9c6248735ef5a6746299a611346283dbcfd041" + "reference": "885f98ee7c4d136db2672a4f02ccb412f15d8921" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-core/zipball/2e9c6248735ef5a6746299a611346283dbcfd041", - "reference": "2e9c6248735ef5a6746299a611346283dbcfd041", + "url": "https://api.github.com/repos/symfony/security-core/zipball/885f98ee7c4d136db2672a4f02ccb412f15d8921", + "reference": "885f98ee7c4d136db2672a4f02ccb412f15d8921", "shasum": "" }, "require": { @@ -1600,11 +1600,11 @@ ], "description": "Symfony Security Component - Core Library", "homepage": "https://symfony.com", - "time": "2016-05-09 19:34:47" + "time": "2016-06-29 05:29:29" }, { "name": "symfony/security-csrf", - "version": "v2.8.7", + "version": "v2.8.8", "source": { "type": "git", "url": "https://github.com/symfony/security-csrf.git", @@ -1662,16 +1662,16 @@ }, { "name": "symfony/stopwatch", - "version": "v2.8.7", + "version": "v2.8.8", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "5e628055488bcc42dbace3af65be435d094e37e4" + "reference": "35bae476693150728b0eb51647faac82faf9aaca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/5e628055488bcc42dbace3af65be435d094e37e4", - "reference": "5e628055488bcc42dbace3af65be435d094e37e4", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/35bae476693150728b0eb51647faac82faf9aaca", + "reference": "35bae476693150728b0eb51647faac82faf9aaca", "shasum": "" }, "require": { @@ -1707,11 +1707,11 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2016-06-06 11:11:27" + "time": "2016-06-29 05:29:29" }, { "name": "symfony/templating", - "version": "v2.8.7", + "version": "v2.8.8", "source": { "type": "git", "url": "https://github.com/symfony/templating.git", @@ -2144,22 +2144,22 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "3.0.2", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "45ada3e3fd09789fbfbd6d65b3f0901f0030dc61" + "reference": "9270140b940ff02e58ec577c237274e92cd40cdd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/45ada3e3fd09789fbfbd6d65b3f0901f0030dc61", - "reference": "45ada3e3fd09789fbfbd6d65b3f0901f0030dc61", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9270140b940ff02e58ec577c237274e92cd40cdd", + "reference": "9270140b940ff02e58ec577c237274e92cd40cdd", "shasum": "" }, "require": { "php": ">=5.5", "phpdocumentor/reflection-common": "^1.0@dev", - "phpdocumentor/type-resolver": "^0.1.5", + "phpdocumentor/type-resolver": "^0.2.0", "webmozart/assert": "^1.0" }, "require-dev": { @@ -2185,20 +2185,20 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2016-06-06 06:44:13" + "time": "2016-06-10 09:48:41" }, { "name": "phpdocumentor/type-resolver", - "version": "0.1.8", + "version": "0.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "9891754231e55d42f0d16988ffb799af39f31a12" + "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9891754231e55d42f0d16988ffb799af39f31a12", - "reference": "9891754231e55d42f0d16988ffb799af39f31a12", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/b39c7a5b194f9ed7bd0dd345c751007a41862443", + "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443", "shasum": "" }, "require": { @@ -2207,7 +2207,7 @@ }, "require-dev": { "mockery/mockery": "^0.9.4", - "phpunit/phpunit": "^5.2" + "phpunit/phpunit": "^5.2||^4.8.24" }, "type": "library", "extra": { @@ -2232,7 +2232,7 @@ "email": "me@mikevanriel.com" } ], - "time": "2016-03-28 10:02:29" + "time": "2016-06-10 07:14:17" }, { "name": "phpspec/prophecy", @@ -2835,16 +2835,16 @@ }, { "name": "sebastian/exporter", - "version": "1.2.1", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "7ae5513327cb536431847bcc0c10edba2701064e" + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/7ae5513327cb536431847bcc0c10edba2701064e", - "reference": "7ae5513327cb536431847bcc0c10edba2701064e", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", "shasum": "" }, "require": { @@ -2852,12 +2852,13 @@ "sebastian/recursion-context": "~1.0" }, "require-dev": { + "ext-mbstring": "*", "phpunit/phpunit": "~4.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "1.3.x-dev" } }, "autoload": { @@ -2897,7 +2898,7 @@ "export", "exporter" ], - "time": "2015-06-21 07:55:53" + "time": "2016-06-17 09:04:28" }, { "name": "sebastian/global-state", @@ -3090,9 +3091,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "qtism/qtism": 20 - }, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php b/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php index cc67e64f..b09c4ab0 100644 --- a/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php +++ b/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php @@ -45,8 +45,7 @@ public function convert(BaseQuestionType $questionType, $interactionIdentifier, $imageObject = $this->buildMainImageObject($question->get_image()); $hasMultiResponses = !empty($question->get_multiple_responses()) && $question->get_multiple_responses(); $maxChoices = $hasMultiResponses ? $choicesCollection->count() : 1; - $interaction = new HotspotInteraction($interactionIdentifier, $imageObject, $choicesCollection); - $interaction->setMaxChoices($maxChoices); + $interaction = new HotspotInteraction($interactionIdentifier, $imageObject, $maxChoices, $choicesCollection); // Set min choices are 0 because we allow no responses $interaction->setMinChoices(0); diff --git a/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php b/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php index 44168554..9ea002fc 100644 --- a/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php +++ b/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php @@ -17,7 +17,7 @@ public static function buildWithRectShapesChoices($responseIdentifier) $imageObject->setWidth(131); $imageObject->setHeight(37); $collection = self::buildRectShapesChoices(); - return new HotspotInteraction($responseIdentifier, $imageObject, $collection); + return new HotspotInteraction($responseIdentifier, $imageObject, 0, $collection); } public static function buildWithCircleShapesChoices($responseIdentifier) @@ -31,7 +31,7 @@ public static function buildWithCircleShapesChoices($responseIdentifier) $collection->attach(new HotspotChoice('B', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [118, 184, 8]))); $collection->attach(new HotspotChoice('C', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [150, 235, 8]))); $collection->attach(new HotspotChoice('D', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [96, 114, 8]))); - return new HotspotInteraction($responseIdentifier, $imageObject, $collection); + return new HotspotInteraction($responseIdentifier, $imageObject, 0, $collection); } public static function buildWithPolyShapesChoices($responseIdentifier) diff --git a/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php b/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php index 805bc1a4..a04428da 100644 --- a/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php +++ b/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php @@ -17,7 +17,7 @@ public function testImageWithoutWidth() $imageObject = new Object('http://anyurl.com', 'image/png'); $collection = HotspotInteractionBuilder::buildRectShapesChoices(); - $interaction = new HotspotInteraction('thisJustWontWork', $imageObject, $collection); + $interaction = new HotspotInteraction('thisJustWontWork', $imageObject, 0, $collection); $responseProcessingTemplate = ResponseProcessingTemplate::matchCorrect(); $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse('thisJustWontWork', ['A']); From 7e1fc7945f41a9b46c4e35b94da464276a1bade1 Mon Sep 17 00:00:00 2001 From: Stella Lie Date: Wed, 10 Aug 2016 17:36:21 +1000 Subject: [PATCH 4/4] Add more tests and fix few bugs and update latest qti version --- composer.json | 2 +- composer.lock | 113 +++++++++--------- .../Interactions/MatchInteractionMapper.php | 14 ++- src/Processors/QtiV2/In/TestMapper.php | 57 ++------- .../TextEntryInteractionValidationBuilder.php | 15 ++- .../QtiV2/Out/QuestionTypes/HotspotMapper.php | 3 +- src/Utils/SimpleHtmlDom/simple_html_dom.php | 44 +++---- tests/Fixtures/tests/rtest01.xml | 16 +++ tests/Fixtures/tests/rtest02.xml | 38 ++++++ tests/Fixtures/tests/rtest03.xml | 38 ++++++ tests/Integration/ConverterTest.php | 6 + .../Processors/QtiV2/In/TestMapperTest.php | 43 +++++++ .../In/Fixtures/HotspotInteractionBuilder.php | 4 +- .../Interactions/HotspotInteractionTest.php | 2 +- 14 files changed, 259 insertions(+), 136 deletions(-) create mode 100644 tests/Fixtures/tests/rtest01.xml create mode 100644 tests/Fixtures/tests/rtest02.xml create mode 100644 tests/Fixtures/tests/rtest03.xml create mode 100644 tests/Integration/Processors/QtiV2/In/TestMapperTest.php diff --git a/composer.json b/composer.json index db03b02e..d57b7070 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "symfony/dependency-injection": "v2.6.8", "jms/aop-bundle": "1.0.1", "jms/di-extra-bundle": "1.5.0", - "qtism/qtism": "3.2.3" + "qtism/qtism": "4.2.0" }, "require-dev": { "phpunit/phpunit": "4.8.4" diff --git a/composer.lock b/composer.lock index 011a34d3..4469f77c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "73ec6819cd6a6ab284fc9ffecb2db34d", - "content-hash": "bcb2cf4e09c0d4b326ae9d44c24cd120", + "hash": "aa9b86795b162e6a00750d19bb569b24", + "content-hash": "a26cd62e6415f57b8632a899895ab9a3", "packages": [ { "name": "doctrine/annotations", @@ -469,16 +469,16 @@ }, { "name": "qtism/qtism", - "version": "3.2.3", + "version": "4.2.0", "source": { "type": "git", "url": "https://github.com/oat-sa/qti-sdk.git", - "reference": "ba25bee79f055c762716c632c1b7e5a85c9b3013" + "reference": "6dada5a4d83aa4cdfbbbb21a6137a385055bcd14" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/oat-sa/qti-sdk/zipball/ba25bee79f055c762716c632c1b7e5a85c9b3013", - "reference": "ba25bee79f055c762716c632c1b7e5a85c9b3013", + "url": "https://api.github.com/repos/oat-sa/qti-sdk/zipball/6dada5a4d83aa4cdfbbbb21a6137a385055bcd14", + "reference": "6dada5a4d83aa4cdfbbbb21a6137a385055bcd14", "shasum": "" }, "require": { @@ -530,7 +530,7 @@ "QTI", "TAO" ], - "time": "2016-05-09 10:51:41" + "time": "2016-08-03 15:33:47" }, { "name": "symfony/config", @@ -585,16 +585,16 @@ }, { "name": "symfony/debug", - "version": "v2.8.8", + "version": "v2.8.9", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "2477199ad1dd1c43fe18a84d7907fffa025eff10" + "reference": "f7c5256f43debdabec79146a5db226fd15aedbea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/2477199ad1dd1c43fe18a84d7907fffa025eff10", - "reference": "2477199ad1dd1c43fe18a84d7907fffa025eff10", + "url": "https://api.github.com/repos/symfony/debug/zipball/f7c5256f43debdabec79146a5db226fd15aedbea", + "reference": "f7c5256f43debdabec79146a5db226fd15aedbea", "shasum": "" }, "require": { @@ -638,7 +638,7 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2016-06-29 05:29:29" + "time": "2016-07-30 07:20:35" }, { "name": "symfony/dependency-injection", @@ -703,16 +703,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v2.8.8", + "version": "v2.8.9", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "b180b70439dca70049b6b9b7e21d75e6e5d7aca9" + "reference": "889983a79a043dfda68f38c38b6dba092dd49cd8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/b180b70439dca70049b6b9b7e21d75e6e5d7aca9", - "reference": "b180b70439dca70049b6b9b7e21d75e6e5d7aca9", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/889983a79a043dfda68f38c38b6dba092dd49cd8", + "reference": "889983a79a043dfda68f38c38b6dba092dd49cd8", "shasum": "" }, "require": { @@ -759,20 +759,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2016-06-29 05:29:29" + "time": "2016-07-28 16:56:28" }, { "name": "symfony/filesystem", - "version": "v2.8.8", + "version": "v2.8.9", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "7258ddd6f987053f21fa43d03430580ba54e6096" + "reference": "ab4c3f085c8f5a56536845bf985c4cef30bf75fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/7258ddd6f987053f21fa43d03430580ba54e6096", - "reference": "7258ddd6f987053f21fa43d03430580ba54e6096", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/ab4c3f085c8f5a56536845bf985c4cef30bf75fd", + "reference": "ab4c3f085c8f5a56536845bf985c4cef30bf75fd", "shasum": "" }, "require": { @@ -808,7 +808,7 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2016-06-29 05:31:50" + "time": "2016-07-20 05:41:28" }, { "name": "symfony/finder", @@ -945,16 +945,16 @@ }, { "name": "symfony/http-foundation", - "version": "v2.8.8", + "version": "v2.8.9", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "7a55440a2bebd37b8bd06f99f5def1ddf0aa9249" + "reference": "f20bea598906c990eebe3c70a63ca5ed18cdbc11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/7a55440a2bebd37b8bd06f99f5def1ddf0aa9249", - "reference": "7a55440a2bebd37b8bd06f99f5def1ddf0aa9249", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/f20bea598906c990eebe3c70a63ca5ed18cdbc11", + "reference": "f20bea598906c990eebe3c70a63ca5ed18cdbc11", "shasum": "" }, "require": { @@ -996,7 +996,7 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2016-06-29 07:02:14" + "time": "2016-07-30 07:20:35" }, { "name": "symfony/http-kernel", @@ -1418,16 +1418,16 @@ }, { "name": "symfony/process", - "version": "v2.8.8", + "version": "v2.8.9", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "89f33c16796415ccfd8bb3cf8d520cbb79899bfe" + "reference": "d20332e43e8774ff8870b394f3dd6020cc7f8e0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/89f33c16796415ccfd8bb3cf8d520cbb79899bfe", - "reference": "89f33c16796415ccfd8bb3cf8d520cbb79899bfe", + "url": "https://api.github.com/repos/symfony/process/zipball/d20332e43e8774ff8870b394f3dd6020cc7f8e0c", + "reference": "d20332e43e8774ff8870b394f3dd6020cc7f8e0c", "shasum": "" }, "require": { @@ -1463,7 +1463,7 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2016-06-29 05:29:29" + "time": "2016-07-28 11:13:19" }, { "name": "symfony/routing", @@ -1536,16 +1536,16 @@ }, { "name": "symfony/security-core", - "version": "v2.8.8", + "version": "v2.8.9", "source": { "type": "git", "url": "https://github.com/symfony/security-core.git", - "reference": "885f98ee7c4d136db2672a4f02ccb412f15d8921" + "reference": "d9c25d42e002203ab93805f0a59a5b7c5a7dbec9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-core/zipball/885f98ee7c4d136db2672a4f02ccb412f15d8921", - "reference": "885f98ee7c4d136db2672a4f02ccb412f15d8921", + "url": "https://api.github.com/repos/symfony/security-core/zipball/d9c25d42e002203ab93805f0a59a5b7c5a7dbec9", + "reference": "d9c25d42e002203ab93805f0a59a5b7c5a7dbec9", "shasum": "" }, "require": { @@ -1600,20 +1600,20 @@ ], "description": "Symfony Security Component - Core Library", "homepage": "https://symfony.com", - "time": "2016-06-29 05:29:29" + "time": "2016-07-05 11:05:26" }, { "name": "symfony/security-csrf", - "version": "v2.8.8", + "version": "v2.8.9", "source": { "type": "git", "url": "https://github.com/symfony/security-csrf.git", - "reference": "817f35960621fdf3e29ce557cfcb70d3dae903c9" + "reference": "02087a07e04f97351d9337868d07b690eef10d60" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-csrf/zipball/817f35960621fdf3e29ce557cfcb70d3dae903c9", - "reference": "817f35960621fdf3e29ce557cfcb70d3dae903c9", + "url": "https://api.github.com/repos/symfony/security-csrf/zipball/02087a07e04f97351d9337868d07b690eef10d60", + "reference": "02087a07e04f97351d9337868d07b690eef10d60", "shasum": "" }, "require": { @@ -1658,11 +1658,11 @@ ], "description": "Symfony Security Component - CSRF Library", "homepage": "https://symfony.com", - "time": "2016-03-07 14:04:32" + "time": "2016-07-05 11:05:26" }, { "name": "symfony/stopwatch", - "version": "v2.8.8", + "version": "v2.8.9", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", @@ -1711,16 +1711,16 @@ }, { "name": "symfony/templating", - "version": "v2.8.8", + "version": "v2.8.9", "source": { "type": "git", "url": "https://github.com/symfony/templating.git", - "reference": "9a3eb3202f6d2feab53e77b97e3ed10c339972d7" + "reference": "b7e1ea8268c6bb57b50f0f0f950088d1573fedb1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/templating/zipball/9a3eb3202f6d2feab53e77b97e3ed10c339972d7", - "reference": "9a3eb3202f6d2feab53e77b97e3ed10c339972d7", + "url": "https://api.github.com/repos/symfony/templating/zipball/b7e1ea8268c6bb57b50f0f0f950088d1573fedb1", + "reference": "b7e1ea8268c6bb57b50f0f0f950088d1573fedb1", "shasum": "" }, "require": { @@ -1762,7 +1762,7 @@ ], "description": "Symfony Templating Component", "homepage": "https://symfony.com", - "time": "2016-03-27 09:27:49" + "time": "2016-07-30 07:20:35" }, { "name": "symfony/translation", @@ -3041,28 +3041,29 @@ }, { "name": "webmozart/assert", - "version": "1.0.2", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde" + "reference": "bb2d123231c095735130cc8f6d31385a44c7b308" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde", - "reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde", + "url": "https://api.github.com/repos/webmozart/assert/zipball/bb2d123231c095735130cc8f6d31385a44c7b308", + "reference": "bb2d123231c095735130cc8f6d31385a44c7b308", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.3.3|^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.6" + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "1.2-dev" } }, "autoload": { @@ -3086,7 +3087,7 @@ "check", "validate" ], - "time": "2015-08-24 13:29:44" + "time": "2016-08-09 15:02:57" } ], "aliases": [], diff --git a/src/Processors/QtiV2/In/Interactions/MatchInteractionMapper.php b/src/Processors/QtiV2/In/Interactions/MatchInteractionMapper.php index 42203188..60da7dd3 100644 --- a/src/Processors/QtiV2/In/Interactions/MatchInteractionMapper.php +++ b/src/Processors/QtiV2/In/Interactions/MatchInteractionMapper.php @@ -44,7 +44,7 @@ public function getQuestionType() $uiStyle = new choicematrix_ui_style(); $uiStyle->set_type('table'); - $isMultipleResponse = $this->isMultipleResponse($interaction->getTargetChoices()); + $isMultipleResponse = $this->isMultipleResponse($interaction); $question = new choicematrix('choicematrix', $options, $stems); $question->set_multiple_responses($isMultipleResponse); $question->set_stimulus($this->getPrompt()); @@ -55,11 +55,17 @@ public function getQuestionType() return $question; } - private function isMultipleResponse(SimpleMatchSet $targetChoices) + private function isMultipleResponse(QtiMatchInteraction $interaction) { // We determine whether the question shall be mapped to `multiple_responses` as true - // if any the target choices (options) can be mapped to be more than 1 - foreach ($targetChoices->getSimpleAssociableChoices() as $choice) { + // if any the source choices (stems or options) can be mapped to be more than 1 + foreach ($interaction->getSourceChoices()->getSimpleAssociableChoices() as $choice) { + /** @var SimpleAssociableChoice $choice */ + if ($choice->getMatchMax() !== 1) { + return true; + } + } + foreach ($interaction->getTargetChoices()->getSimpleAssociableChoices() as $choice) { /** @var SimpleAssociableChoice $choice */ if ($choice->getMatchMax() !== 1) { return true; diff --git a/src/Processors/QtiV2/In/TestMapper.php b/src/Processors/QtiV2/In/TestMapper.php index 999d7c47..b3c72190 100644 --- a/src/Processors/QtiV2/In/TestMapper.php +++ b/src/Processors/QtiV2/In/TestMapper.php @@ -2,21 +2,12 @@ namespace LearnosityQti\Processors\QtiV2\In; -use LearnosityQti\AppContainer; use LearnosityQti\Entities\Activity\activity; use LearnosityQti\Entities\Activity\activity_data; -use LearnosityQti\Entities\Activity\activity_data_sections_item; -use LearnosityQti\Entities\Activity\activity_data_sections_item_config; use LearnosityQti\Exceptions\MappingException; -use LearnosityQti\Processors\QtiV2\In\Processings\ProcessingInterface; use LearnosityQti\Services\LogService; use qtism\data\AssessmentItem; -use qtism\data\AssessmentItemRef; -use qtism\data\AssessmentSection; -use qtism\data\AssessmentSectionCollection; use qtism\data\AssessmentTest; -use qtism\data\content\ItemBody; -use qtism\data\processing\ResponseProcessing; use qtism\data\storage\xml\XmlDocument; class TestMapper @@ -38,44 +29,20 @@ public function parse($xmlString, $validate = true) throw new MappingException('XML is not a valid document'); } - // TODO: Write up the exceptions! - return [$this->buildActivity($assessmentTest), []]; - } + // Ignore `testPart` and `assessmentSection`. Grab every item references and merge in array + $itemReferences = []; + foreach ($assessmentTest->getComponentsByClassName('assessmentItemRef', true) as $assessmentItemRef) { + $itemReferences[] = $assessmentItemRef->getIdentifier(); + } + LogService::log('Support for mapping is very limited. Elements such `testPart`, `assessmentSections`, `seclection`, `rubricBlock`, ' + . 'etc are ignored. Please see developer docs for more details'); - private function buildActivity(AssessmentTest $assessmentTest) - { $data = new activity_data(); + $data->set_items($itemReferences); + $activity = new activity($assessmentTest->getIdentifier(), $data); - // Support on sections first - $sectionCollection = $assessmentTest->getComponentsByClassName('assessmentSection', true); - $sections = []; - /** @var AssessmentSection $assessmentSection */ - foreach ($sectionCollection as $assessmentSection) { - $references = []; - - // Populate item references - $itemRefCollection = $assessmentSection->getComponentsByClassName('assessmentItemRef', true); - /** @var AssessmentItemRef $assessmentItemRef */ - foreach ($itemRefCollection as $assessmentItemRef) { - $references[] = $assessmentItemRef->getIdentifier(); - } - $section = new activity_data_sections_item(); - $section->set_items($references); - - // Set assessment section title if exists - if (!empty($assessmentSection->getTitle())) { - $sectionConfig = new activity_data_sections_item_config(); - $sectionConfig->set_subtitle($assessmentSection->getTitle()); - $section->set_config($sectionConfig); - } - - $sections[] = $section; - } - $data->set_sections($sections); - $reference = $assessmentTest->getIdentifier(); - $activity = new activity($reference, $data); - - // Return dah` activity~! - return $activity; + // Flush out all the error messages stored in this static class, also ensure they are unique + $messages = array_values(array_unique(LogService::flush())); + return [$activity, $messages]; } } diff --git a/src/Processors/QtiV2/In/Validation/TextEntryInteractionValidationBuilder.php b/src/Processors/QtiV2/In/Validation/TextEntryInteractionValidationBuilder.php index 69525e94..c1c113df 100644 --- a/src/Processors/QtiV2/In/Validation/TextEntryInteractionValidationBuilder.php +++ b/src/Processors/QtiV2/In/Validation/TextEntryInteractionValidationBuilder.php @@ -3,6 +3,7 @@ use LearnosityQti\Processors\Learnosity\In\ValidationBuilder\ValidationBuilder; use LearnosityQti\Processors\Learnosity\In\ValidationBuilder\ValidResponse; +use LearnosityQti\Services\LogService; use LearnosityQti\Utils\ArrayUtil; use qtism\data\state\MapEntry; use qtism\data\state\ResponseDeclaration; @@ -31,11 +32,15 @@ protected function getMatchCorrectTemplateValidation() $interactionResponses = []; foreach ($this->responseDeclarations as $responseIdentifier => $responseDeclaration) { /** @var ResponseDeclaration $responseDeclaration */ - $correctResponses = $responseDeclaration->getCorrectResponse()->getValues()->getArrayCopy(true); - $interactionResponses[] = array_map(function ($value) { - /** @var Value $value */ - return new ValidResponse(1, [$value->getValue()]); - }, $correctResponses); + if (!empty($responseDeclaration->getCorrectResponse())) { + $correctResponses = $responseDeclaration->getCorrectResponse()->getValues()->getArrayCopy(true); + $interactionResponses[] = array_map(function ($value) { + /** @var Value $value */ + return new ValidResponse(1, [$value->getValue()]); + }, $correctResponses); + } else { + LogService::log('Response declaration has no correct response values. Thus, validation ignored'); + } } $responses = ArrayUtil::cartesianProductForResponses($interactionResponses); return ValidationBuilder::build('clozetext', 'exactMatch', $responses); diff --git a/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php b/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php index b09c4ab0..cc67e64f 100644 --- a/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php +++ b/src/Processors/QtiV2/Out/QuestionTypes/HotspotMapper.php @@ -45,7 +45,8 @@ public function convert(BaseQuestionType $questionType, $interactionIdentifier, $imageObject = $this->buildMainImageObject($question->get_image()); $hasMultiResponses = !empty($question->get_multiple_responses()) && $question->get_multiple_responses(); $maxChoices = $hasMultiResponses ? $choicesCollection->count() : 1; - $interaction = new HotspotInteraction($interactionIdentifier, $imageObject, $maxChoices, $choicesCollection); + $interaction = new HotspotInteraction($interactionIdentifier, $imageObject, $choicesCollection); + $interaction->setMaxChoices($maxChoices); // Set min choices are 0 because we allow no responses $interaction->setMinChoices(0); diff --git a/src/Utils/SimpleHtmlDom/simple_html_dom.php b/src/Utils/SimpleHtmlDom/simple_html_dom.php index 990f7de1..9c29e264 100644 --- a/src/Utils/SimpleHtmlDom/simple_html_dom.php +++ b/src/Utils/SimpleHtmlDom/simple_html_dom.php @@ -46,27 +46,29 @@ * All of the Defines for the classes below. * @author S.C. Chen */ -define('HDOM_TYPE_ELEMENT', 1); -define('HDOM_TYPE_COMMENT', 2); -define('HDOM_TYPE_TEXT', 3); -define('HDOM_TYPE_ENDTAG', 4); -define('HDOM_TYPE_ROOT', 5); -define('HDOM_TYPE_UNKNOWN', 6); -define('HDOM_QUOTE_DOUBLE', 0); -define('HDOM_QUOTE_SINGLE', 1); -define('HDOM_QUOTE_NO', 3); -define('HDOM_INFO_BEGIN', 0); -define('HDOM_INFO_END', 1); -define('HDOM_INFO_QUOTE', 2); -define('HDOM_INFO_SPACE', 3); -define('HDOM_INFO_TEXT', 4); -define('HDOM_INFO_INNER', 5); -define('HDOM_INFO_OUTER', 6); -define('HDOM_INFO_ENDSPACE',7); -define('DEFAULT_TARGET_CHARSET', 'UTF-8'); -define('DEFAULT_BR_TEXT', "\r\n"); -define('DEFAULT_SPAN_TEXT', " "); -define('MAX_FILE_SIZE', 600000); +if (!defined('HDOM_TYPE_ELEMENT')) { + define('HDOM_TYPE_ELEMENT', 1); + define('HDOM_TYPE_COMMENT', 2); + define('HDOM_TYPE_TEXT', 3); + define('HDOM_TYPE_ENDTAG', 4); + define('HDOM_TYPE_ROOT', 5); + define('HDOM_TYPE_UNKNOWN', 6); + define('HDOM_QUOTE_DOUBLE', 0); + define('HDOM_QUOTE_SINGLE', 1); + define('HDOM_QUOTE_NO', 3); + define('HDOM_INFO_BEGIN', 0); + define('HDOM_INFO_END', 1); + define('HDOM_INFO_QUOTE', 2); + define('HDOM_INFO_SPACE', 3); + define('HDOM_INFO_TEXT', 4); + define('HDOM_INFO_INNER', 5); + define('HDOM_INFO_OUTER', 6); + define('HDOM_INFO_ENDSPACE',7); + define('DEFAULT_TARGET_CHARSET', 'UTF-8'); + define('DEFAULT_BR_TEXT', "\r\n"); + define('DEFAULT_SPAN_TEXT', " "); + define('MAX_FILE_SIZE', 600000); +} // helper functions // ----------------------------------------------------------------------------- // get html dom from file diff --git a/tests/Fixtures/tests/rtest01.xml b/tests/Fixtures/tests/rtest01.xml new file mode 100644 index 00000000..58730db8 --- /dev/null +++ b/tests/Fixtures/tests/rtest01.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + diff --git a/tests/Fixtures/tests/rtest02.xml b/tests/Fixtures/tests/rtest02.xml new file mode 100644 index 00000000..495c2f40 --- /dev/null +++ b/tests/Fixtures/tests/rtest02.xml @@ -0,0 +1,38 @@ + + + + + + + +

Instructions for Section A

+
+ + + +
+ + + + + +

Instructions for Section B

+
+ + + + + + + + +
+
+
diff --git a/tests/Fixtures/tests/rtest03.xml b/tests/Fixtures/tests/rtest03.xml new file mode 100644 index 00000000..9134084a --- /dev/null +++ b/tests/Fixtures/tests/rtest03.xml @@ -0,0 +1,38 @@ + + + + + + + +

Instructions for Section A

+
+ + + +
+ + +

Instructions for Section B

+
+ + + + + + +
+
+ + + + + + + +
diff --git a/tests/Integration/ConverterTest.php b/tests/Integration/ConverterTest.php index 9c5e5aa5..3f8bd3a8 100644 --- a/tests/Integration/ConverterTest.php +++ b/tests/Integration/ConverterTest.php @@ -20,6 +20,12 @@ public function testConvertRegularQtiXmlToLearnosityJson() list($item, $questions, $manifest) = Converter::convertQtiItemToLearnosity($xmlString); } + public function testConvertRegularQtiTestXmlToLearnosityJson() + { + $xmlString = $this->getFixtureFileContents('tests/rtest01.xml'); + list($activity, $manifest) = Converter::convertQtiTestToLearnosity($xmlString); + } + public function testConvertRegularQtiXmlWithCdataToLearnosityJson() { $xmlString = $this->getFixtureFileContents('otherqtis/withcdata.xml'); diff --git a/tests/Integration/Processors/QtiV2/In/TestMapperTest.php b/tests/Integration/Processors/QtiV2/In/TestMapperTest.php new file mode 100644 index 00000000..25079e3d --- /dev/null +++ b/tests/Integration/Processors/QtiV2/In/TestMapperTest.php @@ -0,0 +1,43 @@ +getFixtureFileContents('tests/rtest01.xml'); + $testMapper = AppContainer::getApplicationContainer()->get('qtiv2_test_mapper'); + list($activity, $manifest) = $testMapper->parse($xml); + + /** @var activity $activity */ + $this->assertTrue($activity instanceof activity); + $this->assertCount(3, $activity->get_data()->get_items()); + } + + public function testParseWithSectionsTwo() + { + $xml = $this->getFixtureFileContents('tests/rtest02.xml'); + $testMapper = AppContainer::getApplicationContainer()->get('qtiv2_test_mapper'); + list($activity, $manifest) = $testMapper->parse($xml); + + /** @var activity $activity */ + $this->assertTrue($activity instanceof activity); + $this->assertCount(9, $activity->get_data()->get_items()); + } + + public function testParseWithSectionsThree() + { + $xml = $this->getFixtureFileContents('tests/rtest03.xml'); + $testMapper = AppContainer::getApplicationContainer()->get('qtiv2_test_mapper'); + list($activity, $manifest) = $testMapper->parse($xml); + + /** @var activity $activity */ + $this->assertTrue($activity instanceof activity); + $this->assertCount(9, $activity->get_data()->get_items()); + } +} diff --git a/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php b/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php index 9ea002fc..44168554 100644 --- a/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php +++ b/tests/Unit/Processors/QtiV2/In/Fixtures/HotspotInteractionBuilder.php @@ -17,7 +17,7 @@ public static function buildWithRectShapesChoices($responseIdentifier) $imageObject->setWidth(131); $imageObject->setHeight(37); $collection = self::buildRectShapesChoices(); - return new HotspotInteraction($responseIdentifier, $imageObject, 0, $collection); + return new HotspotInteraction($responseIdentifier, $imageObject, $collection); } public static function buildWithCircleShapesChoices($responseIdentifier) @@ -31,7 +31,7 @@ public static function buildWithCircleShapesChoices($responseIdentifier) $collection->attach(new HotspotChoice('B', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [118, 184, 8]))); $collection->attach(new HotspotChoice('C', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [150, 235, 8]))); $collection->attach(new HotspotChoice('D', QtiShape::CIRCLE, new QtiCoords(QtiShape::CIRCLE, [96, 114, 8]))); - return new HotspotInteraction($responseIdentifier, $imageObject, 0, $collection); + return new HotspotInteraction($responseIdentifier, $imageObject, $collection); } public static function buildWithPolyShapesChoices($responseIdentifier) diff --git a/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php b/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php index a04428da..805bc1a4 100644 --- a/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php +++ b/tests/Unit/Processors/QtiV2/In/Interactions/HotspotInteractionTest.php @@ -17,7 +17,7 @@ public function testImageWithoutWidth() $imageObject = new Object('http://anyurl.com', 'image/png'); $collection = HotspotInteractionBuilder::buildRectShapesChoices(); - $interaction = new HotspotInteraction('thisJustWontWork', $imageObject, 0, $collection); + $interaction = new HotspotInteraction('thisJustWontWork', $imageObject, $collection); $responseProcessingTemplate = ResponseProcessingTemplate::matchCorrect(); $responseDeclaration = ResponseDeclarationBuilder::buildWithCorrectResponse('thisJustWontWork', ['A']);