original_string: public function write_hints($question) {
          if (empty($question->hints)) {
              return '';
          }
  
          $output = '';
          foreach ($question->hints as $hint) {
              $output .= $this->write_hint($hint, $question->contextid);
          }
          return $output;
      }
code: public function write_hints($question) {
          if (empty($question->hints)) {
              return '';
          }
  
          $output = '';
          foreach ($question->hints as $hint) {
              $output .= $this->write_hint($hint, $question->contextid);
          }
          return $output;
      }
code_tokens: public function write_hints ( $ question ) { if ( empty ( $ question -> hints ) ) { return '' ; } $ output = '' ; foreach ( $ question -> hints as $ hint ) { $ output .= $ this -> write_hint ( $ hint , $ question -> contextid ) ; } return $ output ; }
docstring: Write out the hints.
  @param object $question the question definition data.
  @return string XML to output.
docstring_tokens: Write out the hints .