Beispiel #1
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->pais = new Pais();
     $this->cidades = new ListaCidades();
     $this->cidades->condicoes(array(1 => array('campo' => ListaCidades::ESTADO, 'valor' => $id)));
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->url = new URL();
     $this->titulo = '';
     $this->subTitulo = '';
     $this->destaques = '';
     $this->regulamento = '';
     $this->valorOriginal = new Numero();
     $this->desconto = new Numero();
     $this->economia = new Numero();
     $this->valor = new Numero();
     $this->quantidade = 0;
     $this->comprasMinima = 0;
     $this->comprasMaxima = 0;
     $this->comprasEfetuadas = 0;
     $this->empresa = new EmpresaOfertaColetiva();
     $this->dataInicio = new DataHora();
     $this->dataFim = new DataHora();
     $this->imagens = new ListaImagens();
     $this->imagens->caminhoEscrita = Sistema::$caminhoDiretorio . Sistema::$caminhoDataOfertasColetivas;
     $this->imagens->caminhoLeitura = Sistema::$caminhoURL . Sistema::$caminhoDataOfertasColetivas;
     $a[1] = array('campo' => ListaImagens::IDSESSAO, 'valor' => $this->id);
     $a[2] = array('campo' => ListaImagens::SESSAO, 'valor' => 'ofertascoletivas');
     $this->imagens->condicoes($a);
     $this->categorias = new ListaProdutoCategorias();
     $this->categorias->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_ofertascoletivas_categorias rpc INNER JOIN " . Sistema::$BDPrefixo . "produtos_categorias c ON c.id = rpc.categoria WHERE rpc.ofertacoletiva = '" . $this->id . "'");
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->slides = new ListaSlides();
     $this->slides->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_slides_categorias rsc INNER JOIN " . Sistema::$BDPrefixo . "slides s ON s.id = rsc.slide WHERE rsc.categoria = '" . $this->id . "'");
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->data = new DataHora();
     $this->noticia = '';
     $this->ordem = 0;
 }
Beispiel #5
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->nome = '';
     $this->hexadecimal = '';
     $this->imagem = new Image();
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->valor = '';
     $this->cor = '';
     $this->image = new NewImage(1, 1);
 }
Beispiel #7
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->url = new URL();
     $this->texto = new Texto();
     $this->data = new DataHora();
 }
Beispiel #8
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->musica = Arquivos::__Create('');
     $this->ordem = 0;
     $this->categorias = new ListaMusicaCategorias();
     $this->categorias->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_musicas_categorias rmc INNER JOIN " . Sistema::$BDPrefixo . "musicas_categorias c ON c.id = rmc.categoria WHERE rmc.musica = '" . $this->id . "'");
 }
Beispiel #9
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->status = self::PARADO;
     $this->texto = new Texto();
     $this->pacote = new PacoteMailing();
     $this->data = new DataHora();
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->arquivo = Arquivos::__Create('');
     $this->ordem = 0;
     $this->categorias = new ListaUploadDownloadCategorias();
     $this->categorias->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_arquivos_categorias rac INNER JOIN " . Sistema::$BDPrefixo . "arquivos_categorias c ON c.id = rac.categoria WHERE rac.arquivo = '" . $this->id . "'");
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->ordem = 0;
     $this->perguntas = new ListaPerguntas();
     $this->perguntas->condicoes('', $this->id, ListaPerguntas::CATEGORIA);
 }
Beispiel #12
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->url = '';
     $this->tabela = '';
     $this->campo = '';
     $this->valor = '';
 }
Beispiel #13
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->dataHora = new DataHora();
     $this->texto = '';
     $this->nome = '';
     $this->arquivo = Arquivos::__Create("");
 }
Beispiel #14
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->emails = new Lista('mailing_pacotes_emails');
     $this->emails->condicoes(array(1 => array('campo' => 'pacote', 'valor' => $this->id)));
     $this->con = BDConexao::__Abrir();
 }
Beispiel #15
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->nome = '';
     $this->tipo = 0;
     $this->valores = new ListaProdutoOpcaoValores();
     $aR[1] = array('campo' => ListaProdutoOpcaoValores::OPCAO, 'valor' => $this->getId());
     $this->valores->condicoes($aR);
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->ordem = 0;
     $this->url = new URL();
     $this->texto = new Texto();
     $this->noticias = new ListaNoticias();
     $this->noticias->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_noticias_categorias rnc INNER JOIN " . Sistema::$BDPrefixo . "noticias n ON n.id = rnc.noticia WHERE rnc.categoria = '" . $this->id . "'");
 }
Beispiel #17
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->sessao = '';
     $this->idSessao = '';
     $this->legenda = '';
     $this->destaque = false;
     $this->image = new NewImage(1, 1);
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->largura = new Numero();
     $this->altura = new Numero();
     $this->banners = new ListaBanners();
     $this->banners->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_banners_categorias rbc INNER JOIN " . Sistema::$BDPrefixo . "banners b ON b.id = rbc.banner WHERE rbc.categoria = '" . $this->id . "'");
 }
Beispiel #19
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->id = $id;
     $this->sigla = '';
     $this->nome = '';
     $this->imagem = new Image();
     $this->traducoes = new ListaTraducoes();
     $this->traducoes->condicoes(array(1 => array('campo' => ListaTraducoes::IDIOMA, 'valor' => $this->id)));
 }
Beispiel #20
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->nome = '';
     $this->descricao = '';
     $this->enderecoURL = '';
     $this->imagem = new Image();
     $this->url = new URL();
     $this->disponivel = false;
 }
Beispiel #21
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->idIdioma = '';
     $this->campoConteudo = '';
     $this->idConteudo = '';
     $this->tabelaConteudo = '';
     $this->conteudo = '';
     $this->traducao = '';
 }
Beispiel #22
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->subTitulo = '';
     $this->texto = '';
     $this->textoPequeno = '';
     $this->ordem = 0;
     $this->imagem = new Imagem();
     $this->url = new URL();
 }
Beispiel #23
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->nivel = 0;
     $this->nome = '';
     $this->login = '';
     $this->senha = '';
     $this->texto = '';
     $this->ensino = '';
     $this->imagem = new Image();
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->subTitulo = '';
     $this->gravadora = '';
     $this->ordem = 0;
     $this->dataLancamento = new DataHora();
     $this->capa = new Image();
     $this->musicas = new ListaMusicas();
     $this->musicas->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_musicas_categorias rmc INNER JOIN " . Sistema::$BDPrefixo . "musicas m ON m.id = rmc.musica WHERE rmc.categoria = '" . $this->id . "'");
 }
Beispiel #25
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->url = new URL();
     $this->texto = new Texto();
     $this->data = new DataHora();
     $this->local = '';
     $this->nome = '';
     $this->email = '';
     $this->sessao = '';
     $this->idSessao = '';
     $this->liberado = false;
 }
Beispiel #26
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->nome = '';
     $this->email = '';
     $this->msn = '';
     $this->skype = '';
     $this->voip = '';
     $this->telefone = '';
     $this->ramal = '';
     $this->ordem = '';
     $this->imagem = new Imagem();
 }
Beispiel #27
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->legenda = '';
     $this->enderecoURL = '';
     $this->ativo = false;
     $this->tipo = '';
     $this->segundos = 0;
     $this->corfundo = 'FFFFFF';
     $this->ordem = 0;
     $this->categorias = new ListaSlideCategorias();
     $this->categorias->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_slides_categorias rsc INNER JOIN " . Sistema::$BDPrefixo . "slides_categorias c ON c.id = rsc.categoria WHERE rsc.slide = '" . $this->id . "'");
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->url = new URL();
     $this->texto = new Texto();
     $this->altura = new Numero();
     $this->largura = new Numero();
     $this->alturam = new Numero();
     $this->larguram = new Numero();
     $this->alturap = new Numero();
     $this->largurap = new Numero();
     $this->galerias = new ListaGalerias();
     $this->galerias->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_galerias_categorias rgc INNER JOIN " . Sistema::$BDPrefixo . "galerias g ON g.id = rgc.galeria WHERE rgc.categoria = '" . $this->id . "'");
 }
Beispiel #29
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->imagem = new Image();
     $this->flash = '';
     $this->dataInicio = new DataHora();
     $this->dataFim = new DataHora();
     $this->clicks = 0;
     $this->enderecoURL = '';
     $this->ativo = false;
     $this->tipo = '';
     $this->largura = new Numero();
     $this->altura = new Numero();
     $this->categorias = new ListaBannerCategorias();
     $this->categorias->condicoes('', '', '', '', "SELECT * FROM " . Sistema::$BDPrefixo . "relacionamento_banners_categorias rbc INNER JOIN " . Sistema::$BDPrefixo . "banners_categorias c ON c.id = rbc.categoria WHERE rbc.banner = '" . $this->id . "'");
 }
Beispiel #30
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->produtoPai = 0;
     $this->codigo = '';
     $this->url = new URL();
     $this->nome = '';
     $this->peso = new Numero();
     $this->largura = new Numero();
     $this->altura = new Numero();
     $this->comprimento = new Numero();
     $this->valorCusto = new Numero();
     $this->valorReal = new Numero();
     $this->valorVenda = new Numero();
     $this->estoque = 0;
     $this->descricaoPequena = '';
     $this->descricao = '';
     $this->disponivel = false;
     $this->promocao = false;
     $this->lancamento = false;
     $this->destaque = false;
     $this->removido = false;
     $this->dataCadastro = new DataHora();
     $this->ordem = 0;
     $this->tipoUnidade = '';
     $this->quantidadeu = 0;
     $this->video = '';
     $this->marca = new ProdutoMarca();
     $this->frete = 0;
     $this->tipoPedido = 0;
     $this->palavrasChaves = '';
     $this->configCategorias(false);
     $this->encomendas = new Lista("produtos_encomenda");
     $aR[1] = array('campo' => "idproduto", 'valor' => $this->id);
     $this->encomendas->condicoes($aR);
     /*$this->infos			= new Lista("relacionamento_produtos_infos");
     		$this->infos->condicoes('', '', '', '', "SELECT *, t.nome as nometamanho, t.imagem as imagemtamanho, c.nome as nomecor, c.imagem as imagemcor, p.nome as nomepedra, p.imagem as imagempedra FROM ".Sistema::$BDPrefixo."relacionamento_produtos_infos rpi LEFT OUTER JOIN ".Sistema::$BDPrefixo."produtos_pedras p ON p.id = rpi.pedra LEFT OUTER JOIN ".Sistema::$BDPrefixo."produtos_tamanhos t ON t.id = rpi.tamanho LEFT OUTER JOIN ".Sistema::$BDPrefixo."produtos_cores c ON c.id = rpi.cor WHERE rpi.produto = '".$this->id."'");*/
     $this->infos = new ListaProdutos();
     $aRP[1] = array('campo' => ListaProdutos::PRODUTOPAI, 'valor' => $this->getId());
     $aRP[2] = array('campo' => ListaProdutos::REMOVIDO, 'valor' => ListaProdutos::VALOR_DISPONIVEL_FALSE);
     $this->infos->condicoes($aRP);
     $this->opcoes = new ListaProdutoOpcaoGerados();
     $aPO[1] = array('campo' => ListaProdutoOpcaoGerados::PRODUTO, 'valor' => $this->getId());
     $this->opcoes->condicoes($aPO);
 }