original_string: public function start() {
          if ($this->outputmode == self::NO_OUTPUT) {
              return;
          }
  
          if ($this->outputmode == self::OUTPUT_PLAIN) {
              $columns = array_flip($this->columns);
              unset($columns['status']);
              $columns = array_flip($columns);
              $this->buffer->output(implode("\t", $columns));
          } else if ($this->outputmode == self::OUTPUT_HTML) {
              $ci = 0;
              echo html_writer::start_tag('table', array('class' => 'generaltable boxaligncenter flexible-wrap',
                  'summary' => get_string('uploadcoursesresult', 'tool_uploadcourse')));
              echo html_writer::start_tag('tr', array('class' => 'heading r' . $this->rownb));
              echo html_writer::tag('th', get_string('csvline', 'tool_uploadcourse'),
                  array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('result', 'tool_uploadcourse'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('id', 'tool_uploadcourse'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('shortname'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('fullname'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('idnumber'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('status'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::end_tag('tr');
          }
      }
code: public function start() {
          if ($this->outputmode == self::NO_OUTPUT) {
              return;
          }
  
          if ($this->outputmode == self::OUTPUT_PLAIN) {
              $columns = array_flip($this->columns);
              unset($columns['status']);
              $columns = array_flip($columns);
              $this->buffer->output(implode("\t", $columns));
          } else if ($this->outputmode == self::OUTPUT_HTML) {
              $ci = 0;
              echo html_writer::start_tag('table', array('class' => 'generaltable boxaligncenter flexible-wrap',
                  'summary' => get_string('uploadcoursesresult', 'tool_uploadcourse')));
              echo html_writer::start_tag('tr', array('class' => 'heading r' . $this->rownb));
              echo html_writer::tag('th', get_string('csvline', 'tool_uploadcourse'),
                  array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('result', 'tool_uploadcourse'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('id', 'tool_uploadcourse'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('shortname'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('fullname'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('idnumber'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::tag('th', get_string('status'), array('class' => 'c' . $ci++, 'scope' => 'col'));
              echo html_writer::end_tag('tr');
          }
      }
code_tokens: public function start ( ) { if ( $ this -> outputmode == self :: NO_OUTPUT ) { return ; } if ( $ this -> outputmode == self :: OUTPUT_PLAIN ) { $ columns = array_flip ( $ this -> columns ) ; unset ( $ columns [ 'status' ] ) ; $ columns = array_flip ( $ columns ) ; $ this -> buffer -> output ( implode ( "\t" , $ columns ) ) ; } else if ( $ this -> outputmode == self :: OUTPUT_HTML ) { $ ci = 0 ; echo html_writer :: start_tag ( 'table' , array ( 'class' => 'generaltable boxaligncenter flexible-wrap' , 'summary' => get_string ( 'uploadcoursesresult' , 'tool_uploadcourse' ) ) ) ; echo html_writer :: start_tag ( 'tr' , array ( 'class' => 'heading r' . $ this -> rownb ) ) ; echo html_writer :: tag ( 'th' , get_string ( 'csvline' , 'tool_uploadcourse' ) , array ( 'class' => 'c' . $ ci ++ , 'scope' => 'col' ) ) ; echo html_writer :: tag ( 'th' , get_string ( 'result' , 'tool_uploadcourse' ) , array ( 'class' => 'c' . $ ci ++ , 'scope' => 'col' ) ) ; echo html_writer :: tag ( 'th' , get_string ( 'id' , 'tool_uploadcourse' ) , array ( 'class' => 'c' . $ ci ++ , 'scope' => 'col' ) ) ; echo html_writer :: tag ( 'th' , get_string ( 'shortname' ) , array ( 'class' => 'c' . $ ci ++ , 'scope' => 'col' ) ) ; echo html_writer :: tag ( 'th' , get_string ( 'fullname' ) , array ( 'class' => 'c' . $ ci ++ , 'scope' => 'col' ) ) ; echo html_writer :: tag ( 'th' , get_string ( 'idnumber' ) , array ( 'class' => 'c' . $ ci ++ , 'scope' => 'col' ) ) ; echo html_writer :: tag ( 'th' , get_string ( 'status' ) , array ( 'class' => 'c' . $ ci ++ , 'scope' => 'col' ) ) ; echo html_writer :: end_tag ( 'tr' ) ; } }
docstring: Start the output.
  
  @return void
docstring_tokens: Start the output .