Permalink
Browse files

*** empty log message ***

git-svn-id: svn://localhost/trunk/framework@115 d4ae54e7-3327-0410-85cd-b2f17f391f55
  • Loading branch information...
1 parent fb7b880 commit 3f3a2d039dfef0c568dddab7bf7bbda1247d893d @tapajos committed Mar 14, 2006
Showing with 27 additions and 3 deletions.
  1. +5 −0 funcoes/funcoesDeData.inc
  2. +11 −1 funcoes/funcoesDinheiro.inc
  3. +8 −1 funcoes/funcoesPostEgets.inc
  4. +3 −1 funcoes/funcoesSession.inc
@@ -1,5 +1,10 @@
<?php
+
+/*
+ * getDataAtualFormatada retorna a data atual no formato DD/MM/AAAA
+ */
+
function getDataAtualFormatada () {
return $dataAtualFormatoNormal = date(d)."/".date(m)."/".date(Y); ;
}
@@ -1,11 +1,21 @@
<?php
+/*
+ * calculaValorSemVirgulas -> Retorna o valor sem pontos nem virgulas.
+ * Exemplo: entrada 100,00 saida 10000
+ */
+
function calculaValorSemVirgulas($valor) {
$valor = str_replace(".", "", $valor);
$valor = str_replace(",", "", $valor);
return $valor;
}
-
+
+/*
+ * calculaValorComReais -> Concatena o R$ antes
+ *
+ */
+
function calculaValorComReais($valor) {
$valor = "R\$".$valor;
return $valor;
@@ -1,5 +1,8 @@
<?php
-
+/*
+ * variaveisViaPost -> Cria todas as variaveis via post
+ */
+
function variaveisViaPost() {
foreach ($_POST as $campo => $valor) {
@@ -8,6 +11,10 @@ foreach ($_POST as $campo => $valor) {
}
+/*
+ * variaveisViaGet -> Cria todas as variaveis via get
+ */
+
function variaveisViaGet() {
foreach ($_GET as $campo => $valor) {
@@ -1,5 +1,7 @@
<?php
-
+/*
+ * variaveisViaSession -> Cria todas as variaveis via Session
+ */
function variaveisViaSession() {
foreach ($_SESSION as $campo => $valor) {

0 comments on commit 3f3a2d0

Please sign in to comment.