Changeset 7673 for trunk/workflow
- Timestamp:
- 12/18/12 16:15:29 (11 years ago)
- Location:
- trunk/workflow/inc
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.BrowserInfo.inc.php
r7655 r7673 304 304 $required = explode('.', $version); 305 305 $current = explode('.', $this->getBrowserVersion()); 306 for ($i = 0; $i < count($required); ++$i) 306 $required_count = count($required); 307 for ($i = 0; $i < $required_count; ++$i) 307 308 { 308 309 $subRequired = (int) $required[$i]; -
trunk/workflow/inc/class.Paging.inc.php
r7655 r7673 224 224 $links[] = $tmp; 225 225 } 226 227 for ($i = 0; $i < count($paginationLinks); ++$i)226 $paginationLinks_count = count($paginationLinks); 227 for ($i = 0; $i < $paginationLinks_count; ++$i) 228 228 { 229 229 $tmp = $paginationLinks[$i]; -
trunk/workflow/inc/class.bo_userinterface.inc.php
r7655 r7673 846 846 847 847 $areas = $this->so->getAreaList($this->organizationInfo['organizacao_id']); 848 for ($i = 0; $i < count($areas); ++$i) 848 $areas_count = count($areas); 849 for ($i = 0; $i < $areas_count; ++$i) 849 850 { 850 851 $areas[$i]['children'] = false; -
trunk/workflow/inc/class.so_external_applications.inc.php
r7655 r7673 148 148 149 149 $output = $result->GetArray(-1); 150 for ($i = 0; $i < count($output); ++$i) 150 $output_count = count($output); 151 for ($i = 0; $i < $output_count; ++$i) 151 152 for ($j = 0; $j < $result->_numOfFields; ++$j) 152 153 unset($output[$i][$j]); … … 170 171 171 172 $output = $result->GetArray(-1); 172 for ($i = 0; $i < count($output); ++$i) 173 $output_count = count($output); 174 for ($i = 0; $i < $output_count; ++$i) 173 175 for ($j = 0; $j < $result->_numOfFields; ++$j) 174 176 unset($output[$i][$j]); -
trunk/workflow/inc/class.so_orgchart.inc.php
r7655 r7673 152 152 153 153 $output = $result->GetArray(-1); 154 for ($i = 0; $i < count($output); ++$i) 154 $output_count = count($output); 155 for ($i = 0; $i < $output_count; ++$i) 155 156 for ($j = 0; $j < $result->_numOfFields; ++$j) 156 157 unset($output[$i][$j]); … … 385 386 386 387 $output = $result->GetArray(-1); 387 for ($i = 0; $i < count($output); ++$i) 388 $output_count = count($output); 389 for ($i = 0; $i < $output_count; ++$i) 388 390 for ($j = 0; $j < $result->_numOfFields; ++$j) 389 391 unset($output[$i][$j]); … … 462 464 463 465 $output = $result->GetArray(-1); 464 for ($i = 0; $i < count($output); ++$i) 466 $output_count = count($output); 467 for ($i = 0; $i < $output_count; ++$i) 465 468 for ($j = 0; $j < $result->_numOfFields; ++$j) 466 469 unset($output[$i][$j]); … … 541 544 542 545 $output = $result->GetArray(-1); 543 for ($i = 0; $i < count($output); ++$i) 546 $output_count = count($output); 547 for ($i = 0; $i < $output_count; ++$i) 544 548 for ($j = 0; $j < $result->_numOfFields; ++$j) 545 549 unset($output[$i][$j]); … … 623 627 624 628 $output = $result->GetArray(-1); 625 for ($i = 0; $i < count($output); ++$i){ 629 $output_count = count($output); 630 for ($i = 0; $i < $output_count; ++$i){ 626 631 for ($j = 0; $j < $result->_numOfFields; ++$j) 627 632 unset($output[$i][$j]); … … 714 719 $cachedLDAP = Factory::newInstance('CachedLDAP'); 715 720 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_LDAP_DATABASE); 716 for ($i = 0; $i < count($output); ++$i) 721 $output_count = count($output); 722 for ($i = 0; $i < $output_count; ++$i) 717 723 { 718 724 $output[$i]['funcionario_id_desc'] = ''; … … 790 796 791 797 $output = $result->GetArray(-1); 792 for ($i = 0; $i < count($output); ++$i) 798 $output_count = count($output); 799 for ($i = 0; $i < $output_count; ++$i) 793 800 { 794 801 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 1003 1010 1004 1011 $output = $result->GetArray(-1); 1005 for ($i = 0; $i < count($output); ++$i) 1012 $output_count = count($output); 1013 for ($i = 0; $i < $output_count; ++$i) 1006 1014 { 1007 1015 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 1384 1392 1385 1393 $output = $result->GetArray(-1); 1386 for ($i = 0; $i < count($output); ++$i) 1394 $output_count = count($output); 1395 for ($i = 0; $i < $output_count; ++$i) 1387 1396 for ($j = 0; $j < $result->_numOfFields; ++$j) 1388 1397 unset($output[$i][$j]); … … 1586 1595 1587 1596 $output = $result->GetArray(-1); 1588 for ($i = 0; $i < count($output); ++$i) { 1597 $output_count = count($output); 1598 for ($i = 0; $i < $output_count; ++$i) { 1589 1599 for ($j = 0; $j < $result->_numOfFields; ++$j) 1590 1600 unset($output[$i][$j]); -
trunk/workflow/inc/class.so_userinterface.inc.php
r7655 r7673 123 123 124 124 /* keep only associative elments and check if the user can access an intranet application */ 125 for ($i = 0; $i < count($preOutput); ++$i) 125 $preOutput_count = count($preOutput); 126 for ($i = 0; $i < $preOutput_count; ++$i) 126 127 { 127 128 if (($preOutput[$i]['intranet_only'] == '1') && (!$showIntranetApplications)) … … 169 170 170 171 $output = $result->GetArray(-1); 171 for ($i = 0; $i < count($output); ++$i) 172 $output_count = count($output); 173 for ($i = 0; $i < $output_count; ++$i) 172 174 for ($j = 0; $j < $result->_numOfFields; ++$j) 173 175 unset($output[$i][$j]); … … 196 198 197 199 $output = $result->GetArray(-1); 198 for ($i = 0; $i < count($output); ++$i) 200 $output_count = count($output); 201 for ($i = 0; $i < $output_count; ++$i) 199 202 { 200 203 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 218 221 219 222 $output = $result->GetArray(-1); 220 for ($i = 0; $i < count($output); ++$i) 223 $output_count = count($output); 224 for ($i = 0; $i < $output_count; ++$i) 221 225 for ($j = 0; $j < $result->_numOfFields; ++$j) 222 226 unset($output[$i][$j]); … … 296 300 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_NORMAL); 297 301 $categoriesCount = array(); 298 for ($i = 0; $i < count($employees); ++$i) 302 $employees_count = count($employees); 303 for ($i = 0; $i < $employees_count; ++$i) 299 304 { 300 305 /* remove numeric fields */ … … 396 401 $cachedLDAP = Factory::newInstance('CachedLDAP'); 397 402 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_NORMAL); 398 for ($i = 0; $i < count($employees); ++$i) 403 $employees_count = count($employees); 404 for ($i = 0; $i < $employees_count; ++$i) 399 405 { 400 406 /* remove numeric fields */ … … 434 440 435 441 if (count($searchTermExploded) > 0){ 436 for ($i=1; $i<count($searchTermExploded); ++$i) { 442 $searchTermExploded_count = count($searchTermExploded); 443 for ($i=1; $i<$searchTermExploded_count; ++$i) { 437 444 if (strlen($searchTermExploded[$i]) > 2) { 438 445 $fullSearch = true; … … 481 488 482 489 /* filling return array with employee's information */ 483 for ($i = 0; $i < count($result); ++$i) { 490 $result_count = count($result); 491 for ($i = 0; $i < $result_count; ++$i) { 484 492 $employees []= array( 485 493 'area' => $result[$i]['area'], … … 536 544 /* creating the ldap query */ 537 545 $ldap_query = '(&(|'; 538 for ($i = 0; $i < count($result); ++$i) { 546 $result_count = count($result); 547 for ($i = 0; $i < $result_count; ++$i) { 539 548 $ldap_query .= '(uidNumber=' . $result[$i]['funcionario_id'] . ')'; 540 549 } … … 556 565 /* filling return array with employee's information */ 557 566 $employees = array(); 558 for ($i = 0; $i < count($result); ++$i) { 567 $result_count = count($result); 568 for ($i = 0; $i < $result_count; ++$i) { 559 569 560 570 $employee = array(); … … 642 652 643 653 /* filling return array with employee's information */ 644 for ($i = 0; $i < count($result); ++$i) { 654 $result_count = count($result); 655 for ($i = 0; $i < $result_count; ++$i) { 645 656 $employees []= array( 646 657 'area' => $result[$i]['area'], … … 707 718 708 719 $output = $result->GetArray(-1); 709 for ($i = 0; $i < count($output); ++$i) 720 $output_count = count($output); 721 for ($i = 0; $i < $output_count; ++$i) 710 722 for ($j = 0; $j < $result->_numOfFields; ++$j) 711 723 unset($output[$i][$j]); … … 728 740 729 741 $output = $result->GetArray(-1); 730 for ( $i = 0; $i < count($output); ++$i ) 742 $output_count = count($output); 743 for ( $i = 0; $i < $output_count; ++$i ) 731 744 { 732 745 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 759 772 760 773 $output = $result->GetArray( -1 ); 761 for ( $i = 0; $i < count($output); ++$i ) 774 $output_count = count($output); 775 for ( $i = 0; $i < $output_count; ++$i ) 762 776 for ($j = 0; $j < $result->_numOfFields; ++$j) 763 777 unset($output[$i][$j]); … … 795 809 796 810 $categoriesCount = array( ); 797 for ( $i = 0; $i < count( $employees ); ++$i ) 811 $employees_count = count( $employees ); 812 for ( $i = 0; $i < $employees_count; ++$i ) 798 813 { 799 814 // remove numeric fields … … 867 882 868 883 $categoriesCount = array( ); 869 for ( $i = 0; $i < count( $employees ); ++$i ) 884 $employees_count = count( $employees ); 885 for ( $i = 0; $i < $employees_count; ++$i ) 870 886 { 871 887 // remove numeric fields … … 893 909 894 910 // count the number of employees in each category 895 for ( $i = 0; $i < count( $employees ); ++$i ) 911 $employees_count = count( $employees ); 912 for ( $i = 0; $i < $employees_count; ++$i ) 896 913 { 897 914 $categoryID = $employees[ $i ][ 'funcionario_categoria_id' ]; -
trunk/workflow/inc/class.ui_orgchart.inc.php
r7655 r7673 152 152 153 153 $ldap = &Factory::getInstance('WorkflowLDAP'); 154 for ($i = 0; $i < count($output); ++$i) 154 $output_count = count($output); 155 for ($i = 0; $i < $output_count; ++$i) 155 156 { 156 157 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 162 163 $supervisorArray = explode(' ', $supervisor); 163 164 $supervisorName = ''; 164 for ($j = 0; $j < count($supervisorArray); ++$j) 165 $supervisorArray_count = count($supervisorArray); 166 for ($j = 0; $j < $supervisorArray_count; ++$j) 165 167 $supervisorName .= (($j == 0) || ($j == count($supervisorArray) - 1)) ? $supervisorArray[$j] . ' ' : $supervisorArray[$j][0] . '. '; 166 168 $supervisorName = trim(str_replace("Junior", "Jr", $supervisorName)); -
trunk/workflow/inc/class.utils.security.php
r7655 r7673 68 68 function SecurityUtils($tagsArray = array(), $attrArray = array(), $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1) { 69 69 // make sure user defined arrays are in lowercase 70 for ($i = 0; $i < count($tagsArray); ++$i) $tagsArray[$i] = strtolower($tagsArray[$i]); 71 for ($i = 0; $i < count($attrArray); ++$i) $attrArray[$i] = strtolower($attrArray[$i]); 70 $tagsArray_count = count($tagsArray); 71 for ($i = 0; $i < $tagsArray_count; ++$i) 72 $tagsArray[$i] = strtolower($tagsArray[$i]); 73 $attrArray_count = count($attrArray); 74 for ($i = 0; $i < $attrArray_count; ++$i) 75 $attrArray[$i] = strtolower($attrArray[$i]); 72 76 // assign to member vars 73 77 $this->tagsArray = (array) $tagsArray; … … 135 139 $newSet = array(); 136 140 // process attributes 137 for ($i = 0; $i <count($attrSet); ++$i) { 141 $attrSet_count = count($attrSet); 142 for ($i = 0; $i < $attrSet_count; ++$i) { 138 143 // skip blank spaces in tag 139 144 if (!$attrSet[$i]) continue;
Note: See TracChangeset
for help on using the changeset viewer.