original_string: public function results($total, $created, $updated, $deleted, $errors) {
          if ($this->outputmode == self::NO_OUTPUT) {
              return;
          }
  
          $message = array(
              get_string('coursestotal', 'tool_uploadcourse', $total),
              get_string('coursescreated', 'tool_uploadcourse', $created),
              get_string('coursesupdated', 'tool_uploadcourse', $updated),
              get_string('coursesdeleted', 'tool_uploadcourse', $deleted),
              get_string('courseserrors', 'tool_uploadcourse', $errors)
          );
  
          if ($this->outputmode == self::OUTPUT_PLAIN) {
              foreach ($message as $msg) {
                  $this->buffer->output($msg);
              }
          } else if ($this->outputmode == self::OUTPUT_HTML) {
              $buffer = new progress_trace_buffer(new html_list_progress_trace());
              foreach ($message as $msg) {
                  $buffer->output($msg);
              }
              $buffer->finished();
          }
      }
code: public function results($total, $created, $updated, $deleted, $errors) {
          if ($this->outputmode == self::NO_OUTPUT) {
              return;
          }
  
          $message = array(
              get_string('coursestotal', 'tool_uploadcourse', $total),
              get_string('coursescreated', 'tool_uploadcourse', $created),
              get_string('coursesupdated', 'tool_uploadcourse', $updated),
              get_string('coursesdeleted', 'tool_uploadcourse', $deleted),
              get_string('courseserrors', 'tool_uploadcourse', $errors)
          );
  
          if ($this->outputmode == self::OUTPUT_PLAIN) {
              foreach ($message as $msg) {
                  $this->buffer->output($msg);
              }
          } else if ($this->outputmode == self::OUTPUT_HTML) {
              $buffer = new progress_trace_buffer(new html_list_progress_trace());
              foreach ($message as $msg) {
                  $buffer->output($msg);
              }
              $buffer->finished();
          }
      }
code_tokens: public function results ( $ total , $ created , $ updated , $ deleted , $ errors ) { if ( $ this -> outputmode == self :: NO_OUTPUT ) { return ; } $ message = array ( get_string ( 'coursestotal' , 'tool_uploadcourse' , $ total ) , get_string ( 'coursescreated' , 'tool_uploadcourse' , $ created ) , get_string ( 'coursesupdated' , 'tool_uploadcourse' , $ updated ) , get_string ( 'coursesdeleted' , 'tool_uploadcourse' , $ deleted ) , get_string ( 'courseserrors' , 'tool_uploadcourse' , $ errors ) ) ; if ( $ this -> outputmode == self :: OUTPUT_PLAIN ) { foreach ( $ message as $ msg ) { $ this -> buffer -> output ( $ msg ) ; } } else if ( $ this -> outputmode == self :: OUTPUT_HTML ) { $ buffer = new progress_trace_buffer ( new html_list_progress_trace ( ) ) ; foreach ( $ message as $ msg ) { $ buffer -> output ( $ msg ) ; } $ buffer -> finished ( ) ; } }
docstring: Output the results.
  
  @param int $total total courses.
  @param int $created count of courses created.
  @param int $updated count of courses updated.
  @param int $deleted count of courses deleted.
  @param int $errors count of errors.
  @return void
docstring_tokens: Output the results .