This file contains 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
/* | |
* NOME FUNCAO: nomeFunction | |
* FUNCAO: explicacao da funcao da function | |
* | |
* Parametros: | |
* -- parametro - sobre, oque é.. | |
* | |
* Retorno: | |
* -- retorno - como e pq | |
* |
This file contains 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
;(function( win, doc, $, undefined ) { | |
'use strict'; | |
function ServiceCEP() { | |
var $public = {}; | |
var $private = {}; | |
$private.cepValido = function cepValido(dados, prefixo) { | |
if (dados) { | |
$("#endereco" + prefixo).val(dados.logradouro); |
This file contains 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
//elemento = elemento do clique( o input id="cep" ) | |
// precisa-se verificar se ja existe 9 caracteres caso existir -( 00000-000 ) | |
// senao verificar se ha 8 caracteres no input ( 00000000 ) | |
window.Module.ServiceCEP.getEndereco(elemento); |
This file contains 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
/* | |
* Descricao rápida (Ex: Arquivo com estilizacao default para forms) | |
* Descricao Completa (Ex: Formularios para edicao e adicionar no estilo horizontal...) | |
* Alerta. (Ex: Ao editar algum item, fazer verificacao das páginas que contem tal classe) | |
* | |
* ============================== | |
* | |
* INDICE | |
* | |
* - Grupo de classes1 (BTNS) |
This file contains 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 Services\TratarURL; | |
class UrlAmigavel | |
{ | |
public function replace_accent($str) | |
{ | |
$a = array('À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î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appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/** | |
* @var ${1:integer} | |
* | |
* @ORM\Column(name="${2:NOME_NO_BD}", type="${1:integer}", nullable=${3:false}) | |
*/ | |
${4:private} \$${5:nomeCampo}; | |
/** |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
/** | |
* Get ${1:nomeCampo} | |
* | |
* @return ${1:integer} | |
*/ | |
public function get${2:NomeCampoCamelCase}() | |
{ | |
return \$this->${1:nomeCampo}; |
This file contains 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
{ | |
"caret_style": "phase", | |
"copy_with_empty_selection": false, | |
"detect_slow_plugins": false, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", |
This file contains 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 Auth\Authentication\Factory; | |
use Auth\Authentication\Adapter; | |
use Zend\ServiceManager\FactoryInterface; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
use Zend\Authentication\AuthenticationService; | |
use Zend\Authentication\Storage\Session; |
This file contains 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 Auth\Authentication\Factory; | |
use Auth\Authentication\Adapter; | |
use Zend\ServiceManager\FactoryInterface; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
use Zend\Authentication\AuthenticationService; | |
use Zend\Authentication\Storage\Session; |
OlderNewer