Ejemplo n.º 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());
 }
Ejemplo n.º 2
0
Archivo: Fx.php Proyecto: floxim/floxim
 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);
 }