- Timestamp:
- 12/14/12 14:30:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/report/includes/classes/SqlParser.class.php
r5307 r7655 118 118 protected function getQuantidadeIfs($texto) { 119 119 $qtd = 0; 120 for ($i = 0; $i <= strlen($texto); $i++) {120 for ($i = 0; $i <= strlen($texto); ++$i) { 121 121 if (strtolower(substr($texto,$i,3)) == "#if") { 122 122 $qtd = $qtd + 1; … … 128 128 protected function numerarCondicao($texto,$num) { 129 129 $qtd = 0; 130 for ($i = 0; $i <= strlen($texto); $i++) {130 for ($i = 0; $i <= strlen($texto); ++$i) { 131 131 if (strtolower(substr($texto,$i,3)) == "#if") { 132 132 $qtd = $qtd + 1; … … 134 134 $condicoesfechadas = 0; 135 135 if ($qtd == $num) { 136 for ($j = $i+1; $j <= strlen($texto); $j++) {136 for ($j = $i+1; $j <= strlen($texto); ++$j) { 137 137 138 138 if ((strtolower(substr($texto,$j,5)) == "#/if#")) {
Note: See TracChangeset
for help on using the changeset viewer.