|
| __construct () |
|
| instance () |
|
| enableRendering () |
|
| microtime () |
|
| startTime ($name='XOOPS') |
|
| stopTime ($name='XOOPS') |
|
| addQuery ($sql, $error=null, $errno=null, $query_time=null) |
|
| addBlock ($name, $cached=false, $cachetime=0) |
|
| addExtra ($name, $msg) |
|
| addDeprecated ($msg) |
|
| handleError ($errno, $errstr, $errfile, $errline) |
|
| handleException ($e) |
|
| sanitizePath ($path) |
|
| render ($output) |
|
| dump ($mode='') |
|
| dumpTime ($name='XOOPS', $unset=false) |
|
| triggerError ($errkey=0, $errStr='', $errFile='', $errLine='', $errNo=0) |
|
| dumpAll () |
|
| dumpBlocks () |
|
| dumpExtra () |
|
| dumpQueries () |
|
◆ __construct()
◆ addBlock()
addBlock |
( |
|
$name, |
|
|
|
$cached = false , |
|
|
|
$cachetime = 0 |
|
) |
| |
Log display of a block
- Paramètres
-
string | $name | name of the block |
bool | $cached | was the block cached? |
int | $cachetime | cachetime of the block |
◆ addDeprecated()
Log messages for deprecated functions
- Obsolète:
- Paramètres
-
int | $msg | text message for the entry |
◆ addExtra()
Log extra information
- Paramètres
-
string | $name | name for the entry |
int | $msg | text message for the entry |
◆ addQuery()
addQuery |
( |
|
$sql, |
|
|
|
$error = null , |
|
|
|
$errno = null , |
|
|
|
$query_time = null |
|
) |
| |
Log a database query
- Paramètres
-
string | $sql | SQL string |
string | $error | error message (if any) |
int | $errno | error number (if any) |
null | $query_time | |
◆ dump()
◆ dumpAll()
◆ dumpBlocks()
◆ dumpExtra()
◆ dumpQueries()
◆ dumpTime()
get the current execution time of a timer
- Paramètres
-
string | $name | name of the counter |
bool | $unset | removes counter from global log |
- Renvoie
- float current execution time of the counter
◆ enableRendering()
Enable logger output rendering When output rendering is enabled, the logger will insert its output within the page content. If the string is found in the page content, the logger output will replace it, otherwise it will be inserted after all the page output.
◆ getInstance()
Get a reference to the only instance of this class
- Renvoie
- object XoopsLogger reference to the only instance
◆ handleError()
handleError |
( |
|
$errno, |
|
|
|
$errstr, |
|
|
|
$errfile, |
|
|
|
$errline |
|
) |
| |
Error handling callback (called by the zend engine)
- Paramètres
-
integer | $errno | |
string | $errstr | |
string | $errfile | |
string | $errline | |
◆ handleException()
Exception handling callback.
- Paramètres
-
\Exception | \Throwable | $e | uncaught Exception or Error |
- Renvoie
- void
◆ instance()
◆ isThrowable()
Determine if an object implements Throwable (or is an Exception that would under PHP 7.)
- Paramètres
-
mixed | $e | Expected to be an object related to Exception or Throwable |
- Renvoie
- bool true if related to Throwable or Exception, otherwise false
◆ microtime()
Returns the current microtime in seconds.
- Renvoie
- float
◆ render()
Output buffering callback inserting logger dump in page output
- Paramètres
-
- Renvoie
- string
◆ sanitizePath()
@access protected
- Paramètres
-
- Renvoie
- mixed|string
◆ startTime()
startTime |
( |
|
$name = 'XOOPS' | ) |
|
Start a timer
- Paramètres
-
string | $name | name of the timer |
◆ stopTime()
stopTime |
( |
|
$name = 'XOOPS' | ) |
|
Stop a timer
- Paramètres
-
string | $name | name of the timer |
◆ triggerError()
triggerError |
( |
|
$errkey = 0 , |
|
|
|
$errStr = '' , |
|
|
|
$errFile = '' , |
|
|
|
$errLine = '' , |
|
|
|
$errNo = 0 |
|
) |
| |
◆ $activated
◆ $blocks
◆ $deprecated
◆ $errors
◆ $extra
◆ $logend
◆ $logstart
◆ $queries
◆ $renderingEnabled
$renderingEnabled = false |
◆ $usePopup
La documentation de cette classe a été générée à partir du fichier suivant :