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/library/iCalcreator/iCalUtilityFunctions.class.php

    r5146 r7655  
    352352    $output = array(); 
    353353    $val    = null; 
    354     for( $ix=0; $ix < strlen( $duration ); $ix++ ) { 
     354    for( $ix=0; $ix < strlen( $duration ); ++$ix ) { 
    355355      switch( strtoupper( substr( $duration, $ix, 1 ))) { 
    356356       case 'W': 
     
    697697        $yeardays   = $weekno = 0; 
    698698        $yeardaycnt = array(); 
    699         for( $m = 1; $m <= 12; $m++ ) { // count up and update up-counters 
     699        for( $m = 1; $m <= 12; ++$m ) { // count up and update up-counters 
    700700          $daycnts[$m] = array(); 
    701701          $weekdaycnt = array(); 
     
    703703            $yeardaycnt[$dn] = $weekdaycnt[$dn] = 0; 
    704704          $mcnt     = date( 't', mktime( 0, 0, 0, $m, 1, $wdate['year'] )); 
    705           for( $d   = 1; $d <= $mcnt; $d++ ) { 
     705          for( $d   = 1; $d <= $mcnt; ++$d ) { 
    706706            $daycnts[$m][$d] = array(); 
    707707            if( isset( $recur['BYYEARDAY'] )) { 
    708               $yeardays++; 
     708              ++$yeardays; 
    709709              $daycnts[$m][$d]['yearcnt_up'] = $yeardays; 
    710710            } 
     
    880880        else { 
    881881            /* update result array if BYSETPOS is set */ 
    882           $countcnt++; 
     882          ++$countcnt; 
    883883          if( $startdatets <= $wdatets ) { // only output within period 
    884884            $result[$wdatets] = TRUE; 
     
    939939       //echo "recur ".implode('-',iCalUtilityFunctions::_date_time_string(date('Y-m-d H:i:s',$bysetposarr1[$ix]),6))."<br />\n";//test 
    940940              } 
    941               $countcnt++; 
     941              ++$countcnt; 
    942942            } 
    943943            if( isset( $recur['COUNT'] ) && ( $countcnt >= $recur['COUNT'] )) 
Note: See TracChangeset for help on using the changeset viewer.