Esempio n. 1
0
 public function inserir(Cidade &$obj)
 {
     $this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::PAIS . ", " . self::ESTADO . ", " . self::NOME . ", " . self::DDD . ") VALUES('" . $obj->getPais()->getId() . "','" . $obj->getEstado()->getId() . "','" . $obj->nome . "','" . $obj->ddd . "')");
     $id = $this->con->getId();
     $class = __CLASS__;
     $l = new $class();
     $l->condicoes('', $id, self::ID);
     $obj = $l->listar();
 }