public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Pedido($info[self::ID]); $temp->setIdSessao($info[self::IDSESSAO]); $temp->quantidade = $info[self::QUANTIDADE]; $temp->observacoes = $info[self::OBSERVACOES]; $temp->estoque = $info[self::ESTOQUE]; $temp->setData(new DataHora($info[self::DATA])); $temp->setStatus($info[self::STATUS]); $temp->estoque = $info[self::ESTOQUE]; $temp->setDesconto($info[self::DESCONTO]); $temp->setTipoPagamento($info[self::TIPOPAGAMENTO]); $temp->setValor($info[self::VALOR]); $temp->setVendedor($info[self::VENDEDOR]); $lPEE = new ListaPedidoEnderecoEntregas(); $lPEE->condicoes('', $temp->getId(), ListaPedidoEnderecoEntregas::IDSESSAO); if ($lPEE->getTotal() > 0) { $temp->setEndereco($lPEE->listar()); } $lP = new ListaPessoas(); $lP->condicoes('', $info[self::IDSESSAO], ListaPessoas::ID); if ($lP->getTotal() > 0) { $temp->setCliente($lP->listar()); } return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); //echo count($info); if (!empty($info)) { $end = new PedidoEnderecoEntrega($info[self::ID]); $end->logradouro = $info[self::LOGRADOURO]; $end->numero = $info[self::NUMERO]; $end->complemento = $info[self::COMPLEMENTO]; $end->bairro = $info[self::BAIRRO]; $end->tipo = $info[self::TIPO]; $end->prazo = $info[self::PRAZO]; $end->setValor($info[self::VALOR]); $end->setCep($info[self::CEP]); $lC = new ListaCidades(); $lC->condicoes('', $info[self::CIDADE], ListaCidades::ID); if ($lC->getTotal() > 0) { $c = $lC->listar(); $end->setCidade($c); $end->setEstado($c->getEstado()); $end->setPais($c->getPais()); } return $end; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { parent::resgatarObjetos($info); $temp = new EmpresaOfertaColetiva($info[self::ID]); $temp->setURL($info[parent::URL]); $temp->setTexto($info[parent::TEXTO]); $temp->razaoSocial = $info[self::RAZAOSOCIAL]; $temp->cnpj = $info[self::CNPJ]; $temp->rg = $info[self::RG]; $temp->cpf = $info[self::CPF]; $temp->setDataNasc(new DataHora($info[self::DATANASC])); $temp->usuario = $info[self::USUARIO]; $temp->nome = $info[self::NOME]; $temp->emailPrimario = $info[self::EMAIL]; $temp->senha = $info[self::SENHA]; $temp->emailSecundario = $info[self::EMAILSECUNDARIO]; $temp->sexo = $info[self::SEXO]; $temp->site = $info[self::SITE]; $temp->setDataCadastro(new DataHora($info[self::DATACADASTRO])); if (!empty($info[self::FOTO])) { $temp->setFoto(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataPessoasPerfil . $info[self::FOTO]))); } return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Vendedor($info[self::ID]); parent::resgatarObjetos($info); $temp->nome = $info[self::NOME]; $temp->email = $info[self::EMAIL]; $temp->msn = $info[self::MSN]; $temp->skype = $info[self::SKYPE]; $temp->voip = $info[self::VOIP]; $temp->telefone = $info[self::TELEFONE]; $temp->ramal = $info[self::RAMAL]; $temp->ordem = $info[self::ORDEM]; if (!empty($info[self::IMAGEM])) { $lI = new ListaImagens(); $lI->caminhoEscrita = Sistema::$caminhoDiretorio . Sistema::$caminhoDataTextos; $lI->caminhoLeitura = Sistema::$caminhoURL . Sistema::$caminhoDataTextos; $lI->condicoes('', $info[self::IMAGEM], ListaImagens::ID); if ($lI->getTotal() > 0) { $temp->setImagem($lI->listar()); } } return $temp; } }
public function enviarPacote($de = '', $html = false) { Email::$msg = $this->getTexto()->texto; if ($html) { Email::$html = $html; } if ($de) { Email::$de = $de; } Email::$assunto = $this->getTexto()->titulo; if ($this->getStatus() == self::PARADO) { self::criarListaParaEnvio($this); } $l = new Lista('mailing_pacotes_envio'); $l->condicoes('', $this->getId(), 'mailing'); $total = $l->getTotal(); if ($total > Sistema::$emailsPorHora) { $l->setParametros(Sistema::$emailsPorHora, 'limite'); $this->setStatus(self::ENVIANDO); } else { $this->setStatus(self::PARADO); } $lM = new ListaMailings(); $lM->alterar($this); $con = BDConexao::__Abrir(); while ($rs = $l->listar()) { Email::$para = $rs['email']; Email::enviar(); $con->executar("DELETE FROM " . Sistema::$BDPrefixo . "mailing_pacotes_envio WHERE mailing = '" . $this->getId() . "' AND email = '" . $rs['email'] . "'"); $l->setParametros(0); $l->setParametros($l->getParametros('limite') - 1, 'limite'); } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new OfertaColetiva($info[self::ID]); parent::resgatarObjetos($info); $temp->titulo = $info[self::TITULO]; $temp->subTitulo = $info[self::SUBTITULO]; $temp->valorOriginal = $info[self::VALORORIGINAL]; $temp->desconto = $info[self::DESCONTO]; $temp->economia = $info[self::ECONOMIA]; $temp->valor = $info[self::VALOR]; $temp->setURL($info[parent::URL]); $temp->destaques = $info[self::DESTAQUES]; $temp->regulamento = $info[self::REGULAMENTO]; $temp->quantidade = $info[self::QUANTIDADE]; $temp->comprasMinima = $info[self::COMPRASMINIMA]; $temp->comprasMaxima = $info[self::COMPRASMAXIMA]; $temp->comprasEfetuadas = $info[self::COMPRASEFETUADAS]; $temp->setDataInicio(new DataHora($info[self::DATAINICIO])); $temp->setDataFim(new DataHora($info[self::DATAFIM])); $lEOC = new ListaEmpresasOfertaColetiva(); $lEOC->condicoes('', $info[self::EMPRESA], ListaEmpresasOfertaColetiva::ID); if ($lEOC->getTotal() > 0) { $temp->setEmpresa($lEOC->listar()); } return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { if ($info[self::TIPO] == self::VALOR_TIPO_PESSOA_FISICA) { $temp = new PessoaFisica($info[self::ID]); } elseif ($info[self::TIPO] == self::VALOR_TIPO_PESSOA_JURIDICA) { $temp = new PessoaJuridica($info[self::ID]); } $temp->razaoSocial = $info[self::RAZAOSOCIAL]; $temp->cnpj = $info[self::CNPJ]; $temp->rg = $info[self::RG]; $temp->cpf = $info[self::CPF]; $temp->setDataNasc(new DataHora($info[self::DATANASC])); $temp->usuario = $info[self::USUARIO]; $temp->nome = $info[self::NOME]; $temp->sobreNome = $info[self::SOBRENOME]; $temp->emailPrimario = $info[self::EMAIL]; $temp->senha = $info[self::SENHA]; $temp->emailSecundario = $info[self::EMAILSECUNDARIO]; $temp->sexo = $info[self::SEXO]; $temp->site = $info[self::SITE]; $temp->atacadista = $info[self::ATACADISTA] == self::VALOR_ATACADISTA_TRUE ? true : false; $temp->origemCadastro = $info[self::ORIGEMCADASTRO]; $temp->setDataCadastro(new DataHora($info[self::DATACADASTRO])); if (!empty($info[self::FOTO])) { $temp->setFoto(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataPessoasPerfil . $info[self::FOTO]))); } return $temp; } }
public function listar($ordem = "ASC", $campo = 'id') { $info = parent::listar($ordem, $campo); if (!empty($info)) { $at = new Atividade($info['id']); $at->titulo = $info['titulo']; return $at; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new PacoteMailing($info[self::ID]); parent::resgatarObjetos($info); $temp->titulo = $info[self::TITULO]; return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Pais($info[self::ID]); $temp->nome = $info[self::NOME]; $temp->ddi = $info[self::DDI]; return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Musica($info[self::ID]); $temp->titulo = $info[self::TITULO]; $temp->ordem = $info[self::ORDEM]; $temp->setMusica(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataDiscografia . $info[self::MUSICA])); return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new NoticiaUrgente($info[self::ID]); $temp->noticia = $info[self::NOTICIA]; $temp->ordem = $info[self::ORDEM]; $temp->setData(new DataHora($info[self::DATA])); return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new PerguntaCategoria($info[self::ID]); parent::resgatarObjetos($info); $temp->titulo = $info[self::TITULO]; $temp->ordem = $info[self::ORDEM]; return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new UploadDownloadArquivo($info[self::ID]); $temp->produtos = $info[self::PRODUTOS]; $temp->ordem = $info[self::ORDEM]; $temp->setArquivo(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataUploadsDownloads . $info[self::ARQUIVO])); return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $email = new Email($info[self::ID]); $email->descricao = $info[self::DESCRICAO]; $email->email = $info[self::EMAIL]; $email->principal = $info[self::PRINCIPAL] == self::VALOR_PRINCIPAL_TRUE ? true : false; return $email; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new URL($info[self::ID]); $temp->setURL($info[self::URL]); $temp->tabela = $info[self::TABELA]; $temp->campo = $info[self::CAMPO]; $temp->valor = $info[self::VALOR]; return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new ProdutoPedra($info[self::ID]); $temp->nome = $info[self::NOME]; if (!empty($info[self::IMAGEM])) { $temp->setImagem(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataProdutoPedras . $info[self::IMAGEM]))); } return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new BannerCategoria($info[self::ID]); parent::resgatarObjetos($info); $temp->titulo = $info[self::TITULO]; $temp->setLargura($info[self::LARGURA]); $temp->setAltura($info[self::ALTURA]); return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Noticia($info[self::ID]); parent::resgatarObjetos($info); $temp->setData(new DataHora($info[self::DATA])); $temp->setURL($info[parent::URL]); $temp->setTexto($info[parent::TEXTO]); return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $tel = new Telefone($info[self::ID]); $tel->local = $info[self::LOCAL]; $tel->ddd = $info[self::DDD]; $tel->telefone = $info[self::TELEFONE]; $tel->ramal = $info[self::RAMAL]; return $tel; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Traducao($info[self::ID]); $temp->conteudo = $info[self::CONTEUDO]; $temp->traducao = $info[self::TRADUCAO]; $temp->setIdIdioma($info[self::IDIOMA]); $temp->setIdConteudo($info[self::IDCONTEUDO]); $temp->setTabelaConteudo($info[self::TABELACONTEUDO]); return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new ProdutoOpcaoValor($info[self::ID]); $temp->valor = $info[self::VALOR]; $temp->cor = $info[self::COR]; if (!empty($info[self::IMAGEM])) { $temp->setImagem(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataProdutoOpcoes . $info[self::IMAGEM]))); } return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new ProdutoOpcao($info[self::ID]); $temp->nome = $info[self::NOME]; $temp->tipo = $info[self::TIPO]; $temp->multi = $info[self::MULTI] == self::VALOR_MULTI_TRUE ? true : false; $temp->filtro = $info[self::FILTRO] == self::VALOR_FILTRO_TRUE ? true : false; $temp->aberto = $info[self::ABERTO] == self::VALOR_ABERTO_TRUE ? true : false; return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new NoticiaCategoria($info[self::ID]); parent::resgatarObjetos($info); $temp->ordem = $info[self::ORDEM]; $temp->setURL($info[parent::URL]); if (is_object($info[parent::TEXTO])) { $temp->setTexto($info[parent::TEXTO]); } return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new TicketPost($info[self::ID]); parent::resgatarObjetos($info); if (!empty($info[self::ARQUIVO])) { $temp->setArquivo(new Arquivos(Sistema::$caminhoDiretorio . Sistema::$caminhoDataTickets . $info[self::ARQUIVO])); } $temp->setDataHora(new DataHora($info[self::DATAHORA])); $temp->texto = $info[self::TEXTO]; $temp->nome = $info[self::NOME]; return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Estado($info[self::ID]); $temp->nome = $info[self::NOME]; $temp->uf = $info[self::UF]; $lP = new ListaPaises(); $lP->condicoes('', $info[self::PAIS], ListaPaises::ID); if ($lP->getTotal() > 0) { $temp->setPais($lP->listar()); } return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Imagem($info[self::ID]); $temp->legenda = $info[self::LEGENDA]; $temp->destaque = $info[self::DESTAQUE] == self::VALOR_DESTAQUE_TRUE ? true : false; $temp->setSessao($info[self::SESSAO], $info[self::IDSESSAO]); if (!empty($info[self::IMAGEM])) { $arquivo = new Arquivos($this->caminhoLeitura . $info[self::IMAGEM]); $img = new Image($arquivo); $temp->setImage($img); } return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Galeria($info[self::ID]); parent::resgatarObjetos($info); $temp->titulo = $info[self::TITULO]; $temp->descricao = $info[self::DESCRICAO]; $temp->local = $info[self::LOCAL]; $temp->tipo = $info[self::TIPO]; $temp->setData(new DataHora($info[self::DATA])); $temp->setVideo($info[self::VIDEO]); $temp->setURL($info[parent::URL]); return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Usuario($info[self::ID]); $temp->nivel = $info[self::NIVEL]; $temp->nome = $info[self::NOME]; $temp->login = $info[self::LOGIN]; $temp->senha = $info[self::SENHA]; $temp->texto = $info[self::TEXTO]; $temp->ensino = $info[self::ENSINO]; if (!empty($info[self::IMAGEM])) { $temp->setImagem(new Image(new Arquivos(Sistema::$caminhoDataUsuarios . $info[self::IMAGEM]))); } return $temp; } }
public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { $temp = new Mailing($info[self::ID]); parent::resgatarObjetos($info); $temp->setTexto($info[parent::TEXTO]); $temp->setStatus($info[self::STATUS]); $temp->setData(new DataHora($info[self::DATA])); $lPM = new ListaPacoteMailings(); $lPM->condicoes('', $info[self::PACOTE], ListaPacoteMailings::ID); if ($lPM->getTotal() > 0) { $temp->setPacote($lPM->listar()); } return $temp; } }