parent.'.$function.'('.$result.')'.''; if($print == true) { self::export($result, true); } return $result; } /** * export * @param string $text * * @return string */ static public function export($text, $exit = false) { if(is_array($text)) { $callback = Input::get('callback', false); if($callback) { $text = $callback . '('.json_encode($text).')'; } print_r($text); } else { echo $text; } if($exit == true) { Debug::data(); die; } } /** * out * @param string $msg * * @return string */ static public function abert($msg, $param = array()) { $send['msg'] = Lang::get($msg, $param); $send['status'] = 2; $callback = Input::get('callback', false); $json = Input::get('json', false); $function = Input::get('function', false); if($callback || $json || $function) { self::result($send); } else { self::html($send); } //self::export($send, true); } /** * out * @param string $msg * * @return string */ static public function html($msg) { $html = '
'.$k.' | '.$v.' |