You are here

private static function krumo::_debug in Devel 7

Same name and namespace in other branches
  1. 6 krumo/class.krumo.php \krumo::_debug()

Get\Set Krumo state: whether it is enabled or disabled

@access private @static

Parameters

boolean $state:

Return value

boolean

22 calls to krumo::_debug()
krumo::backtrace in krumo/class.krumo.php
Prints a debug backtrace
krumo::classes in krumo/class.krumo.php
Prints a list of all currently declared classes.
krumo::conf in krumo/class.krumo.php
Prints a list of all your configuration settings.
krumo::cookie in krumo/class.krumo.php
Prints a list of all the values from the <i>$_COOKIE</i> array.
krumo::defines in krumo/class.krumo.php
Prints a list of all currently declared constants.

... See full list

File

krumo/class.krumo.php, line 756

Class

krumo
Krumo API

Code

private static function _debug($state = null) {
  static $_ = true;

  // set
  //
  if (isset($state)) {
    $_ = (bool) $state;
  }

  // get
  //
  return $_;
}