Exemplo n.º 1
0
 public function __toString()
 {
     $xml = file_get_contents(__DIR__ . '/../Templates/evCCXmlRetorno.xml');
     $xml = str_replace('{{versao}}', $this->versao, $xml);
     $xml = str_replace('{{signedMsg}}', AjustaXML::limpaXml($this->signedMsg), $xml);
     $xml = str_replace('{{retEvento}}', $this->retEvento, $xml);
     return $xml;
 }
Exemplo n.º 2
0
 public function __toString()
 {
     $xml = file_get_contents(__DIR__ . '/../Templates/evDadosMsg.xml');
     $xml = str_replace('{{idLote}}', $this->idLote, $xml);
     $xml = str_replace('{{versao}}', $this->versao, $xml);
     $xml = str_replace('{{xml}}', $this->xml, $xml);
     $xml = AjustaXML::limpaXml($xml);
     return $xml;
 }
Exemplo n.º 3
0
 public function __toString()
 {
     $xml = file_get_contents(__DIR__ . '/../Templates/evCancelaMsg.xml');
     $xml = str_replace('$cOrgao', $this->cOrgao, $xml);
     $xml = str_replace('$tpAmb', $this->tpAmb, $xml);
     $xml = str_replace('$cnpj', $this->cnpj, $xml);
     $xml = str_replace('$chNFe', $this->chNFe, $xml);
     $xml = str_replace('$dhEvento', $this->dhEvento, $xml);
     $xml = str_replace('$tpEvento', $this->tpEvento, $xml);
     $xml = str_replace('$nSeqEvento', $this->nSeqEvento, $xml);
     $xml = str_replace('$versao', $this->versao, $xml);
     $xml = str_replace('$descEvento', $this->descEvento, $xml);
     $xml = str_replace('$tagAdic', $this->tagAdic, $xml);
     $xml = str_replace('$xCondUso', $this->xCondUso, $xml);
     $xml = str_replace('$xCorrecao', $this->xCorrecao, $xml);
     $xml = str_replace('$eventId', $this->eventId, $xml);
     $xml = AjustaXML::limpaXml($xml);
     return $xml;
 }
Exemplo n.º 4
0
 public function __toString()
 {
     $xml = file_get_contents(__DIR__ . '/../Templates/nfeInutBody.xml');
     $xml = str_replace('{{xml}}', $this->xml, $xml);
     return (string) AjustaXML::limpaXml($xml);
 }
Exemplo n.º 5
0
 public function __toString()
 {
     $xml = file_get_contents(__DIR__ . '/../Templates/nfeInutMsg.xml');
     $xml = str_replace('{{versao}}', $this->versao, $xml);
     $xml = str_replace('{{idInut}}', $this->idInut, $xml);
     $xml = str_replace('{{tpAmb}}', Sefaz::$ambientes[$this->tpAmb], $xml);
     $xml = str_replace('{{cUF}}', $this->cUF, $xml);
     $xml = str_replace('{{sAno}}', $this->sAno, $xml);
     $xml = str_replace('{{cnpj}}', $this->cnpj, $xml);
     $xml = str_replace('{{mod}}', $this->mod, $xml);
     $xml = str_replace('{{serie}}', $this->serie, $xml);
     $xml = str_replace('{{nIni}}', $this->nIni, $xml);
     $xml = str_replace('{{nFin}}', $this->nFin, $xml);
     $xml = str_replace('{{xJust}}', $this->xJust, $xml);
     return (string) AjustaXML::limpaXml($xml);
 }