You are here

private static function krumo::_hive in Devel 7

Same name and namespace in other branches
  1. 6 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

@access private @static

Parameters

mixed &$bee either array or object, not a scallar vale:

Return value

array all the bees

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 907

Class

krumo
Krumo API

Code

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

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

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

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