+ /**
+ * Muestra una variable para debug.
+ */
+ function dump($var, $exit = false)
+ {
+ if (!isset($this->_dump)) {
+ require_once 'Var_Dump.php';
+ $this->_dump = new Var_Dump(
+ array('displayMode' => VAR_DUMP_DISPLAY_MODE_HTML_TABLE));
+ }
+ $this->addBodyContent('<pre>');
+ $this->addBodyContent($this->_dump->r_display($var));
+ $this->addBodyContent('</pre>');
+ if ($exit) {
+ $this->display();
+ exit;
+ }
+ }
+