function projetosTerminados() { $agendaDAO = new AgendaDAO(); echo json_encode($agendaDAO->projetosTerminados()); }