XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
XoopsLogger Class Reference

Public Member Functions

 __construct ()
 
 startTime ($name='XOOPS')
 
 stopTime ($name='XOOPS')
 
 addQuery ($sql, $error=null, $errno=null)
 
 addBlock ($name, $cached=false, $cachetime=0)
 
 addExtra ($name, $msg)
 
 dumpQueries ()
 
 dumpBlocks ()
 
 dumpTime ($name='XOOPS')
 
 dumpExtra ()
 
 dumpAll ()
 

Static Public Member Functions

static & instance ()
 

Data Fields

 $queries = []
 
 $blocks = []
 
 $extra = []
 
 $logstart = []
 
 $logend = []
 

Detailed Description

Definition at line 19 of file logger.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

#- constructor

@access private

Definition at line 36 of file logger.php.

Member Function Documentation

◆ addBlock()

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 100 of file logger.php.

◆ addExtra()

addExtra ( $name,
$msg )

log extra information

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

Definition at line 111 of file logger.php.

◆ addQuery()

addQuery ( $sql,
$error = null,
$errno = null )

log a database query

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

Definition at line 82 of file logger.php.

◆ dumpAll()

dumpAll ( )

get all logged information formatted in HTML tables

Returns
string HTML output

Definition at line 199 of file logger.php.

◆ dumpBlocks()

dumpBlocks ( )

get the logged blocks in a HTML table

Returns
string HTML table with blocks

Definition at line 142 of file logger.php.

◆ dumpExtra()

dumpExtra ( )

get extra information in a HTML table

Returns
string HTML table with extra information

Definition at line 182 of file logger.php.

◆ dumpQueries()

dumpQueries ( )

get the logged queries in a HTML table

Returns
string HTML table with queries

Definition at line 121 of file logger.php.

◆ dumpTime()

dumpTime ( $name = 'XOOPS')

get the current execution time of a timer

Parameters
string$namename of the counter
Returns
float current execution time of the counter

Definition at line 164 of file logger.php.

◆ instance()

static & instance ( )
static

get a reference to the only instance of this class

Returns
object XoopsLogger reference to the only instance

Definition at line 45 of file logger.php.

◆ startTime()

startTime ( $name = 'XOOPS')

start a timer

Parameters
string$namename of the timer

Definition at line 60 of file logger.php.

◆ stopTime()

stopTime ( $name = 'XOOPS')

stop a timer

Parameters
string$namename of the timer

Definition at line 70 of file logger.php.

Field Documentation

◆ $blocks

$blocks = []

Definition at line 25 of file logger.php.

◆ $extra

$extra = []

Definition at line 26 of file logger.php.

◆ $logend

$logend = []

Definition at line 28 of file logger.php.

◆ $logstart

$logstart = []

Definition at line 27 of file logger.php.

◆ $queries

$queries = []

Definition at line 24 of file logger.php.


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