Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/plugins/icalcreator/iCalUtilityFunctions.class.php

    r5341 r7655  
    441441    $output = array(); 
    442442    $val    = null; 
    443     for( $ix=0; $ix < strlen( $duration ); $ix++ ) { 
     443    for( $ix=0; $ix < strlen( $duration ); ++$ix ) { 
    444444      switch( strtoupper( substr( $duration, $ix, 1 ))) { 
    445445       case 'W': 
     
    839839        $yeardays   = $weekno = 0; 
    840840        $yeardaycnt = array(); 
    841         for( $m = 1; $m <= 12; $m++ ) { // count up and update up-counters 
     841        for( $m = 1; $m <= 12; ++$m ) { // count up and update up-counters 
    842842          $daycnts[$m] = array(); 
    843843          $weekdaycnt = array(); 
     
    845845            $yeardaycnt[$dn] = $weekdaycnt[$dn] = 0; 
    846846          $mcnt     = date( 't', mktime( 0, 0, 0, $m, 1, $wdate['year'] )); 
    847           for( $d   = 1; $d <= $mcnt; $d++ ) { 
     847          for( $d   = 1; $d <= $mcnt; ++$d ) { 
    848848            $daycnts[$m][$d] = array(); 
    849849            if( isset( $recur['BYYEARDAY'] )) { 
    850               $yeardays++; 
     850              ++$yeardays; 
    851851              $daycnts[$m][$d]['yearcnt_up'] = $yeardays; 
    852852            } 
     
    10261026        else { 
    10271027            /* update result array if BYSETPOS is set */ 
    1028           $countcnt++; 
     1028          ++$countcnt; 
    10291029          if( $startdatets <= $wdatets ) { // only output within period 
    10301030            $result[$wdatets] = TRUE; 
     
    10891089// echo " recur ".implode('-',iCalUtilityFunctions::_date_time_string(date('Y-m-d H:i:s',$bysetposarr1[$ix]),6)); // test ### 
    10901090              } 
    1091               $countcnt++; 
     1091              ++$countcnt; 
    10921092            } 
    10931093            if( isset( $recur['COUNT'] ) && ( $countcnt >= $recur['COUNT'] )) 
Note: See TracChangeset for help on using the changeset viewer.