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;
     }
 }
示例#2
0
 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 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 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 PerguntaCategoria($info[self::ID]);
         parent::resgatarObjetos($info);
         $temp->titulo = $info[self::TITULO];
         $temp->ordem = $info[self::ORDEM];
         return $temp;
     }
 }
示例#6
0
 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)) {
         $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 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;
     }
 }
示例#10
0
 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;
     }
 }
示例#11
0
 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;
     }
 }
 public function listar($ordem = "ASC", $campo = self::ID)
 {
     $info = parent::listar($ordem, $campo);
     if (!empty($info)) {
         parent::resgatarObjetos($info);
         $temp = new ProdutoMarca($info[self::ID]);
         $temp->nome = $info[self::NOME];
         $temp->descricao = $info[self::DESCRICAO];
         $temp->enderecoURL = $info[self::ENDERECOURL];
         $temp->disponivel = $info[self::DISPONIVEL] == self::VALOR_DISPONIVEL_TRUE ? true : false;
         if (!empty($info[self::IMAGEM])) {
             $temp->setImagem(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataProdutoMarcas . $info[self::IMAGEM])));
         }
         $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 MusicaCategoria($info[self::ID]);
         parent::resgatarObjetos($info);
         $temp->titulo = $info[self::TITULO];
         $temp->subTitulo = $info[self::SUBTITULO];
         $temp->gravadora = $info[self::GRAVADORA];
         $temp->ordem = $info[self::ORDEM];
         $temp->setDataLancamento(new DataHora($info[self::DATALANCAMENTO]));
         if (!empty($info[self::CAPA])) {
             $temp->setCapa(new Image(new Arquivos(Sistema::$caminhoDiretorio . Sistema::$caminhoDataDiscografia . $info[self::CAPA])));
         }
         return $temp;
     }
 }
示例#14
0
 public function listar($ordem = "ASC", $campo = self::ID)
 {
     $info = parent::listar($ordem, $campo);
     if (!empty($info)) {
         $temp = new Recado($info[self::ID]);
         parent::resgatarObjetos($info);
         $temp->setData(new DataHora($info[self::DATA]));
         $temp->setTexto($info[parent::TEXTO]);
         $temp->local = $info[self::LOCAL];
         $temp->nome = $info[self::NOME];
         $temp->email = $info[self::EMAIL];
         $temp->setSessao($info[self::SESSAO], $info[self::IDSESSAO]);
         if ($info[self::LIBERADO] == self::VALOR_LIBERADO_TRUE) {
             $temp->liberar();
         }
         return $temp;
     }
 }
示例#15
0
 public function listar($ordem = "ASC", $campo = self::ID)
 {
     $info = parent::listar($ordem, $campo);
     if (!empty($info)) {
         $temp = new Ticket($info[self::ID]);
         parent::resgatarObjetos($info);
         $lP = new ListaPessoas();
         $lP->condicoes('', $info[self::CLIENTE], ListaPessoas::ID);
         if ($lP->getTotal() > 0) {
             $temp->setCliente($lP->listar());
         }
         $temp->setNivel($info[self::NIVEL]);
         $temp->setStatus($info[self::STATUS]);
         $temp->setSatisfacao($info[self::SATISFACAO]);
         $temp->titulo = $info[self::TITULO];
         $temp->setDataAlteracao(new DataHora($info[self::DATAHORA_ALTERACAO]));
         return $temp;
     }
 }
示例#16
0
 public function listar($ordem = "ASC", $campo = self::ID)
 {
     $info = parent::listar($ordem, $campo);
     if (!empty($info)) {
         $temp = new Slide($info[self::ID]);
         parent::resgatarObjetos($info);
         $temp->titulo = $info[self::TITULO];
         $temp->legenda = $info[self::LEGENDA];
         $temp->enderecoURL = $info[self::ENDERECOURL];
         $temp->ativo = $info[self::ATIVO] == self::VALOR_ATIVO_TRUE ? true : false;
         $temp->tipo = $info[self::TIPO];
         $temp->segundos = $info[self::SEGUNDOS];
         $temp->corfundo = $info[self::CORFUNDO];
         $temp->ordem = $info[self::ORDEM];
         if (!empty($info[self::IMAGEM])) {
             $temp->setImagem(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataSlides . $info[self::IMAGEM])));
         }
         $temp->setFlash($info[self::FLASH]);
         return $temp;
     }
 }
 public function listar($ordem = "ASC", $campo = self::ID)
 {
     $info = parent::listar($ordem, $campo);
     if (!empty($info)) {
         $temp = new GaleriaCategoria($info[self::ID]);
         parent::resgatarObjetos($info);
         $temp->titulo = $info[self::TITULO];
         $temp->protegido = $info[self::PROTEGIDO] == self::VALOR_PROTEGIDO_TRUE ? true : false;
         $temp->setAltura($info[self::ALTURA]);
         $temp->setLargura($info[self::LARGURA]);
         $temp->setAlturaMedia($info[self::ALTURAMEDIA]);
         $temp->setLarguraMedia($info[self::LARGURAMEDIA]);
         $temp->setAlturaPequena($info[self::ALTURAPEQUENA]);
         $temp->setLarguraPequena($info[self::LARGURAPEQUENA]);
         $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)) {
         parent::resgatarObjetos($info);
         $temp = new ProdutoCategoria($info[self::ID]);
         $temp->nome = $info[self::NOME];
         $temp->ordem = $info[self::ORDEM];
         $temp->disponivel = $info[self::DISPONIVEL] == self::VALOR_DISPONIVEL_TRUE ? true : false;
         $temp->visaoUnica = $info[self::VISAOUNICA] == self::VALOR_VISAOUNICA_TRUE ? true : false;
         $temp->descricaoPequena = $info[self::DESCRICAOPEQUENA];
         $temp->descricao = $info[self::DESCRICAO];
         $temp->subreferencia = $info[self::SUBREFERENCIA];
         if (!empty($info[self::IMAGEM])) {
             $temp->setImagem(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataProdutoCategorias . $info[self::IMAGEM])));
         }
         $temp->setURL($info[parent::URL]);
         $temp->setIdCategoriaPai($info[self::CATEGORIAPAI]);
         return $temp;
     }
 }
示例#19
0
 public function listar($ordem = "ASC", $campo = self::ID)
 {
     $info = parent::listar($ordem, $campo);
     if (!empty($info)) {
         $temp = new Banner($info[self::ID]);
         parent::resgatarObjetos($info);
         $temp->titulo = $info[self::TITULO];
         $temp->clicks = $info[self::CLICKS];
         $temp->enderecoURL = $info[self::ENDERECOURL];
         $temp->ativo = $info[self::ATIVO] == self::VALOR_ATIVO_TRUE ? true : false;
         $temp->tipo = $info[self::TIPO];
         if (!empty($info[self::IMAGEM])) {
             $temp->setImagem(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataBanners . $info[self::IMAGEM])));
         }
         $temp->setFlash($info[self::FLASH]);
         $temp->setDataInicio(new DataHora($info[self::DATAINICIO]));
         $temp->setDataFim(new DataHora($info[self::DATAFIM]));
         $temp->setLargura($info[self::LARGURA]);
         $temp->setAltura($info[self::ALTURA]);
         return $temp;
     }
 }
示例#20
0
 public function listar($ordem = "ASC", $campo = self::ID)
 {
     $info = parent::listar($ordem, $campo);
     if (!empty($info)) {
         $temp = new Pergunta($info[self::ID]);
         parent::resgatarObjetos($info);
         $temp->titulo = $info[self::TITULO];
         $temp->texto = $info[self::TEXTO];
         $temp->ordem = $info[self::ORDEM];
         if (!empty($info[self::IMAGEM])) {
             $lI = new ListaImagens();
             $lI->caminhoEscrita = Sistema::$caminhoDiretorio . Sistema::$caminhoDataFAQ;
             $lI->caminhoLeitura = Sistema::$caminhoURL . Sistema::$caminhoDataFAQ;
             $lI->condicoes('', $info[self::IMAGEM], ListaImagens::ID);
             if ($lI->getTotal() > 0) {
                 $temp->setImagem($lI->listar());
             }
         }
         $temp->setURL($info[parent::URL]);
         $temp->setIdCategoria($info[self::CATEGORIA]);
         return $temp;
     }
 }
示例#21
0
 public function listar($ordem = "ASC", $campo = self::ID)
 {
     $info = parent::listar($ordem, $campo);
     if (!empty($info)) {
         $temp = new Produto($info[self::ID]);
         parent::resgatarObjetos($info);
         //$l = new ListaProdutos;
         //$l->condicoes('', $info[self::PRODUTOPAI], self::ID);
         //if($l->getTotal() > 0)
         //$temp->setProdutoPai($l->listar(), $this->carregarDadosPai);
         if (!empty($info[self::NOME])) {
             $temp->nome = $info[self::NOME];
         }
         if ($info[self::PESO] > 0) {
             $temp->peso = $info[self::PESO];
         }
         if ($info[self::LARGURA] > 0) {
             $temp->largura = $info[self::LARGURA];
         }
         if ($info[self::ALTURA] > 0) {
             $temp->altura = $info[self::ALTURA];
         }
         if ($info[self::COMPRIMENTO] > 0) {
             $temp->comprimento = $info[self::COMPRIMENTO];
         }
         if ($info[self::VALORCUSTO] > 0) {
             $temp->valorCusto = $info[self::VALORCUSTO];
         }
         if ($info[self::VALORREAL] > 0) {
             $temp->valorReal = $info[self::VALORREAL];
         }
         if ($info[self::VALORVENDA] > 0) {
             $temp->valorVenda = $info[self::VALORVENDA];
         }
         if ($info[self::FRETE] > 0) {
             $temp->frete = $info[self::FRETE];
         }
         if ($info[self::TIPOPEDIDO] > 0) {
             $temp->tipoPedido = $info[self::TIPOPEDIDO];
         }
         $temp->setURL($info[parent::URL]);
         if (trim(strip_tags($info[self::DESCRICAOPEQUENA])) != '') {
             $temp->descricaoPequena = $info[self::DESCRICAOPEQUENA];
         }
         if (trim(strip_tags($info[self::DESCRICAO])) != '') {
             $temp->descricao = $info[self::DESCRICAO];
         }
         if ($info[self::ORDEM] > 0) {
             $temp->ordem = $info[self::ORDEM];
         }
         if ($info[self::DISPONIVEL] > 0) {
             $temp->disponivel = $info[self::DISPONIVEL] == self::VALOR_DISPONIVEL_TRUE ? true : false;
         }
         if ($info[self::PROMOCAO] > 0) {
             $temp->promocao = $info[self::PROMOCAO] == self::VALOR_DISPONIVEL_TRUE ? true : false;
         }
         if ($info[self::LANCAMENTO] > 0) {
             $temp->lancamento = $info[self::LANCAMENTO] == self::VALOR_DISPONIVEL_TRUE ? true : false;
         }
         if ($info[self::DESTAQUE] > 0) {
             $temp->destaque = $info[self::DESTAQUE] == self::VALOR_DISPONIVEL_TRUE ? true : false;
         }
         if ($info[self::REMOVIDO] > 0 && !$temp->removido) {
             $temp->removido = $info[self::REMOVIDO] == self::VALOR_DISPONIVEL_TRUE ? true : false;
         }
         if (!empty($info[self::TIPOUNIDADE])) {
             $temp->tipoUnidade = $info[self::TIPOUNIDADE];
         }
         if ($info[self::QUANTIDADEU] > 0) {
             $temp->quantidadeu = $info[self::QUANTIDADEU];
         }
         if ($info[self::ESTOQUE] > 0) {
             $temp->estoque = $info[self::ESTOQUE];
         }
         if (!empty($info[self::CODIGO])) {
             $temp->codigo = $info[self::CODIGO];
         }
         if (!empty($info[self::VIDEO])) {
             $temp->setVideo($info[self::VIDEO]);
         }
         $temp->setDataCadastro(new DataHora($info[self::DATACADASTRO]));
         $lPM = new ListaProdutoMarcas();
         $lPM->condicoes('', $info[self::MARCA], ListaProdutoMarcas::ID);
         if ($lPM->getTotal() > 0) {
             $temp->setMarca($lPM->listar());
         }
         if ($temp->getMarca()->getId() == 182 || $temp->getMarca()->getId() == 160) {
             $temp->valorReal = 0;
             $temp->valorVenda = 0;
         }
         return $temp;
     }
 }