Exemplo n.º 1
0
 private static function traceFunction($id, $string, $type)
 {
     if (Trace::$html && is_null(Trace::$output)) {
         Trace::$output = "</br>";
     }
     Trace::$html ? $string = $type == "log" ? Trace::createString("Success = " . $id . ": " . $string) : Trace::createSpecialString("Success = " + $id . ": " . $string, $type) : ($string = "Success = " . $id . ": " . $string);
     //-------------------------------------------------------------------------------------
     Trace::$output .= Trace::$html ? $string . "</br>" : $string . "||||";
 }
Exemplo n.º 2
0
 private static function traceFunction($id, $string, $arg, $type)
 {
     $arr = array();
     //---------------------------------------------------------
     if (!is_null($arg)) {
         $arr['arg'] = $arg;
     }
     if (Trace::$html && is_null(Trace::$output)) {
         Trace::$output = "</br>";
     }
     Trace::$html ? $string = $type == "log" ? Trace::createString("Success = " . $id . ": " . $string) : Trace::createSpecialString("Success = " + $id . ": " . $string, $type) : ($string = "Success = " . $id . ": " . $string);
     //---------------------------------------------------------
     $arr['output'] = Trace::$html ? $string . "</br>" : $string;
     //---------------------------------------------------------
     Trace::$output[] = !is_null($arg) ? $arr : $arr['output'];
 }