예제 #1
0
파일: Fx.php 프로젝트: piarsonforked/floxim
 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());
 }
예제 #2
0
파일: Fx.php 프로젝트: 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);
 }