lib/ezutils/classes/ezdebug.php

Show: inherited
Table of Contents

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

Constant  LEVEL_NOTICE = 1
Constant  LEVEL_WARNING = 2
Constant  LEVEL_ERROR = 3
Constant  LEVEL_TIMING_POINT = 4
Constant  LEVEL_DEBUG = 5
Constant  LEVEL_STRICT = 6
Constant  SHOW_NOTICE = 1
Constant  SHOW_WARNING = 2
Constant  SHOW_ERROR = 4
Constant  SHOW_TIMING_POINT = 8
Constant  SHOW_DEBUG = 16
Constant  SHOW_STRICT = 32
Constant  SHOW_ALL = 63
Constant  HANDLE_NONE = 0
Constant  HANDLE_FROM_PHP = 1
Constant  HANDLE_TO_PHP = 2
Constant  HANDLE_EXCEPTION = 3
Constant  OUTPUT_MESSAGE_SCREEN = 1
Constant  OUTPUT_MESSAGE_STORE = 2
Constant  MAX_LOGFILE_SIZE = 204800
Constant  MAX_LOGROTATE_FILES = 3
Constant  XDEBUG_SIGNATURE = '--XDEBUG--'

Properties

Propertypublic  $DebugStrings= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $GlobalLogFileEnabled= ''
Details
Type
n/a
Propertypublic  $HandleType= ''
Details
Type
n/a
Propertypublic  $LogFileEnabled= ''
Details
Type
n/a
Propertypublic  $LogFiles= ''
Details
Type
n/a
Propertypublic  $MessageOutput= ''
Details
Type
n/a
Propertypublic  $MessageTypes= ''
Details
Type
n/a
Propertypublic  $OutputFormat= ''
Details
Type
n/a
Propertypublic  $OverrideList= ''
Details
Type
n/a
Propertypublic  $PercentAccuracy= '4'
Default value4Details
Type
n/a
Propertypublic  $ScriptStart= ''
Details
Type
n/a
Propertypublic  $ShowTypes= ''
Details
Type
n/a
Propertypublic  $TimeAccumulatorList= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $TimePoints= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $TimingAccuracy= '4'
Default value4Details
Type
n/a
Propertypublic  $TmpTimePoints= ''
Details
Type
n/a
Propertypublic  $UseCSS= ''
Details
Type
n/a
Propertypublic  $bottomReportsList= ''
Details
Type
n/a
Propertyprivate  $recursionFlag= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $topReportsList= ''
Details
Type
n/a

Methods

methodpublic__construct( ) : void

methodpublicaccumulatorStart(  $key,  $inGroup = false,  $name = false,  $recursive = false ) : void
static

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

Parameters
Name Type Description
$key
$recursive
methodpublicaddTimingPoint(  $description = "" ) : void
static

Parameters
Name Type Description
$description
methodpublicalwaysLogMessage(  $level ) : void
static

Parameters
Name Type Description
$level
methodpublicappendBottomReport(  $reportName,  $reportContent ) : void
static

Parameters
Name Type Description
$reportName
$reportContent
methodpublicappendTopReport(  $reportName,  $reportContent ) : void
static

Parameters
Name Type Description
$reportName
$reportContent
methodpubliccheckDebugByUser( ) : void
static

methodpubliccreateAccumulator(  $key,  $inGroup = false,  $name = false ) : void
static

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

Parameters
Name Type Description
$key
$name
methodpublicdumpVariable(  $var ) : void
static

Parameters
Name Type Description
$var
methodpublicerrorHandler(  $errno,  $errstr,  $errfile,  $errline ) : void

Parameters
Name Type Description
$errno
$errstr
$errfile
$errline
methodpublicexceptionErrorHandler(  $errno,  $errstr,  $errfile,  $errline ) : void
static

Exception based error handler, very basic

Parameters
Name Type Description
$errno
$errstr
$errfile
$errline
Throws
Exception Description
\ErrorException
Details
Since
4.5  
methodpublicinstance( ) : \eZDebug
static

Returns a shared instance of the eZDebug class.

Returns
Type Description
\eZDebug
methodprivateisAllowedByCurrentIP(  $allowedIpList ) : void
static

Parameters
Name Type Description
$allowedIpList
methodpublicisDebugAllowed( ) : void

methodpublicisDebugEnabled( ) : void
static

methodpublicisGlobalLogFileEnabled( ) : void

methodpublicisIPInNet(  $ipaddress,  $network,  $mask = 24 ) : void
static

Parameters
Name Type Description
$ipaddress
$network
$mask
methodpublicisLogFileEnabled(  $type ) : void

Parameters
Name Type Description
$type
methodpublicisLogOnlyEnabled( ) : void
static

methodpubliclogFiles( ) : void

methodpublicmaxLogSize( ) : void
static

methodpublicmaxLogrotateFiles( ) : void
static

methodpublicmessageName(  $messageType ) : void

Parameters
Name Type Description
$messageType
methodpublicmessageTypes( ) : void

methodpublicprintBottomReportsList( 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
methodpublicprintReport(  $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
methodpublicprintReportInternal(  $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
methodpublicprintTopReportsList( ) : void
static

methodpublicrecursionProtectErrorHandler(  $errno,  $errstr,  $errfile,  $errline ) : void

Parameters
Name Type Description
$errno
$errstr
$errfile
$errline
methodpublicreset( ) : void

methodpublicrotateLog(  $fileName ) : void
static

Parameters
Name Type Description
$fileName
methodpublicsetHandleType(  $type ) : void
static

Parameters
Name Type Description
$type
methodpublicsetIsGlobalLogFileEnabled(  $enabled ) : void

Parameters
Name Type Description
$enabled
methodpublicsetIsLogFileEnabled(  $type,  $enabled ) : void

Parameters
Name Type Description
$type
$enabled
methodpublicsetLogFileEnabled(  $enabled,  $types = false ) : void
static

Parameters
Name Type Description
$enabled
$types
methodpublicsetLogOnly(  $enabled ) : void

Parameters
Name Type Description
$enabled
methodpublicsetLogrotateFiles(  $files ) : void
static

Parameters
Name Type Description
$files
methodpublicsetMaxLogSize(  $size ) : void
static

Parameters
Name Type Description
$size
methodpublicsetMessageOutput(  $output ) : void

Parameters
Name Type Description
$output
methodpublicsetScriptStart(  $time = false ) : void
static

Parameters
Name Type Description
$time
methodpublicsetStoreLog(  $store ) : void

Parameters
Name Type Description
$store
methodpublicsetUseExternalCSS(  $use ) : void
static

Parameters
Name Type Description
$use
methodpublicshowMessage(  $type ) : void
static

Parameters
Name Type Description
$type
methodpublicshowTypes(  $types = false ) : void
static

Parameters
Name Type Description
$types
methodpublictimeToFloat(  $mtime ) : void
static

Returns the microtime as a float value. $mtime must be in microtime() format.

Parameters
Name Type Description
$mtime
Details
Deprecated
Since 4.4.0, use microtime( true ) instead  
methodpublicupdateSettings(  $settings ) : void
static

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

Parameters
Name Type Description
$string
$verbosityLevel
$label
$backgroundClass
$alwaysLog
methodpublicwriteDebug(  $string,  $label = "",  $backgroundClass = "" ) : void
static

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

Parameters
Name Type Description
$string
$label
$backgroundClass
methodpublicwriteFile(  $logFileData,  $string,  $verbosityLevel,  $alwaysLog = false ) : void

Parameters
Name Type Description
$logFileData
$string
$verbosityLevel
$alwaysLog
methodpublicwriteNotice(  $string,  $label = "",  $backgroundClass = "" ) : void
static

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

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

Parameters
Name Type Description
$string
$label
$backgroundClass
Documentation was generated by DocBlox 0.18.1.