/** * Enable or disable the Debug. If $enable is false, the Debug * is disabled. * * @param boolean $enable * @return Zend_Db_Profiler Provides a fluent interface */ public static function setEnabled($enable) { self::$enabled = (bool) $enable; if (self::$enabled && (!self::$timer or !self::$vars)) { require_once 'Zend/Wildfire/Plugin/FirePhp/TableMessage.php'; self::$timer = new Zend_Wildfire_Plugin_FirePhp_TableMessage('Timer'); self::$timer->setBuffered(true); self::$timer->setHeader(array('Time (sec)', 'Total (sec)', 'Memory (Kb)', 'Total (Kb)', 'Comment', 'File')); self::$timer->setOption('includeLineNumbers', false); } }