public static function dumperToString($var) { ob_start(); \Metaclassing\Utility::dumper($var); $result = ob_get_clean(); return $result; }
/** * Short description for function. * * Long description (if any) ... * * @param string $FOOT_TEXT Parameter description (if any) ... * @param string $FOOT_LINK Parameter description (if any) ... * * @return string Return description (if any) ... */ public function footer($FOOT_TEXT = 'Home', $FOOT_LINK = '/') { $size = memory_get_usage(true); $unit = ['b', 'kb', 'mb', 'gb', 'tb', 'pb']; $MEMORYUSED = @round($size / pow(1024, $i = floor(log($size, 1024))), 2) . ' ' . $unit[$i]; $this->set('MEMORYUSED', $MEMORYUSED); $this->set('LOADTIME', number_format($this->timer_diff(), 5)); $this->set('FOOT_TEXT', $FOOT_TEXT); $this->set('FOOT_LINK', $FOOT_LINK); global $QUERYCOUNT; global $DB; $this->set('QUERYCOUNT', $QUERYCOUNT + intval(count($DB->QUERIES))); $this->set('RECORDCOUNT', intval($DB->RECORDCOUNT)); if (isset($_SESSION['DEBUG']) && $_SESSION['DEBUG'] > 5) { $this->set('FOOTERDEBUG', \Metaclassing\Utility::dumper($DB)); } return $this->parse(INCLUDEDIR . '/footer.template.html'); }