Skip to content

Commit

Permalink
MDL-72912 questions: fix type of question_display_options::$context
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Oct 26, 2021
1 parent 01bdec3 commit 466b944
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions question/engine/lib.php
Expand Up @@ -66,7 +66,7 @@ abstract class question_engine {
* {@link save_questions_usage_by_activity()}.
*
* @param string $component the plugin creating this attempt. For example mod_quiz.
* @param object $context the context this usage belongs to.
* @param context $context the context this usage belongs to.
* @return question_usage_by_activity the newly created object.
*/
public static function make_questions_usage_by_activity($component, $context) {
Expand Down Expand Up @@ -627,7 +627,7 @@ class question_display_options {
public $editquestionparams = array();

/**
* @var int the context the attempt being output belongs to.
* @var context the context the attempt being output belongs to.
*/
public $context;

Expand Down Expand Up @@ -1011,9 +1011,10 @@ public static function to_plain_text($text, $format, $options = array('noclean'
/**
* Get the options required to configure the filepicker for one of the editor
* toolbar buttons.
*
* @param mixed $acceptedtypes array of types of '*'.
* @param int $draftitemid the draft area item id.
* @param object $context the context.
* @param context $context the context.
* @return object the required options.
*/
protected static function specific_filepicker_options($acceptedtypes, $draftitemid, $context) {
Expand All @@ -1034,7 +1035,8 @@ protected static function specific_filepicker_options($acceptedtypes, $draftitem

/**
* Get filepicker options for question related text areas.
* @param object $context the context.
*
* @param context $context the context.
* @param int $draftitemid the draft area item id.
* @return array An array of options
*/
Expand All @@ -1048,7 +1050,8 @@ public static function get_filepicker_options($context, $draftitemid) {

/**
* Get editor options for question related text areas.
* @param object $context the context.
*
* @param context $context the context.
* @return array An array of options
*/
public static function get_editor_options($context) {
Expand Down

0 comments on commit 466b944

Please sign in to comment.