original_string: protected function create_default_options($question) {
          // Create a default question options record.
          $options = new stdClass();
          $options->questionid = $question->id;
  
          // Get the default strings and just set the format.
          $options->correctfeedback = get_string('correctfeedbackdefault', 'question');
          $options->correctfeedbackformat = FORMAT_HTML;
          $options->partiallycorrectfeedback = get_string('partiallycorrectfeedbackdefault', 'question');;
          $options->partiallycorrectfeedbackformat = FORMAT_HTML;
          $options->incorrectfeedback = get_string('incorrectfeedbackdefault', 'question');
          $options->incorrectfeedbackformat = FORMAT_HTML;
  
          $config = get_config('qtype_multichoice');
          $options->single = $config->answerhowmany;
          if (isset($question->layout)) {
              $options->layout = $question->layout;
          }
          $options->answernumbering = $config->answernumbering;
          $options->shuffleanswers = $config->shuffleanswers;
          $options->shownumcorrect = 1;
  
          return $options;
      }
code: protected function create_default_options($question) {
          // Create a default question options record.
          $options = new stdClass();
          $options->questionid = $question->id;
  
          // Get the default strings and just set the format.
          $options->correctfeedback = get_string('correctfeedbackdefault', 'question');
          $options->correctfeedbackformat = FORMAT_HTML;
          $options->partiallycorrectfeedback = get_string('partiallycorrectfeedbackdefault', 'question');;
          $options->partiallycorrectfeedbackformat = FORMAT_HTML;
          $options->incorrectfeedback = get_string('incorrectfeedbackdefault', 'question');
          $options->incorrectfeedbackformat = FORMAT_HTML;
  
          $config = get_config('qtype_multichoice');
          $options->single = $config->answerhowmany;
          if (isset($question->layout)) {
              $options->layout = $question->layout;
          }
          $options->answernumbering = $config->answernumbering;
          $options->shuffleanswers = $config->shuffleanswers;
          $options->shownumcorrect = 1;
  
          return $options;
      }
code_tokens: protected function create_default_options ( $ question ) { // Create a default question options record. $ options = new stdClass ( ) ; $ options -> questionid = $ question -> id ; // Get the default strings and just set the format. $ options -> correctfeedback = get_string ( 'correctfeedbackdefault' , 'question' ) ; $ options -> correctfeedbackformat = FORMAT_HTML ; $ options -> partiallycorrectfeedback = get_string ( 'partiallycorrectfeedbackdefault' , 'question' ) ; ; $ options -> partiallycorrectfeedbackformat = FORMAT_HTML ; $ options -> incorrectfeedback = get_string ( 'incorrectfeedbackdefault' , 'question' ) ; $ options -> incorrectfeedbackformat = FORMAT_HTML ; $ config = get_config ( 'qtype_multichoice' ) ; $ options -> single = $ config -> answerhowmany ; if ( isset ( $ question -> layout ) ) { $ options -> layout = $ question -> layout ; } $ options -> answernumbering = $ config -> answernumbering ; $ options -> shuffleanswers = $ config -> shuffleanswers ; $ options -> shownumcorrect = 1 ; return $ options ; }
docstring: Create a default options object for the provided question.
  
  @param object $question The queston we are working with.
  @return object The options object.
docstring_tokens: Create a default options object for the provided question .