Class XoopsLogger
(line 45)
Located in File: Program_Root/class/logger.php
Collects information for a page request
Singelton: There can be only one instance of this class and it must be accessed through the instance() method!
records information about database queries, blocks, and execution time and can display it as HTML
- copyright -
copyright (c) 2000-2003 XOOPS.org
- author -
Kazumi Ono <onokazu@xoops.org>
Class Variable Summary
Default Value: ->array()<-
|
Default Value: ->array()<-
|
Default Value: ->array()<-
|
Default Value: ->array()<-
|
Default Value: ->array()<-
|
Inherited Class Variable Summary
Method Summary
|
|
|
string |
dumpAll ( )
get all logged information formatted in HTML tables
|
|
|
|
|
|
|
|
|
Inherited Method Summary
Method Detail
addBlock (line 121)
void | addBlock(
string
$name, [bool
$cached = false], int
$cachetime) |
log display of a block
- Function Parameters:
- string $name: name of the block
- bool $cached: was the block cached?
- int $cachetime: cachetime of the block
- Function Info:
[ Top ]
addExtra (line 132)
void | addExtra(
string
$name, int
$cachetime) |
log extra information
- Function Parameters:
- string $name: name for the entry
- int $cachetime: cachetime for the entry
- Function Info:
[ Top ]
addQuery (line 109)
void | addQuery(
string
$sql, [string
$error = null], [int
$errno = null]) |
log a database query
- Function Parameters:
- string $sql: SQL string
- string $error: error message (if any)
- int $errno: error number (if any)
- Function Info:
[ Top ]
dumpAll (line 220)
get all logged information formatted in HTML tables
- Function Info:
- return -
HTML output
[ Top ]
dumpBlocks (line 163)
get the logged blocks in a HTML table
- Function Info:
- return -
HTML table with blocks
[ Top ]
dumpExtra (line 203)
get extra information in a HTML table
- Function Info:
- return -
HTML table with extra information
[ Top ]
dumpQueries (line 142)
get the logged queries in a HTML table
- Function Info:
- return -
HTML table with queries
[ Top ]
dumpTime (line 185)
float | dumpTime(
[string
$name = 'XOOPS']) |
get the current execution time of a timer
- Function Parameters:
- string $name: name of the counter
- Function Info:
- return -
current execution time of the counter
[ Top ]
instance (line 72)
get a reference to the only instance of this class
- Function Info:
- return -
reference to the only instance
[ Top ]
startTime (line 87)
void | startTime(
[string
$name = 'XOOPS']) |
start a timer
- Function Parameters:
- string $name: name of the timer
- Function Info:
[ Top ]
stopTime (line 97)
void | stopTime(
[string
$name = 'XOOPS']) |
stop a timer
- Function Parameters:
- string $name: name of the timer
- Function Info:
[ Top ]
Variable Detail
$blocks
(line 51)
Data type: array
$extra
(line 52)
Data type: array
$logend
(line 54)
Data type: array
$logstart
(line 53)
Data type: array
$queries
(line 50)
Data type: array
proudly hosted at