original_string: public function connection_warning() {
          $options = array('filter' => false, 'newlines' => false);
          $warning = format_text(get_string('connectionerror', 'quiz'), FORMAT_MARKDOWN, $options);
          $ok = format_text(get_string('connectionok', 'quiz'), FORMAT_MARKDOWN, $options);
          return html_writer::tag('div', $warning,
                      array('id' => 'connection-error', 'style' => 'display: none;', 'role' => 'alert')) .
                      html_writer::tag('div', $ok, array('id' => 'connection-ok', 'style' => 'display: none;', 'role' => 'alert'));
      }
code: public function connection_warning() {
          $options = array('filter' => false, 'newlines' => false);
          $warning = format_text(get_string('connectionerror', 'quiz'), FORMAT_MARKDOWN, $options);
          $ok = format_text(get_string('connectionok', 'quiz'), FORMAT_MARKDOWN, $options);
          return html_writer::tag('div', $warning,
                      array('id' => 'connection-error', 'style' => 'display: none;', 'role' => 'alert')) .
                      html_writer::tag('div', $ok, array('id' => 'connection-ok', 'style' => 'display: none;', 'role' => 'alert'));
      }
code_tokens: public function connection_warning ( ) { $ options = array ( 'filter' => false , 'newlines' => false ) ; $ warning = format_text ( get_string ( 'connectionerror' , 'quiz' ) , FORMAT_MARKDOWN , $ options ) ; $ ok = format_text ( get_string ( 'connectionok' , 'quiz' ) , FORMAT_MARKDOWN , $ options ) ; return html_writer :: tag ( 'div' , $ warning , array ( 'id' => 'connection-error' , 'style' => 'display: none;' , 'role' => 'alert' ) ) . html_writer :: tag ( 'div' , $ ok , array ( 'id' => 'connection-ok' , 'style' => 'display: none;' , 'role' => 'alert' ) ) ; }
docstring: Output the connection warning messages, which are initially hidden, and
  only revealed by JavaScript if necessary.
docstring_tokens: Output the connection warning messages which are initially hidden and only revealed by JavaScript if necessary .