You are here

static function krumo::_debug in Devel 6

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

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

Parameters

boolean $state: * @return boolean * @access private * @static

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

... See full list

File

krumo/class.krumo.php, line 730

Class

krumo
Krumo API

Code

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

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

  // get
  //
  return $_;
}