Ubiquity  2.5.2
php rapid development framework
Debugger Class Reference

Ubiquity debug class. More...

Static Public Member Functions

static start (&$config, int $level=E_ALL)
 Start the debugger. More...
 
static setErrorLevel (int $level=E_ALL)
 Set the error level (default E_ALL). More...
 
static _error_handler ($buffer)
 
static showException (\Throwable $e)
 

Data Fields

const CONTEXT_VARIABLES
 

Static Private Member Functions

static showTraces ($traces)
 
static getGlobales ($variables)
 
static getLocales ()
 
static displayVar ($variable)
 
static isRecursive ($array)
 
static errorFlag ($message, $type='exclamation triangle red')
 
static showAllVariables ()
 
static showVariables ($variables, $errors=[])
 
static showVariable ($name, array $variables, array $errors=[], $level=1)
 
static showTrace ($trace, $index)
 
static getCallbackArguments ($file, $lineNumber, $callbackName)
 
static getMethodParametersTable ($functionName)
 
static getErrorFromValues ($file, $line, $errorMessage, $errorType, $traces='', $introspect=true)
 
static wrapResponse ($content)
 
static getHeader ()
 
static getFooter ()
 
static getFileContent ($file)
 
static loadView ($name, $data)
 

Static Private Attributes

const static $variables = []
 

Detailed Description

Ubiquity debug class.

Ubiquity$Debugger This class is part of Ubiquity

Author
jc
Version
1.0.2

Definition at line 25 of file Debugger.php.

Member Function Documentation

◆ _error_handler()

static _error_handler (   $buffer)
static

Definition at line 82 of file Debugger.php.

◆ displayVar()

static displayVar (   $variable)
staticprivate

Definition at line 186 of file Debugger.php.

◆ errorFlag()

static errorFlag (   $message,
  $type = 'exclamation triangle red' 
)
staticprivate

Definition at line 204 of file Debugger.php.

◆ getCallbackArguments()

static getCallbackArguments (   $file,
  $lineNumber,
  $callbackName 
)
staticprivate

Definition at line 338 of file Debugger.php.

◆ getErrorFromValues()

static getErrorFromValues (   $file,
  $line,
  $errorMessage,
  $errorType,
  $traces = '',
  $introspect = true 
)
staticprivate

Definition at line 353 of file Debugger.php.

◆ getFileContent()

static getFileContent (   $file)
staticprivate

Definition at line 402 of file Debugger.php.

◆ getFooter()

static getFooter ( )
staticprivate

Definition at line 398 of file Debugger.php.

◆ getGlobales()

static getGlobales (   $variables)
staticprivate

Definition at line 138 of file Debugger.php.

◆ getHeader()

static getHeader ( )
staticprivate

Definition at line 394 of file Debugger.php.

◆ getLocales()

static getLocales ( )
staticprivate

Definition at line 146 of file Debugger.php.

◆ getMethodParametersTable()

static getMethodParametersTable (   $functionName)
staticprivate

Definition at line 343 of file Debugger.php.

◆ isRecursive()

static isRecursive (   $array)
staticprivate

Definition at line 199 of file Debugger.php.

◆ loadView()

static loadView (   $name,
  $data 
)
staticprivate

Definition at line 409 of file Debugger.php.

◆ setErrorLevel()

static setErrorLevel ( int  $level = E_ALL)
static

Set the error level (default E_ALL).

Parameters
int$level

Definition at line 75 of file Debugger.php.

◆ showAllVariables()

static showAllVariables ( )
staticprivate

Definition at line 208 of file Debugger.php.

◆ showException()

static showException ( \Throwable  $e)
static

Definition at line 115 of file Debugger.php.

◆ showTrace()

static showTrace (   $trace,
  $index 
)
staticprivate

Definition at line 267 of file Debugger.php.

◆ showTraces()

static showTraces (   $traces)
staticprivate

Definition at line 122 of file Debugger.php.

◆ showVariable()

static showVariable (   $name,
array  $variables,
array  $errors = [],
  $level = 1 
)
staticprivate

Definition at line 240 of file Debugger.php.

◆ showVariables()

static showVariables (   $variables,
  $errors = [] 
)
staticprivate

Definition at line 216 of file Debugger.php.

◆ start()

static start ( $config,
int  $level = E_ALL 
)
static

Start the debugger.

Definition at line 49 of file Debugger.php.

◆ wrapResponse()

static wrapResponse (   $content)
staticprivate

Definition at line 390 of file Debugger.php.

Field Documentation

◆ $variables

const static $variables = []
staticprivate

Definition at line 44 of file Debugger.php.

◆ CONTEXT_VARIABLES

const CONTEXT_VARIABLES
Initial value:
= [
'globals' => [
'_SESSION',
'_POST',
'_GET',
'_REQUEST',
'_SERVER',
'_COOKIE',
'_FILES'
]

Definition at line 27 of file Debugger.php.


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