XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsLogger Class Reference
Inheritance diagram for XoopsLogger:
Inheritance graph

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= '')
 

Detailed Description

Definition at line 34 of file xoopslogger.php.

Constructor & Destructor Documentation

XoopsLogger::__construct ( )

XoopsLogger::__construct()

Definition at line 63 of file xoopslogger.php.

Member Function Documentation

XoopsLogger::addBlock (   $name,
  $cached = false,
  $cachetime = 0 
)

Log display of a block

Parameters
string$namename of the block
bool$cachedwas the block cached?
int$cachetimecachetime of the block

Definition at line 165 of file xoopslogger.php.

References activated.

XoopsLogger::addDeprecated (   $msg)

Log messages for deprecated functions

Deprecated:
Parameters
string$namename for the entry
int$msgtext message for the entry

Definition at line 190 of file xoopslogger.php.

References $msg, and activated.

XoopsLogger::addExtra (   $name,
  $msg 
)

Log extra information

Parameters
string$namename for the entry
int$msgtext message for the entry

Definition at line 177 of file xoopslogger.php.

References $msg, and activated.

XoopsLogger::addQuery (   $sql,
  $error = null,
  $errno = null,
  $query_time = null 
)

Log a database query

Parameters
string$sqlSQL string
string$errorerror message (if any)
int$errnoerror number (if any)

Definition at line 152 of file xoopslogger.php.

References $error, $sql, and activated.

XoopsLogger::dump (   $mode = '')
protected

*#@+

Definition at line 264 of file xoopslogger.php.

References $ret.

XoopsLogger::dumpAll ( )

*#@+

Deprecated:

Definition at line 321 of file xoopslogger.php.

References $GLOBALS, and $xoopsLogger.

XoopsLogger::dumpBlocks ( )

dnmp Blocks

Deprecated:
Returns
dump

Definition at line 333 of file xoopslogger.php.

References $GLOBALS, and $xoopsLogger.

XoopsLogger::dumpExtra ( )

dumpExtra

Deprecated:
Returns
dimp

Definition at line 345 of file xoopslogger.php.

References $GLOBALS, and $xoopsLogger.

XoopsLogger::dumpQueries ( )

dump Queries

Deprecated:
Returns
unknown

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

Parameters
string$namename of the counter
bool$unsetremoves counter from global log
Returns
float current execution time of the counter

Definition at line 277 of file xoopslogger.php.

References $start, $stop, and activated.

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& XoopsLogger::getInstance ( )
static

Get a reference to the only instance of this class

Returns
object XoopsLogger reference to the only instance

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

XoopsLogger::microtime ( )

Returns the current microtime in seconds.

Returns
float

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)

protected

Definition at line 232 of file xoopslogger.php.

References $path.

XoopsLogger::startTime (   $name = 'XOOPS')

Start a timer

Parameters
string$namename of the timer

Definition at line 128 of file xoopslogger.php.

References activated.

XoopsLogger::stopTime (   $name = 'XOOPS')

Stop a timer

Parameters
string$namename of the timer

Definition at line 139 of file xoopslogger.php.

References activated.

XoopsLogger::triggerError (   $errkey = 0,
  $errStr = '',
  $errFile = '',
  $errLine = '',
  $errNo = 0 
)

XoopsLogger::triggerError()

Deprecated:
Parameters
integer$errNo
string$errStr
string$errFile
string$errLine
Returns

Definition at line 305 of file xoopslogger.php.

References $GLOBALS, and $xoopsLogger.

XoopsLogger::XoopsLogger ( )

XoopsLogger::XoopsLogger()

Definition at line 70 of file xoopslogger.php.

Member Data Documentation

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.


The documentation for this class was generated from the following file: