X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/b6fd32394a7305564d244450d49285209725a6f2..a7c8936abc0bf04b4410c4bc5ad0eaebe49b816e:/lib/MECON/HTML/Page.php?ds=inline diff --git a/lib/MECON/HTML/Page.php b/lib/MECON/HTML/Page.php index aaac822..e43ba41 100644 --- a/lib/MECON/HTML/Page.php +++ b/lib/MECON/HTML/Page.php @@ -40,7 +40,7 @@ class MECON_HTML_Page extends HTML_Page { * @return void * @access public */ - function MECON_HTML_Page() // ~X2C + function MECON_HTML_Page() { parent::HTML_Page( array ( @@ -87,5 +87,25 @@ class MECON_HTML_Page extends HTML_Page { exit; } + /** + * 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('
');
+        $this->addBodyContent($this->_dump->r_display($var));
+        $this->addBodyContent('
'); + if ($exit) { + $this->display(); + exit; + } + } + } + ?> \ No newline at end of file