original_string: protected function get_hint_fields($withclearwrong = false, $withshownumpartscorrect = false) {
          $mform = $this->_form;
  
          $repeatedoptions = array();
          $repeated = array();
          $repeated[] = $mform->createElement('editor', 'hint', get_string('hintn', 'question'),
                  array('rows' => 5), $this->editoroptions);
          $repeatedoptions['hint']['type'] = PARAM_RAW;
  
          $optionelements = array();
          if ($withclearwrong) {
              $optionelements[] = $mform->createElement('advcheckbox', 'hintclearwrong',
                      get_string('options', 'question'), get_string('clearwrongparts', 'question'));
          }
          if ($withshownumpartscorrect) {
              $optionelements[] = $mform->createElement('advcheckbox', 'hintshownumcorrect', '',
                      get_string('shownumpartscorrect', 'question'));
          }
  
          if (count($optionelements)) {
              $repeated[] = $mform->createElement('group', 'hintoptions',
                   get_string('hintnoptions', 'question'), $optionelements, null, false);
          }
  
          return array($repeated, $repeatedoptions);
      }
code: protected function get_hint_fields($withclearwrong = false, $withshownumpartscorrect = false) {
          $mform = $this->_form;
  
          $repeatedoptions = array();
          $repeated = array();
          $repeated[] = $mform->createElement('editor', 'hint', get_string('hintn', 'question'),
                  array('rows' => 5), $this->editoroptions);
          $repeatedoptions['hint']['type'] = PARAM_RAW;
  
          $optionelements = array();
          if ($withclearwrong) {
              $optionelements[] = $mform->createElement('advcheckbox', 'hintclearwrong',
                      get_string('options', 'question'), get_string('clearwrongparts', 'question'));
          }
          if ($withshownumpartscorrect) {
              $optionelements[] = $mform->createElement('advcheckbox', 'hintshownumcorrect', '',
                      get_string('shownumpartscorrect', 'question'));
          }
  
          if (count($optionelements)) {
              $repeated[] = $mform->createElement('group', 'hintoptions',
                   get_string('hintnoptions', 'question'), $optionelements, null, false);
          }
  
          return array($repeated, $repeatedoptions);
      }
code_tokens: protected function get_hint_fields ( $ withclearwrong = false , $ withshownumpartscorrect = false ) { $ mform = $ this -> _form ; $ repeatedoptions = array ( ) ; $ repeated = array ( ) ; $ repeated [ ] = $ mform -> createElement ( 'editor' , 'hint' , get_string ( 'hintn' , 'question' ) , array ( 'rows' => 5 ) , $ this -> editoroptions ) ; $ repeatedoptions [ 'hint' ] [ 'type' ] = PARAM_RAW ; $ optionelements = array ( ) ; if ( $ withclearwrong ) { $ optionelements [ ] = $ mform -> createElement ( 'advcheckbox' , 'hintclearwrong' , get_string ( 'options' , 'question' ) , get_string ( 'clearwrongparts' , 'question' ) ) ; } if ( $ withshownumpartscorrect ) { $ optionelements [ ] = $ mform -> createElement ( 'advcheckbox' , 'hintshownumcorrect' , '' , get_string ( 'shownumpartscorrect' , 'question' ) ) ; } if ( count ( $ optionelements ) ) { $ repeated [ ] = $ mform -> createElement ( 'group' , 'hintoptions' , get_string ( 'hintnoptions' , 'question' ) , $ optionelements , null , false ) ; } return array ( $ repeated , $ repeatedoptions ) ; }
docstring: Create the form elements required by one hint.
  @param string $withclearwrong whether this quesiton type uses the 'Clear wrong' option on hints.
  @param string $withshownumpartscorrect whether this quesiton type uses the 'Show num parts correct' option on hints.
  @return array form field elements for one hint.
docstring_tokens: Create the form elements required by one hint .