/** * Atualiza o status * @return boolean */ public function excluir(cargosModel $cargo) { $this->db->clear(); $this->db->setTabela('cargos'); $this->db->setCondicao("id_cargo = ?"); $this->db->setParameter(1, $cargo->getId()); if ($this->db->delete()) { return true; } else { return $this->db->getError(); } }