function AddTraffic() { $obj = new ATN_traffic(); $obj->TrafficDate = PDONOW; $obj->TrafficTime = DateModules::NowTime(); $obj->IsSystemic = "YES"; $obj->PersonID = $_SESSION["USER"]["PersonID"]; $result = $obj->Add(); //print_r(ExceptionHandler::PopAllExceptions()); echo Response::createObjectiveResponse($result, ExceptionHandler::GetExceptionsToString()); die; }