Beispiel #1
0
 /**
  * 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)) {
         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);
     }
 }