function fntDeletaObjetivos() { $t = new Objetivo(); $t->setCodcaso($_SESSION['caso']); $t->setCoditem(base64_decode($_POST['id'])); if ($t->Deleta()) { return "@lng[Objetivo deletado com sucesso!]"; } else { return "ERRO. @lng[Não foi possível excluir o objetivo.] " . $t->getErro(); } }