Ejemplo n.º 1
0
 /**
  * Send data to FireBug
  * @static
  * @return void
  */
 public static function firebug()
 {
     if (!self::cfg('firebug.enabled')) {
         return;
     }
     self::collectData();
     self::$_fb = FirePHP::getInstance(true);
     // set FireBug settings
     //$options = self::$_fb->getOptions();
     self::$_fb->setOption('maxObjectDepth', self::cfg('firebug.maxObjectDepth', 8));
     self::$_fb->setOption('maxArrayDepth', self::cfg('firebug.maxArrayDepth', 8));
     self::$_fb->setOption('maxDepth', self::cfg('firebug.maxDepth', 10));
     // append info about module
     self::$_fb->info('========== ProfilerToolbar v' . self::$version . ' for Kohana v' . self::$kohana_version . ' ==========');
     // append other data
     if (self::cfg('firebug.showTotalInfo')) {
         self::appendTotalInfo();
     }
     if (self::cfg('firebug.showSql')) {
         self::appendSql();
     }
     if (self::cfg('firebug.showCache')) {
         self::appendCache();
     }
     if (self::cfg('firebug.showVars')) {
         self::appendVars();
     }
     if (self::cfg('firebug.showRoutes')) {
         self::appendRoutes();
     }
     if (self::cfg('firebug.showIncFiles')) {
         self::appendIncFiles();
     }
     if (self::cfg('firebug.showCustom')) {
         self::appendCustom();
     }
     // end
     self::$_fb->log('============================================================');
 }