original_string: protected function log($langstring, $a = null, $leaveopen = false) {
          if (!$this->progress) {
              return;
          }
          if (CLI_SCRIPT) {
              echo '* ';
          } else {
              echo html_writer::start_tag('li');
          }
          echo get_string('progress_' . $langstring, 'tool_generator', $a);
          if (!$leaveopen) {
              if (CLI_SCRIPT) {
                  echo "\n";
              } else {
                  echo html_writer::end_tag('li');
              }
          } else {
              echo ': ';
              $this->lastdot = time();
              $this->lastpercentage = $this->lastdot;
              $this->starttime = microtime(true);
          }
      }
code: protected function log($langstring, $a = null, $leaveopen = false) {
          if (!$this->progress) {
              return;
          }
          if (CLI_SCRIPT) {
              echo '* ';
          } else {
              echo html_writer::start_tag('li');
          }
          echo get_string('progress_' . $langstring, 'tool_generator', $a);
          if (!$leaveopen) {
              if (CLI_SCRIPT) {
                  echo "\n";
              } else {
                  echo html_writer::end_tag('li');
              }
          } else {
              echo ': ';
              $this->lastdot = time();
              $this->lastpercentage = $this->lastdot;
              $this->starttime = microtime(true);
          }
      }
code_tokens: protected function log ( $ langstring , $ a = null , $ leaveopen = false ) { if ( ! $ this -> progress ) { return ; } if ( CLI_SCRIPT ) { echo '* ' ; } else { echo html_writer :: start_tag ( 'li' ) ; } echo get_string ( 'progress_' . $ langstring , 'tool_generator' , $ a ) ; if ( ! $ leaveopen ) { if ( CLI_SCRIPT ) { echo "\n" ; } else { echo html_writer :: end_tag ( 'li' ) ; } } else { echo ': ' ; $ this -> lastdot = time ( ) ; $ this -> lastpercentage = $ this -> lastdot ; $ this -> starttime = microtime ( true ) ; } }
docstring: Displays information as part of progress.
  @param string $langstring Part of langstring (after progress_)
  @param mixed $a Optional lang string parameters
  @param bool $leaveopen If true, doesn't close LI tag (ready for dots)
docstring_tokens: Displays information as part of progress .