Exemple #1
0
 /**
  * Imprime la salida XML
  *
  */
 public function out_response()
 {
     header('Content-Type: text/xml');
     header('Pragma: no-cache');
     header('Expires: 0');
     $this->_xml->endElement();
     // end <response>
     print $this->_xml->outputMemory(true);
 }
 /**
  * Este serve para inserir objeto em um software.  
  * @param Objeto $objeto
  * @param Software $software
  * @return boolean
  */
 public function inserir(Objeto $objeto, Software $software)
 {
     $idSoftware = $software->getId();
     $nomeDoObjeto = $objeto->getNome();
     $persistenciaObjeto = $objeto->getPersistencia();
     $insert = "INSERT into objeto\n\t\t(software_id_software, nome, persistencia) \n\t\tvalues({$idSoftware}, '{$nomeDoObjeto}', '{$persistenciaObjeto}')";
     if ($this->conexao->query($insert)) {
         return true;
     } else {
         //echo "<br>".$insert;
         return false;
     }
 }
 public function inserir(Objeto $objeto, Atributo $atributo)
 {
     $idDoObjeto = $objeto->getId();
     $indice = $atributo->getIndice();
     $nome = $atributo->getNome();
     $tipo = $atributo->getTipo();
     $relacionamento = $atributo->getTipoDeRelacionamentoComObjeto();
     $insert = "INSERT into atributo (objeto_id_objeto, nome, tipo, indice, relacionamento_com_objeto) \n\t\tvalues({$idDoObjeto}, '{$nome}', '{$tipo}', '{$indice}', '{$relacionamento}')";
     if ($this->conexao->query($insert)) {
         return true;
     } else {
         return false;
     }
 }
Exemple #4
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->url = new URL();
     $this->texto = new Texto();
     $this->data = new DataHora();
 }
 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->data = new DataHora();
     $this->noticia = '';
     $this->ordem = 0;
 }
Exemple #7
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->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->valor = '';
     $this->cor = '';
     $this->image = new NewImage(1, 1);
 }
Exemple #10
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->nome = '';
     $this->hexadecimal = '';
     $this->imagem = new Image();
 }
Exemple #11
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 . "'");
 }
Exemple #12
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->status = self::PARADO;
     $this->texto = new Texto();
     $this->pacote = new PacoteMailing();
     $this->data = new DataHora();
 }
Exemple #13
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->dataHora = new DataHora();
     $this->texto = '';
     $this->nome = '';
     $this->arquivo = Arquivos::__Create("");
 }
 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 . "'");
 }
Exemple #15
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->url = '';
     $this->tabela = '';
     $this->campo = '';
     $this->valor = '';
 }
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->titulo = '';
     $this->ordem = 0;
     $this->perguntas = new ListaPerguntas();
     $this->perguntas->condicoes('', $this->id, ListaPerguntas::CATEGORIA);
 }
 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();
 }
 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 . "'");
 }
 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 . "'");
 }
 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);
 }
Exemple #21
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->nome = '';
     $this->descricao = '';
     $this->enderecoURL = '';
     $this->imagem = new Image();
     $this->url = new URL();
     $this->disponivel = false;
 }
Exemple #23
0
 public function __construct($id = '')
 {
     parent::__construct($id);
     $this->idIdioma = '';
     $this->campoConteudo = '';
     $this->idConteudo = '';
     $this->tabelaConteudo = '';
     $this->conteudo = '';
     $this->traducao = '';
 }
Exemple #24
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)));
 }
Exemple #25
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();
 }
Exemple #26
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 . "'");
 }
Exemple #28
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();
 }
Exemple #29
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;
 }
Exemple #30
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 . "'");
 }