lib/ezutils/classes/ezdebug.php
File containing the eZDebug class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
\eZDebug
Package: lib
File containing the eZDebug class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Constants
Properties
Methods


accumulatorStart(
$key, $inGroup
=
false, $name
=
false, $recursive
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$key | ||
$inGroup | ||
$name | ||
$recursive |


accumulatorStop(
$key, $recursive
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$key | ||
$recursive |


appendBottomReport(
$reportName, $reportContent
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$reportName | ||
$reportContent |


appendTopReport(
$reportName, $reportContent
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$reportName | ||
$reportContent |


createAccumulator(
$key, $inGroup
=
false, $name
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$key | ||
$inGroup | ||
$name |


createAccumulatorGroup(
$key, $name
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$key | ||
$name |


errorHandler(
$errno, $errstr, $errfile, $errline
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$errno | ||
$errstr | ||
$errfile | ||
$errline |


exceptionErrorHandler(
$errno, $errstr, $errfile, $errline
)
:
void
static
Exception based error handler, very basic
Parameters
Throws
Details
Name | Type | Description |
---|---|---|
$errno | ||
$errstr | ||
$errfile | ||
$errline |
Exception | Description |
---|---|
\ErrorException |
- Since
- 4.5


instance(
)
:
\eZDebug
static
Returns a shared instance of the eZDebug class.
Returns
Type | Description |
---|---|
\eZDebug |


isAllowedByCurrentIP(
$allowedIpList
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$allowedIpList |


isIPInNet(
$ipaddress, $network, $mask
=
24
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$ipaddress | ||
$network | ||
$mask |


printBottomReportsList(
bool $as_html
=
true
)
:
void
static
Loop over all bottom reports and if callable call them with $as_html parameter, if not output as is (string).
Parameters
Name | Type | Description |
---|---|---|
$as_html | bool |


printReport(
$newWindow
=
false, $as_html
=
true, $returnReport
=
false, $allowedDebugLevels
=
false, $useAccumulators
=
true, $useTiming
=
true, $useIncludedFiles
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$newWindow | ||
$as_html | ||
$returnReport | ||
$allowedDebugLevels | ||
$useAccumulators | ||
$useTiming | ||
$useIncludedFiles |


printReportInternal(
$as_html
=
true, $returnReport
=
true, $allowedDebugLevels
=
false, $useAccumulators
=
true, $useTiming
=
true, $useIncludedFiles
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$as_html | ||
$returnReport | ||
$allowedDebugLevels | ||
$useAccumulators | ||
$useTiming | ||
$useIncludedFiles |


recursionProtectErrorHandler(
$errno, $errstr, $errfile, $errline
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$errno | ||
$errstr | ||
$errfile | ||
$errline |


setLogFileEnabled(
$enabled, $types
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$enabled | ||
$types |


timeToFloat(
$mtime
)
:
void
static
Returns the microtime as a float value. $mtime must be in microtime() format.
Parameters
Details
Name | Type | Description |
---|---|---|
$mtime |
- Deprecated
- Since 4.4.0, use microtime( true ) instead


write(
$string, $verbosityLevel
=
self::LEVEL_NOTICE, $label
=
"", $backgroundClass
=
"", $alwaysLog
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$string | ||
$verbosityLevel | ||
$label | ||
$backgroundClass | ||
$alwaysLog |


writeDebug(
$string, $label
=
"", $backgroundClass
=
""
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$string | ||
$label | ||
$backgroundClass |


writeError(
$string, $label
=
"", $backgroundClass
=
""
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$string | ||
$label | ||
$backgroundClass |


writeFile(
$logFileData, $string, $verbosityLevel, $alwaysLog
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$logFileData | ||
$string | ||
$verbosityLevel | ||
$alwaysLog |


writeNotice(
$string, $label
=
"", $backgroundClass
=
""
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$string | ||
$label | ||
$backgroundClass |


writeStrict(
$string, $label
=
"", $backgroundClass
=
""
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$string | ||
$label | ||
$backgroundClass |