Пример #1
0
 /**
  * Enabling profiler
  * 
  * @return void 
  */
 public static function enableProfiler()
 {
     // Enabling Profiler for firebug
     if (Fox::isProfilerEnabled()) {
         $profiler = new Zend_Db_Profiler_Firebug('Zendfox DB System Queries');
         $profiler->setEnabled(TRUE);
         // Attach the profiler to your db adapter
         self::$dbAdapter->setProfiler($profiler);
     }
 }
 /**
  * Returns whether the profiler is enabled
  * 
  * @return boolean
  */
 public function isProfilerEnabled()
 {
     return Fox::isProfilerEnabled();
 }