Debug - staffcheck/api GitHub Wiki

Debug

  • Class name: Debug
  • Namespace:

Properties

$enable

protected mixed $enable = FALSE
  • Visibility: protected
  • This property is static.

$verbosity

protected mixed $verbosity = 5
  • Visibility: protected
  • This property is static.

$buffer_output

protected mixed $buffer_output = TRUE
  • Visibility: protected
  • This property is static.

$debug_buffer

protected mixed $debug_buffer = NULL
  • Visibility: protected
  • This property is static.

$enable_tidy

protected mixed $enable_tidy = FALSE
  • Visibility: protected
  • This property is static.

$enable_display

protected mixed $enable_display = FALSE
  • Visibility: protected
  • This property is static.

$enable_log

protected mixed $enable_log = FALSE
  • Visibility: protected
  • This property is static.

$max_line_size

protected mixed $max_line_size = 200
  • Visibility: protected
  • This property is static.

$max_buffer_size

protected mixed $max_buffer_size = 1000
  • Visibility: protected
  • This property is static.

$buffer_id

protected mixed $buffer_id = NULL
  • Visibility: protected
  • This property is static.

$php_errors

protected mixed $php_errors
  • Visibility: protected
  • This property is static.

$email_log

protected mixed $email_log = FALSE
  • Visibility: protected
  • This property is static.

$buffer_size

protected mixed $buffer_size
  • Visibility: protected
  • This property is static.

$tidy_obj

public mixed $tidy_obj = NULL
  • Visibility: public
  • This property is static.

Methods

setEnable

mixed Debug::setEnable($bool)
  • Visibility: public
  • This method is static.

Arguments

  • $bool mixed

getEnable

boolean Debug::getEnable()
  • Visibility: public
  • This method is static.

setBufferOutput

mixed Debug::setBufferOutput($bool)
  • Visibility: public
  • This method is static.

Arguments

  • $bool mixed

setVerbosity

mixed Debug::setVerbosity($level)
  • Visibility: public
  • This method is static.

Arguments

  • $level mixed

getVerbosity

integer Debug::getVerbosity()
  • Visibility: public
  • This method is static.

setEnableDisplay

mixed Debug::setEnableDisplay($bool)
  • Visibility: public
  • This method is static.

Arguments

  • $bool mixed

getEnableDisplay

boolean Debug::getEnableDisplay()
  • Visibility: public
  • This method is static.

setEnableLog

mixed Debug::setEnableLog($bool)
  • Visibility: public
  • This method is static.

Arguments

  • $bool mixed

getEnableLog

boolean Debug::getEnableLog()
  • Visibility: public
  • This method is static.

setBufferID

mixed Debug::setBufferID()
  • Visibility: public
  • This method is static.

getSyslogIdent

mixed Debug::getSyslogIdent(string $extra_ident, null $company_name)
  • Visibility: public
  • This method is static.

Arguments

  • $extra_ident string - UUID
  • $company_name null

getSyslogFacility

integer|mixed Debug::getSyslogFacility(integer $log_type)
  • Visibility: public
  • This method is static.

Arguments

  • $log_type integer

getSyslogPriority

integer|mixed Debug::getSyslogPriority(integer $log_type)
  • Visibility: public
  • This method is static.

Arguments

  • $log_type integer

getExecutionTime

float Debug::getExecutionTime()
  • Visibility: public
  • This method is static.

splitInput

array Debug::splitInput($text, null $prefix, null $suffix)
  • Visibility: public
  • This method is static.

Arguments

  • $text mixed
  • $prefix null
  • $suffix null

Text

boolean Debug::Text(null $text, string $file, integer $line, string $method, integer $verbosity)
  • Visibility: public
  • This method is static.

Arguments

  • $text null
  • $file string
  • $line integer
  • $method string
  • $verbosity integer

profileTimers

boolean|string Debug::profileTimers(object $profile_obj)
  • Visibility: public
  • This method is static.

Arguments

  • $profile_obj object

backTrace

string Debug::backTrace()
  • Visibility: public
  • This method is static.

varDump

string Debug::varDump($array)
  • Visibility: public
  • This method is static.

Arguments

  • $array mixed

Arr

boolean Debug::Arr($array, null $text, string $file, integer $line, string $method, integer $verbosity)
  • Visibility: public
  • This method is static.

Arguments

  • $array mixed
  • $text null
  • $file string
  • $line integer
  • $method string
  • $verbosity integer

Query

boolean Debug::Query($query, $ph, string $file, integer $line, string $method, integer $verbosity)

Output SQL query with place holders inserted into the query.

  • Visibility: public
  • This method is static.

Arguments

  • $query mixed
  • $ph mixed
  • $file string
  • $line integer
  • $method string
  • $verbosity integer

RequestHeaders

boolean Debug::RequestHeaders()
  • Visibility: public
  • This method is static.

ErrorHandler

mixed Debug::ErrorHandler($error_number, $error_str, $error_file, $error_line)
  • Visibility: public
  • This method is static.

Arguments

  • $error_number mixed
  • $error_str mixed
  • $error_file mixed
  • $error_line mixed

Shutdown

boolean Debug::Shutdown()
  • Visibility: public
  • This method is static.

getOutput

boolean|null|string Debug::getOutput()
  • Visibility: public
  • This method is static.

emailLog

boolean Debug::emailLog()
  • Visibility: public
  • This method is static.

writeToLog

boolean Debug::writeToLog()
  • Visibility: public
  • This method is static.

Display

boolean Debug::Display()
  • Visibility: public
  • This method is static.

handleBufferSize

boolean Debug::handleBufferSize(null $line, null $method)
  • Visibility: public
  • This method is static.

Arguments

  • $line null
  • $method null

clearBuffer

boolean Debug::clearBuffer()
  • Visibility: public
  • This method is static.
⚠️ **GitHub.com Fallback** ⚠️