XOOPS 2.5.6
Final
|
Public Member Functions | |
__construct () | |
addBlock ($name, $cached=false, $cachetime=0) | |
addDeprecated ($msg) | |
addExtra ($name, $msg) | |
addQuery ($sql, $error=null, $errno=null, $query_time=null) | |
dumpAll () | |
dumpBlocks () | |
dumpExtra () | |
dumpQueries () | |
dumpTime ($name= 'XOOPS', $unset=false) | |
enableRendering () | |
handleError ($errno, $errstr, $errfile, $errline) | |
& | instance () |
microtime () | |
render ($output) | |
sanitizePath ($path) | |
startTime ($name= 'XOOPS') | |
stopTime ($name= 'XOOPS') | |
triggerError ($errkey=0, $errStr= '', $errFile= '', $errLine= '', $errNo=0) | |
XoopsLogger () | |
Static Public Member Functions | |
static & | getInstance () |
Public Attributes | |
$activated = true | |
$blocks = array() | |
$deprecated = array() | |
$errors = array() | |
$extra = array() | |
$logend = array() | |
$logstart = array() | |
$queries = array() | |
$renderingEnabled = false | |
$usePopup = false | |
Protected Member Functions | |
dump ($mode= '') | |
Definition at line 34 of file xoopslogger.php.
XoopsLogger::__construct | ( | ) |
Definition at line 63 of file xoopslogger.php.
XoopsLogger::addBlock | ( | $name, | |
$cached = false , |
|||
$cachetime = 0 |
|||
) |
Log display of a block
string | $name | name of the block |
bool | $cached | was the block cached? |
int | $cachetime | cachetime of the block |
Definition at line 165 of file xoopslogger.php.
References activated.
XoopsLogger::addDeprecated | ( | $msg | ) |
Log messages for deprecated functions
string | $name | name for the entry |
int | $msg | text message for the entry |
Definition at line 190 of file xoopslogger.php.
XoopsLogger::addExtra | ( | $name, | |
$msg | |||
) |
Log extra information
string | $name | name for the entry |
int | $msg | text message for the entry |
Definition at line 177 of file xoopslogger.php.
XoopsLogger::addQuery | ( | $sql, | |
$error = null , |
|||
$errno = null , |
|||
$query_time = null |
|||
) |
Log a database query
string | $sql | SQL string |
string | $error | error message (if any) |
int | $errno | error number (if any) |
Definition at line 152 of file xoopslogger.php.
|
protected |
XoopsLogger::dumpAll | ( | ) |
XoopsLogger::dumpBlocks | ( | ) |
dnmp Blocks
Definition at line 333 of file xoopslogger.php.
References $GLOBALS, and $xoopsLogger.
XoopsLogger::dumpExtra | ( | ) |
dumpExtra
Definition at line 345 of file xoopslogger.php.
References $GLOBALS, and $xoopsLogger.
XoopsLogger::dumpQueries | ( | ) |
dump Queries
Definition at line 357 of file xoopslogger.php.
References $GLOBALS, and $xoopsLogger.
XoopsLogger::dumpTime | ( | $name = 'XOOPS' , |
|
$unset = false |
|||
) |
get the current execution time of a timer
string | $name | name of the counter |
bool | $unset | removes counter from global log |
Definition at line 277 of file xoopslogger.php.
XoopsLogger::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.
Definition at line 104 of file xoopslogger.php.
|
static |
Get a reference to the only instance of this class
Definition at line 87 of file xoopslogger.php.
Referenced by xos_logos_PageBuilder\buildBlock(), xos_opal_Theme\checkCache(), db_manager\db_manager(), XoopsSystemGui\footer(), XoopsDatabaseFactory\getDatabaseConnection(), XoopsSystemGui\header(), instance(), make_cblock(), make_sidebar(), xos_opal_Theme\render(), smarty_function_block(), and XoopsErrorHandler_HandleError().
XoopsLogger::handleError | ( | $errno, | |
$errstr, | |||
$errfile, | |||
$errline | |||
) |
Error handling callback (called by the zend engine)
Definition at line 199 of file xoopslogger.php.
References _XOOPS_FATAL_BACKTRACE, _XOOPS_FATAL_MESSAGE, activated, and exit.
& XoopsLogger::instance | ( | ) |
Deprecated, use getInstance() instead
Definition at line 77 of file xoopslogger.php.
References getInstance().
XoopsLogger::microtime | ( | ) |
Returns the current microtime in seconds.
Definition at line 117 of file xoopslogger.php.
XoopsLogger::render | ( | $output | ) |
Output buffering callback inserting logger dump in page output
Definition at line 241 of file xoopslogger.php.
References $pos, $xoopsUser, activated, and usePopup.
XoopsLogger::sanitizePath | ( | $path | ) |
XoopsLogger::startTime | ( | $name = 'XOOPS' | ) |
Start a timer
string | $name | name of the timer |
Definition at line 128 of file xoopslogger.php.
References activated.
XoopsLogger::stopTime | ( | $name = 'XOOPS' | ) |
Stop a timer
string | $name | name of the timer |
Definition at line 139 of file xoopslogger.php.
References activated.
XoopsLogger::triggerError | ( | $errkey = 0 , |
|
$errStr = '' , |
|||
$errFile = '' , |
|||
$errLine = '' , |
|||
$errNo = 0 |
|||
) |
integer | $errNo | |
string | $errStr | |
string | $errFile | |
string | $errLine |
Definition at line 305 of file xoopslogger.php.
References $GLOBALS, and $xoopsLogger.
XoopsLogger::XoopsLogger | ( | ) |
Definition at line 70 of file xoopslogger.php.
XoopsLogger::$activated = true |
Definition at line 53 of file xoopslogger.php.
XoopsLogger::$blocks = array() |
Definition at line 42 of file xoopslogger.php.
XoopsLogger::$deprecated = array() |
Definition at line 47 of file xoopslogger.php.
XoopsLogger::$errors = array() |
Definition at line 46 of file xoopslogger.php.
XoopsLogger::$extra = array() |
Definition at line 43 of file xoopslogger.php.
XoopsLogger::$logend = array() |
Definition at line 45 of file xoopslogger.php.
XoopsLogger::$logstart = array() |
Definition at line 44 of file xoopslogger.php.
XoopsLogger::$queries = array() |
Definition at line 41 of file xoopslogger.php.
XoopsLogger::$renderingEnabled = false |
* protected
Definition at line 58 of file xoopslogger.php.
XoopsLogger::$usePopup = false |
*#@-
Definition at line 52 of file xoopslogger.php.