Changeset 7673 for trunk/workflow/inc/class.so_userinterface.inc.php
- Timestamp:
- 12/18/12 16:15:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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' ];
Note: See TracChangeset
for help on using the changeset viewer.