You are here

static function krumo::_hive in Devel 6

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

* Adds a variable to the hive of arrays and objects which * are tracked for whether they have recursive entries * *

Parameters

mixed &$bee either array or object, not a scallar vale: * @return array all the bees * * @access private * @static

2 calls to krumo::_hive()
krumo::dump in krumo/class.krumo.php
* Dump information about a variable * *
krumo::_vars in krumo/class.krumo.php
* Render a dump for the properties of an array or objeect * *

File

krumo/class.krumo.php, line 881

Class

krumo
Krumo API

Code

static function &_hive(&$bee) {
  static $_ = array();

  // new bee ?
  //
  if (!is_null($bee)) {

    // stain it
    //
    $_recursion_marker = krumo::_marker();
    is_object($bee) ? @$bee->{$_recursion_marker}++ : @$bee[$_recursion_marker]++;
    $_[0][] =& $bee;
  }

  // return all bees
  //
  return $_[0];
}