You are here

static function krumo::_object in Devel 6

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

* Render a dump for an object * *

Parameters

mixed $data: * @param string $name * @access private * @static

1 call to krumo::_object()
krumo::_dump in krumo/class.krumo.php
* Dump information about a variable * *

File

krumo/class.krumo.php, line 1068

Class

krumo
Krumo API

Code

static function _object(&$data, $name) {
  ?>
<li class="krumo-child">

	<div class="krumo-element<?php

  echo count($data) > 0 ? ' krumo-expand' : '';
  ?>"
		<?php

  if (count($data) > 0) {
    ?> onClick="krumo.toggle(this);"<?php

  }
  ?>
		onMouseOver="krumo.over(this);"
		onMouseOut="krumo.out(this);">

			<?php


  /* DEVEL: added htmlSpecialChars */
  ?>
			<a class="krumo-name"><?php

  echo htmlSpecialChars($name);
  ?></a>
			(<em class="krumo-type">Object</em>)
			<strong class="krumo-class"><?php

  echo get_class($data);
  ?></strong>
	</div>

	<?php

  if (count($data)) {
    krumo::_vars($data);
  }
  ?>
</li>
<?php

}