public static function orcamentoEdit() { $VendaDao = new VendaDao(); $venda = $_POST['venda']; $itens = $_POST['itens']; $itens_del = isset($_POST['itensDel']) ? $_POST['itensDel'] : array(); if ($VendaDao->orcamentoEdit($venda, $itens, $itens_del)) { Flight::halt(200, ''); } else { Flight::halt(500, 'Falha ao alterar orçamento'); } }