Ejemplo n.º 1
0
 public function inserir(Traducao &$t)
 {
     try {
         $this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::IDIOMA . ", " . self::CONTEUDO . ", " . self::TRADUCAO . ", " . self::TABELACONTEUDO . ", " . self::IDCONTEUDO . "," . self::CAMPOCONTEUDO . ") VALUES('" . $t->getIdIdioma() . "',\"" . eregi_replace('\\"', '\'', $t->conteudo) . "\",\"" . eregi_replace('\\"', '\'', $t->traducao) . "\",'" . $t->getTabelaConteudo() . "','" . $t->getIdConteudo() . "','" . $t->getCampoConteudo() . "')");
         $class = __CLASS__;
         $l = new $class();
         $l->condicoes('', $this->con->getId(), self::ID);
         $t = $l->listar();
     } catch (Exception $e) {
         throw new Exception($e->getMessage());
     }
 }