Exemple #1
0
 public static function log($what)
 {
     if (is_null(self::$debugger)) {
         self::$debugger = new Debug();
     }
     call_user_func_array(array(self::$debugger, 'log'), func_get_args());
 }
Exemple #2
0
 public static function logIf($cond, $what)
 {
     $args = func_get_args();
     $cond = array_shift($args);
     if (!$cond) {
         return;
     }
     if (is_null(self::$debugger)) {
         self::$debugger = new Debug();
     }
     call_user_func_array(array(self::$debugger, 'log'), $args);
 }