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);
        }
    }
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);
        }
    }
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 ) ; } }
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)
Displays information as part of progress .