MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mtrace.class
Ir para a documentação deste ficheiro.
1<?php
6class MTrace extends MService
7{
11 private $trace;
12
16 private $log;
17
25 function __construct()
26 {
27 parent::__construct();
28 $this->log = $this->manager->log;
29 }
30
42 function Trace($msg, $file = '', $line = 0)
43 {
44 $message = $msg;
45 if ($file != '') $message .= " [file: $file] [line: $line]";
46 $this->trace[] = $message;
47 $this->log->LogMessage('[TRACE]' . $message);
48 }
49
57 function TraceDump()
58 {
59 if ($this->trace)
60 {
61 $html = "<p><b>Tracing Information:</b>\n" . "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
62
63 foreach ($this->trace as $t)
64 $html .= "<tr><td>&nbsp;&nbsp;$t</td></tr>\n";
65
66 $html .= "</table>\n";
67 }
68
69 return $html;
70 }
71}
72?>
__construct()
Definição mtrace.class:25
TraceDump()
Definição mtrace.class:57
Trace($msg, $file='', $line=0)
Definição mtrace.class:42