public function deletar(Mailing $t) { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); $this->con->deletar(Sistema::$BDPrefixo . "mailing_pacotes_envio", "WHERE mailing = '" . $t->getId() . "'"); }
public function deletar(ProdutoMarca $m) { parent::deletar($m); $where = "WHERE " . self::ID . " = '" . $m->getId() . "'"; Arquivos::__DeleteArquivo(Sistema::$caminhoDiretorio . Sistema::$caminhoDataProdutoMarcas . $m->getImagem()->nome . '.' . $m->getImagem()->extensao); $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(TicketPost $t) { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; $t->getArquivo()->deleteArquivo(); $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(Banner $t) { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; Arquivos::__DeleteArquivo(Sistema::$caminhoDiretorio . Sistema::$caminhoDataBanners . $t->getImagem()->nome . "." . $t->getImagem()->extensao); Arquivos::__DeleteArquivo(Sistema::$caminhoDiretorio . Sistema::$caminhoDataBanners . $t->getFlash()); $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(Musica $t) { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; $arquivo = $t->getMusica()->nome . "." . $t->getMusica()->extensao; Arquivos::__DeleteArquivo(Sistema::$caminhoDiretorio . Sistema::$caminhoDataDiscografia . $arquivo); $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(UploadDownloadArquivo $t) { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; $arquivo = $t->getArquivo()->nome . "." . $t->getArquivo()->extensao; Arquivos::__DeleteArquivo(Sistema::$caminhoDiretorio . Sistema::$caminhoDataUploadsDownloads . $arquivo); $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(BannerCategoria $t) { if ($t->getBanners()->getTotal() > 0) { throw new Exception("Está categoria possui banners cadastrados, não foi possível removê-la!"); } else { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); } }
public function deletar(Ticket $t) { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; while ($tP = $t->getPostagens()->listar()) { $t->getPostagens()->deletar($tP); $t->getPostagens()->setParametros(0); } $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(Galeria $g) { parent::deletar($g); $where = "WHERE " . self::ID . " = '" . $g->getId() . "'"; while ($img = $g->getImagens()->listar("ASC")) { $g->getImagens()->deletar($img); $g->getImagens()->setParametros(0); } $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(Endereco $end) { parent::deletar($end); $where = "WHERE " . self::ID . " = '" . $end->getId() . "'"; $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(MusicaCategoria $t) { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(Telefone $tel) { parent::deletar($tel); $where = "WHERE " . self::ID . " = '" . $tel->getId() . "'"; $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(ProdutoCategoria $pC) { parent::deletar($pC); $where = "WHERE " . self::ID . " = '" . $pC->getId() . "'"; if ($pC->getSubCategorias()->getTotal() > 0) { throw new Exception("Está categoria possui subcategorias, não pode ser removida!"); } Arquivos::__DeleteArquivo(Sistema::$caminhoDiretorio . Sistema::$caminhoDataProdutoCategorias . $pC->getImagem()->nome . '.' . $pC->getImagem()->extensao); $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(Pedido $p) { parent::deletar($p); if ($p->getEndereco()->getId() != '') { $lPEE = new ListaPedidoEnderecoEntregas(); $lPEE->deletar($p->getEndereco()); } $where = "WHERE " . self::ID . " = '" . $p->getId() . "'"; $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar($pes) { parent::deletar($pes); $where = "WHERE id = '" . $pes->getId() . "'"; while ($end = $pes->getEndereco()->listar()) { $pes->getEndereco()->deletar($end); $pes->getEndereco()->setParametros(0); } while ($tel = $pes->getTelefone()->listar()) { $pes->getTelefone()->deletar($tel); $pes->getTelefone()->setParametros(0); } while ($email = $pes->getEmail()->listar()) { $pes->getEmail()->deletar($email); $pes->getEmail()->setParametros(0); } Arquivos::__DeleteArquivo(Sistema::$caminhoDiretorio . Sistema::$caminhoDataPessoasPerfil . $pes->getFoto()->nome . "." . $pes->getFoto()->extensao); $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(Vendedor $t) { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; $lI = new ListaImagens(); $lI->deletar($t->getImagem()); $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(NoticiaUrgente $t) { parent::deletar($t); $where = "WHERE " . self::ID . " = '" . $t->getId() . "'"; $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }
public function deletar(OfertaColetiva $p) { parent::deletar($p); $where = "WHERE " . self::ID . " = '" . $p->getId() . "'"; while ($img = $p->getImagens()->listar("ASC")) { $p->getImagens()->deletar($img); $p->getImagens()->setParametros(0); } $this->con->deletar(Sistema::$BDPrefixo . "relacionamento_ofertascoletivas_categorias", "WHERE ofertacoletiva = '" . $p->getId() . "'"); $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }