This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'lib/SplClassLoader.php' ; | |
$classLoader = new SplClassLoader ( 'Symfony' , 'lib' ) ; | |
$classLoader -> register () ; | |
$classLoader = new SplClassLoader ( 'PHPGit' , 'lib' ) ; | |
$classLoader -> register (); | |
$git = new PHPGit\Git(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Chamado { | |
private $id; | |
private $descricao; | |
private $status; | |
} | |
class Chamdo_Builder { | |
public function build(array $dados){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://wms.moveissimonetti.com.br/soap/index/index/service/expedicao" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Body xmlns:rpc="http://www.w3.org/2003/05/soap-rpc"><ns1:consultarEtiquetasResponse env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"><rpc:result>return</rpc:result><return enc:itemType="ns2:Map" enc:arraySize="10" xsi:type="enc:Array"><item xsi:type="ns2:Map"><item><key xsi:type="xsd:string">idCarga</key><value xsi:type="xsd:int">637801</value></item><item><key xsi:type="xsd:string">tipoCarga</key><value xsi:type="xsd:string">CARGA</value></item><item><key xsi:type="xsd:string">tipoPedido</key><value xsi:type="xsd:string">ENTREGA</value></item><item><key xsi:type="xsd:string">codPedido</key><value xsi:type="xsd:int">3414 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory /var/www/> | |
Options Indexes FollowSymLinks MultiViews |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
000-000 = CRT | |
001-000 = 34 | |
003-000 = 729,00 | |
004-000 = 0 | |
009-000 = 0 | |
010-000 = VISA ELECTRON | |
010-001 = 05 | |
010-004 = 498442 | |
011-000 = 32 | |
012-000 = 999250004 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25/05/2015-15:42:36:840: >> iTEFImprimirResposta_NFCe_Daruma(C:\Windows\Temp\imp3AB0.tmp, 1, 2, 0) | |
25/05/2015-15:42:36:841: >> genGetCorteGuilhotina_NFCe() | |
25/05/2015-15:42:36:841: >> impDaruma_GetCorteGuilhotina(79033680) | |
25/05/2015-15:42:36:841: >> hsImpEscreverBytes_NFCe(å) | |
25/05/2015-15:42:36:841: >> esEscreverSerial(COM7, å, 2) | |
25/05/2015-15:42:36:841: << esEscreverSerial - RETORNO NUMERO: 1 | |
25/05/2015-15:42:36:842: << hsImpEscreverBytes_NFCe - RETORNO NUMERO: 1 | |
25/05/2015-15:42:36:842: >> hsImpLerBytes_NFCe() | |
25/05/2015-15:42:38:992: >> fnGetCTSStatus(0) | |
25/05/2015-15:42:38:992: dwModemStatus = 0 - piCTS = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Faturamento/EntregaOrigem; | |
interface GeradorObervacao | |
{ | |
public function getObservacao(Entrega $entrega); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_REQUEST['conteudo'])) { | |
$notas = []; | |
$lista = explode(PHP_EOL, $_REQUEST['conteudo']); | |
$contador = 0; | |
foreach($lista as $nota) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\EventListener; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
class RequestListener | |
{ | |
public function onKernelRequest(GetResponseEvent $event) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELIMITER $$ | |
CREATE TRIGGER webpdv.`veiculos_BUPD` | |
BEFORE UPDATE ON webpdv.`veiculos` | |
FOR EACH ROW BEGIN | |
INSERT INTO `webpdv_log`.`veiculos` | |
SET `id_veiculo` = OLD.id_veiculo, | |
`placa` = OLD.placa, | |
`veiculo` = OLD.veiculo, | |
`renavam` = OLD.renavam, | |
`ano` = OLD.ano, |