XoopsLogger XoopsLogger(
)
|
|
void addBlock(
string
$name, [bool
$cached = false], [int
$cachetime = 0]
)
|
|
Log display of a block
Parameters:
|
string |
$name: |
name of the block |
|
bool |
$cached: |
was the block cached? |
|
int |
$cachetime: |
cachetime of the block |
void addExtra(
string
$name, int
$msg
)
|
|
Log extra information
Parameters:
|
string |
$name: |
name for the entry |
|
int |
$msg: |
text message for the entry |
void addQuery(
string
$sql, [string
$error = null], [int
$errno = null]
)
|
|
Log a database query
Parameters:
|
string |
$sql: |
SQL string |
|
string |
$error: |
error message (if any) |
|
int |
$errno: |
error number (if any) |
Disabling logger for some special occasion like AJAX requests and XML
When the logger absolutely needs to be disabled whatever it is enabled or not in the preferences and wether user has permission or not to view it
Disable logger output rendering.
void dump(
[
$mode = '']
)
|
|
Parameters:
API Tags:
float dumpTime(
[string
$name = 'ICMS']
)
|
|
get the current execution time of a timer
Parameters:
|
string |
$name: |
name of the counter |
API Tags:
| Return: | current execution time of the counter |
| Access: | protected |
Enable logger output rendering When output rendering is enabled, the logger will insert its output within the page content.
If the string <!--{xo-logger-output}--> is found in the page content, the logger output will replace it, otherwise it will be inserted after all the page output.
void handleError(
$errno,
$errstr,
$errfile,
$errline
)
|
|
Error handling callback (called by the zend engine)
Parameters:
|
|
$errno: |
|
|
|
$errstr: |
|
|
|
$errfile: |
|
|
|
$errline: |
|
Get a reference to the only instance of this class
API Tags:
| Return: | reference to the only instance |
Returns the current microtime in seconds.
Output buffering callback inserting logger dump in page output
Parameters:
void sanitizePath(
$path
)
|
|
Parameters:
API Tags:
void startTime(
[string
$name = 'ICMS']
)
|
|
Start a timer
Parameters:
|
string |
$name: |
name of the timer |
void stopTime(
[string
$name = 'ICMS']
)
|
|
Stop a timer
Parameters:
|
string |
$name: |
name of the timer |