MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mtrace.class
Ir para a documentação deste ficheiro.
1
<?php
6
class
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> $t</td></tr>\n"
;
65
66
$html .=
"</table>\n"
;
67
}
68
69
return
$html;
70
}
71
}
72
?>
MService
Definição
mservice.class:7
MTrace
Definição
mtrace.class:7
MTrace\__construct
__construct()
Definição
mtrace.class:25
MTrace\TraceDump
TraceDump()
Definição
mtrace.class:57
MTrace\Trace
Trace($msg, $file='', $line=0)
Definição
mtrace.class:42
classes
services
mtrace.class
Gerado por
1.10.0