芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/cepali/backup/util/loggers/core_backup_html_logger.class.php
. /** * Logger that stores HTML log data in memory, ready for later display. * * @package core_backup * @copyright 2013 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class core_backup_html_logger extends base_logger { /** * @var string HTML output */ protected $html = ''; protected function action($message, $level, $options = null) { $prefix = $this->get_prefix($level, $options); $depth = isset($options['depth']) ? $options['depth'] : 0; $this->html .= $prefix . str_repeat(' ', $depth) . s($message) . '
' . PHP_EOL; return true; } /** * Gets the full HTML content of the log. * * @return string HTML content of log */ public function get_html() { return $this->html; } }