function update($tabela, $dados, $string) { if (!$tabela) { echo "Informe uma tabela."; return false; } if (!$dados) { echo "Informe valores"; return false; } if (!$string) { echo "Informe condição"; return false; } try { $this->freeSQL(SqlGenerator::update($table, $dados, $string)); return true; } catch (exception $erro) { echo "Não foi possivel alterar registro. FAILL: " . $erro->getMessage(); return false; } }