本文整理汇总了PHP中Lista::inserir方法的典型用法代码示例。如果您正苦于以下问题:PHP Lista::inserir方法的具体用法?PHP Lista::inserir怎么用?PHP Lista::inserir使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lista
的用法示例。
在下文中一共展示了Lista::inserir方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: inserir
public function inserir(PerguntaCategoria &$t)
{
parent::inserir($t);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::TITULO . ", " . self::ORDEM . ") VALUES('" . $t->titulo . "','" . $t->ordem . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$t = $l->listar();
parent::alterar($t);
}
示例2: inserir
public function inserir(NoticiaUrgente &$t)
{
parent::inserir($t);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::NOTICIA . ", " . self::ORDEM . ", " . self::DATA . ") VALUES('" . $t->noticia . "','" . $t->ordem . "','" . $t->getData()->mostrar('YmdHi') . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$t = $l->listar();
parent::alterar($t);
}
示例3: inserir
public function inserir(Email &$email, $ligacao)
{
parent::inserir($email);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::PESSOA . ", " . self::DESCRICAO . ", " . self::EMAIL . ", " . self::PRINCIPAL . ") VALUES('" . $ligacao->getId() . "','" . $email->descricao . "','" . $email->email . "','" . ($email->principal ? self::VALOR_PRINCIPAL_TRUE : self::VALOR_PRINCIPAL_FALSE) . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$email = $l->listar();
parent::alterar($email);
}
示例4: inserir
public function inserir(Galeria &$g)
{
parent::inserir($g);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::TITULO . ", " . parent::URL . ", " . self::DESCRICAO . ", " . self::LOCAL . ", " . self::TIPO . ", " . self::DATA . ", " . self::VIDEO . ") VALUES('" . $g->titulo . "','" . $g->getURL()->getId() . "','" . $g->descricao . "','" . $g->local . "','" . $g->tipo . "','" . $g->getData()->mostrar("YmdHi") . "','" . $g->getVideo() . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$g = $l->listar();
parent::alterar($g);
}
示例5: inserir
public function inserir(BannerCategoria &$t)
{
parent::inserir($t);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::TITULO . ", " . self::LARGURA . ", " . self::ALTURA . ") VALUES('" . $t->titulo . "','" . $t->getLargura()->formatar() . "','" . $t->getAltura()->formatar() . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$t = $l->listar();
parent::alterar($t);
}
示例6: inserir
public function inserir(OfertaColetiva &$p)
{
parent::inserir($p);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . parent::URL . ", " . self::EMPRESA . ", " . self::TITULO . ", " . self::SUBTITULO . ", " . self::DESTAQUES . ", " . self::REGULAMENTO . ", " . self::VALORORIGINAL . ", " . self::DESCONTO . ", " . self::ECONOMIA . ", " . self::VALOR . ", " . self::DATAINICIO . ", " . self::DATAFIM . ", " . self::QUANTIDADE . ", " . self::COMPRASMINIMA . ", " . self::COMPRASMAXIMA . ") VALUES('" . $p->getURL()->getId() . "','" . $p->getEmpresa()->getId() . "','" . $p->titulo . "','" . $p->subTitulo . "','" . $p->destaques . "','" . $p->regulamento . "','" . $p->valorOriginal->formatar() . "','" . $p->desconto->formatar() . "','" . $p->economia->formatar() . "','" . $p->valor->formatar() . "','" . $p->getDataInicio()->mostrar("YmdHi") . "','" . $p->getDataFim()->mostrar("YmdHi") . "','" . $p->quantidade . "','" . $p->comprasMinima . "','" . $p->comprasMaxima . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$p = $l->listar();
parent::alterar($p);
}
示例7: inserir
public function inserir(Telefone &$tel, $ligacao)
{
parent::inserir($tel);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::IDSESSAO . ", " . self::LOCAL . ", " . self::DDD . ", " . self::TELEFONE . ", " . self::RAMAL . ") VALUES('" . $ligacao->getId() . "','" . $tel->local . "','" . $tel->ddd . "','" . $tel->telefone . "','" . $tel->ramal . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$tel = $l->listar();
parent::alterar($tel);
}
示例8: inserir
public function inserir(Mailing &$t)
{
parent::inserir($t);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::PACOTE . ", " . parent::TEXTO . ", " . self::STATUS . ", " . self::DATA . ") VALUES('" . $t->getPacote()->getId() . "','" . $t->getTexto()->getId() . "','" . $t->getStatus() . "','" . $t->getData()->mostrar("YmdHi") . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$t = $l->listar();
parent::alterar($t);
}
示例9: inserir
public function inserir(Evento &$t)
{
parent::inserir($t);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . parent::URL . ", " . parent::TEXTO . ", " . self::DATA . ", " . self::LOCAL . ") VALUES('" . $t->getURL()->getId() . "','" . $t->getTexto()->getId() . "','" . $t->getData()->mostrar("Ymd") . "','" . $t->local . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$t = $l->listar();
parent::alterar($t);
}
示例10: inserir
public function inserir(Recado &$t)
{
parent::inserir($t);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::SESSAO . ", " . self::IDSESSAO . ", " . parent::TEXTO . ", " . self::DATA . ", " . self::LOCAL . ", " . self::NOME . ", " . self::EMAIL . ", " . self::LIBERADO . ") VALUES('" . $t->getSessao() . "','" . $t->getIdSessao() . "','" . $t->getTexto()->getId() . "','" . $t->getData()->mostrar("YmdHi") . "','" . $t->local . "','" . $t->nome . "','" . $t->email . "','" . ($t->getSituacao() ? self::VALOR_LIBERADO_TRUE : self::VALOR_LIBERADO_FALSE) . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$t = $l->listar();
parent::alterar($t);
}
示例11: inserir
public function inserir(Ticket &$t)
{
parent::inserir($t);
$dT = new DataHora();
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::CLIENTE . ", " . self::TITULO . ", " . self::NIVEL . ", " . self::STATUS . ", " . self::SATISFACAO . ", " . self::DATAHORA_CRIACAO . ", " . self::DATAHORA_ALTERACAO . ") VALUES('" . $t->getCliente()->getId() . "','" . $t->titulo . "','" . $t->getNivel() . "','" . $t->getStatus() . "','" . $t->getSatisfacao() . "','" . $dT->mostrar("YmdHi") . "','" . $dT->mostrar("YmdHi") . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$t = $l->listar();
parent::alterar($t);
}
示例12: inserir
public function inserir(Pedido &$p)
{
parent::inserir($p);
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::IDSESSAO . ", " . self::QUANTIDADE . ", " . self::OBSERVACOES . ", " . self::TIPOPAGAMENTO . ", " . self::VALOR . ", " . self::DESCONTO . ", " . self::DATA . ", " . self::STATUS . ") VALUES('" . $p->getCliente()->getId() . "','" . $p->quantidade . "','" . $p->observacoes . "','" . $p->getTipoPagamento() . "','" . $p->calcular()->getValor()->formatar() . "','" . $p->getDesconto()->num . "','" . $p->getData()->mostrar('YmdHi') . "','" . $p->getStatus()->getStatus() . "')");
$id = $this->con->getId();
$class = __CLASS__;
$lP = new $class();
$temp = $lP->condicoes('', $id, self::ID)->listar();
$p = $temp;
$lPEE = new ListaPedidoEnderecoEntregas();
$lPEE->inserir($p->getEndereco(), $p);
parent::alterar($p);
}
示例13: inserir
public function inserir(&$pes)
{
parent::inserir($pes);
if ($pes->getFoto()->nome != '') {
$foto = $pes->getFoto()->saveImage(Sistema::$caminhoDiretorio . Sistema::$caminhoDataPessoasPerfil);
}
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . parent::URL . "," . parent::TEXTO . "," . self::TIPO . ", " . self::NOME . ", " . self::EMAIL . ", " . self::USUARIO . ", " . self::SENHA . ", " . self::EMAILSECUNDARIO . ", " . self::SEXO . ", " . self::RG . ", " . self::CPF . ", " . self::DATANASC . ", " . self::RAZAOSOCIAL . ", " . self::CNPJ . ", " . self::SITE . ", " . self::DATACADASTRO . ", " . self::FOTO . ") VALUES('" . $pes->getURL()->getId() . "','" . $pes->getTexto()->getId() . "','" . $tipo . "','" . $pes->nome . "','" . $pes->emailPrimario . "','" . $pes->usuario . "','" . $pes->senha . "','" . $pes->emailSecundario . "','" . $pes->sexo . "','" . $pes->rg . "','" . $pes->cpf . "','" . ($tipo == self::VALOR_TIPO_PESSOA_FISICA ? $pes->getDataNasc()->mostrar("Ymd") : '') . "','" . $pes->razaoSocial . "','" . $pes->cnpj . "','" . $pes->site . "','" . $pes->getDataCadastro()->mostrar("YmdHi") . "','" . $foto . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$pes = $l->listar();
parent::alterar($pes);
}
示例14: inserir
public function inserir(MusicaCategoria &$t)
{
parent::inserir($t);
if ($t->getCapa()->nome != "") {
$imagem = $t->getCapa()->saveImage(Sistema::$caminhoDiretorio . Sistema::$caminhoDataDiscografia);
}
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::TITULO . ", " . self::SUBTITULO . ", " . self::GRAVADORA . ", " . self::DATALANCAMENTO . ", " . self::CAPA . ", " . self::ORDEM . ") VALUES('" . $t->titulo . "','" . $t->subTitulo . "','" . $t->gravadora . "','" . $t->getDataLancamento()->mostrar("Ymd") . "','" . $imagem . "','" . $t->ordem . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$t = $l->listar();
parent::alterar($t);
}
示例15: inserir
public function inserir(Musica &$t)
{
parent::inserir($t);
if ($t->getMusica()->nome != '') {
$arquivo = $t->getMusica()->nome . "." . $t->getMusica()->extensao;
$t->getMusica()->saveArquivo(Sistema::$caminhoDiretorio . Sistema::$caminhoDataDiscografia);
}
$this->con->executar("INSERT INTO " . Sistema::$BDPrefixo . $this->tabela . "(" . self::TITULO . ", " . self::MUSICA . ", " . self::ORDEM . ") VALUES('" . $t->titulo . "','" . $arquivo . "','" . $t->ordem . "')");
$id = $this->con->getId();
$class = __CLASS__;
$l = new $class();
$l->condicoes('', $id, self::ID);
$t = $l->listar();
parent::alterar($t);
}