. namespace core\output\progress_trace; use core\output\progress_trace; /** * This subclass of progress_trace outputs as HTML. * * @copyright 2009 Tim Hunt * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @package core */ class html_progress_trace extends progress_trace { #[\Override] public function output( string $message, int $depth = 0, ): void { echo '

', str_repeat('  ', $depth), htmlspecialchars($message, ENT_COMPAT), "

\n"; flush(); } } // Alias this class to the old name. // This file will be autoloaded by the legacyclasses autoload system. // In future all uses of this class will be corrected and the legacy references will be removed. class_alias(html_progress_trace::class, \html_progress_trace::class);