protected function _getDebugDump(array $data) { $dump = ''; if ($this->getEnv()->getDebugControl()) { ob_start(); $debugMode = $this->getPreferences()->getDebugMode(); if ($debugMode == 'queries') { require_once 'Sitengine/Db/Debug.php'; Sitengine_Db_Debug::profiler($this->getDatabase()); } else { if ($debugMode == 'templateData') { print '<hr /><h1>TEMPLATE DATA</h1><hr />'; Sitengine_Debug::print_r($data); } else { print Sitengine_Debug::info($debugMode); } } $dump = ob_get_contents(); ob_end_clean(); } return $dump; }
protected function _getDebugDump() { $dump = ''; if ($this->getEnv()->getDebugControl()) { ob_start(); $debugMode = $this->getPreferences()->getDebugMode(); if ($debugMode == 'queries') { require_once 'Sitengine/Db/Debug.php'; Sitengine_Db_Debug::profiler($this->getDatabase()); } else { print Sitengine_Debug::info($debugMode); } $dump = ob_get_contents(); ob_end_clean(); } return $dump; }