Example #1
0
 public static function printDebugEntry($force = FALSE)
 {
     if (self::isAvailable() && !self::isVerbose()) {
         if (!self::$_alreadyPrintedDebugEntry || $force) {
             $mode = self::$_mode;
             if (Saf_Layout::formatIsHtml()) {
                 print "\n<p class=\"debugEntry\"><a href=\"?debug=true\">Enable debugging for this session. Debug mode: {$mode}</a></p>\n";
             }
             //#TODO #2.0.0 figure out what to do for other formats...
         }
         self::$_alreadyPrintedDebugEntry = TRUE;
     }
 }