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 | |
// Forma antiga | |
$validarQtde = $this->validarQtdeProdutoPedido($request['f_int_qtty']); | |
if("acerto" != $validarQtde['classe']) { | |
throw new Exception($validarQtde['erro']); | |
} | |
// --------------- |
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 | |
function execToExc(array $executa) | |
{ | |
if('acerto' != $executa['classe']) | |
throw new Exception($executa['msg']); | |
return $executa; | |
} |
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
; Arquivo de configuracoes do WebPDV | |
; Inicio em 09.07.2011 | |
[producao] | |
url.fornecedor = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/fornecedor' | |
url.fabricante = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/fabricante' | |
url.produtoClasse = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/produtoClasse' | |
url.produto = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/produto' | |
url.recebimento = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/recebimento' |
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
.vagrant/ | |
.idea/ | |
webpdv/nbproject/ | |
webpdv/nbproject/private/private.xml | |
.gitignore | |
webpdv/includes/global.php | |
webpdv/admin/email/ |
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
UseCanonicalName Off | |
VirtualDocumentRoot /vagrant/%2/%1/ | |
# Explicando melhor | |
# O apache vai receber uma url dessa forma aqui http://app.empresa.com.br/ | |
# E ele vai procurar pela pasta /vagrant/empresa/app/ | |
# Outro exemplo http://gist.github.com/ | |
# Ele vai procurar por /vagrant/gitgub/gist/ | |
# Tem que habilitar o modulo vhost_alias. |
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
UseCanonicalName Off | |
VirtualDocumentRoot /vagrant/%2/%1/ | |
# Explicando melhor | |
# O apache vai receber uma url dessa forma aqui http://app.empresa.com.br/ | |
# E ele vai procurar pela pasta /vagrant/empresa/app/ | |
# Outro exemplo http://gist.github.com/ | |
# Ele vai procurar por /vagrant/gitgub/gist/ | |
# Tem que habilitar o modulo vhost_alias. |
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
./configure --with-apxs2=/opt/apache2/bin/apxs --enable-zip --with-curl --with-pdo-mysql --with-gd --prefix=/opt/php5 --enable-mbstring --enable-bcmath --with-config-file-scan-dir=/opt/php5/php.d --enable-intl --with-openssl --enaple-ftp |
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 | |
/** | |
* Validador para Cadastro de Pessoa Jurídica | |
* | |
* @author Wanderson Henrique Camargo Rosa | |
* @category Hazel | |
* @package Hazel_Validator | |
*/ | |
class MS_Validator_Cnpj extends MS_Validator_CpAbstract |
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, Objects, Patterns and Practice (Matt Zandstra) (http://www.amazon.com/Objects-Patterns-Practice-Experts-Source/dp/143022925X/) | |
* Entendendo e Dominando o PHP, versão traduzida do livro acima (http://www.linuxmall.com.br/produto/livro-entendendo-e-dominando-o-php.html) | |
* The Pragmatic Programmer (http://www.amazon.com/gp/product/020161622X/) | |
* Refactoring (http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672/) | |
* Patterns of Enterprise Application (http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420/) | |
* Domain Drive Design (http://www.amazon.com/Domain-Driven-Design-Tackling-Complexity-Software/dp/0321125215/) | |
* Essential PHP Security (http://www.amazon.com/Essential-PHP-Security-Chris-Shiflett/dp/059600656X/) | |
* Date and Time Programming (http://www.amazon.com/architects-Guide-Date-Time-Programming/dp/0981034500/) |
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 | |
array( | |
"0" => array( | |
"ws_chave" => "cf4670a072c224ff7dda824f78059ea7", | |
"loja_cnpj" => "31743818004549", "atendente_cpf" => "04447636514", | |
), | |
"1" => array( | |
"cod_tipo_pessoa" => "F", | |
"identificacao" => array( | |
"num_cpf" => "85921821586", |