Changeset 7655 for trunk/calendar/inc/class.bocalendar.inc.php
- Timestamp:
- 12/14/12 14:30:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.bocalendar.inc.php
r7436 r7655 912 912 $endtime += $offset*$multi; 913 913 $starttime <= $enddate; 914 $i++,914 ++$i, 915 915 $i = ($i < count($dowOffsets))?$i:0, 916 916 $multi = $dowOffsets[$i], … … 1252 1252 $minparts = min($l_participants); 1253 1253 $part = Array(); 1254 for($i=0;$i<count($parts); $i++)1254 for($i=0;$i<count($parts);++$i) 1255 1255 { 1256 1256 if (($accept_type = substr($parts[$i],-1,1)) == '0' || (int)$accept_type > 0) … … 2137 2137 { 2138 2138 $exceptions = explode(',',$exception_str); 2139 for($exception_count=0;$exception_count<count($exceptions); $exception_count++)2139 for($exception_count=0;$exception_count<count($exceptions);++$exception_count) 2140 2140 { 2141 2141 $exception[] = (int)$exceptions[$exception_count]; … … 2196 2196 } 2197 2197 2198 for($i=0;$i<count($this->cached_events[$date]); $i++)2198 for($i=0;$i<count($this->cached_events[$date]);++$i) 2199 2199 { 2200 2200 if($this->cached_events[$date][$i]['id'] == $event['id'] || $this->cached_events[$date][$i]['reference'] == $event['id']) … … 2256 2256 $repeated = $this->repeating_events; 2257 2257 $r_events = count($repeated); 2258 for ($i=0;$i<$r_events; $i++)2258 for ($i=0;$i<$r_events;++$i) 2259 2259 { 2260 2260 $rep_events = $this->repeating_events[$i]; … … 2460 2460 { 2461 2461 $emonth = 1; 2462 $eyear++;2462 ++$eyear; 2463 2463 } 2464 2464 } … … 2510 2510 if($c_cached_ids) 2511 2511 { 2512 for($i=0;$i<$c_cached_ids; $i++)2512 for($i=0;$i<$c_cached_ids;++$i) 2513 2513 { 2514 2514 $event = $this->so->read_entry($cached_event_ids[$i]); … … 2525 2525 $start['month'] = (int)(substr($startdate,4,2)); 2526 2526 $start['mday'] = (int)(substr($startdate,6,2)); 2527 for($j=$startdate,$k=0;$j<=$enddate; $k++,$j=(int)(date('Ymd',mktime(0,0,0,$start['month'],$start['mday'] + $k,$start['year']))))2527 for($j=$startdate,$k=0;$j<=$enddate;++$k,$j=(int)(date('Ymd',mktime(0,0,0,$start['month'],$start['mday'] + $k,$start['year'])))) 2528 2528 { 2529 2529 $c_evt_day = count($this->cached_events[$j]) - 1; … … 2556 2556 if($c_cached_ids_repeating) 2557 2557 { 2558 for($i=0;$i<$c_cached_ids_repeating; $i++)2558 for($i=0;$i<$c_cached_ids_repeating;++$i) 2559 2559 { 2560 2560 $this->repeating_events[$i] = $this->so->read_entry($cached_event_ids_repeating[$i]); … … 2575 2575 { 2576 2576 echo '<!-- Total events found matching '.$search_date.' = '.count($this->cached_events[$search_date]).' -->'."\n"; 2577 for($i=0;$i<count($this->cached_events[$search_date]); $i++)2577 for($i=0;$i<count($this->cached_events[$search_date]);++$i) 2578 2578 { 2579 2579 echo '<!-- Date: '.$search_date.' ['.$i.'] = '.$this->cached_events[$search_date][$i]['id'].' -->'."\n"; … … 2583 2583 } 2584 2584 $retval = Array(); 2585 for($j=date('Ymd',mktime(0,0,0,$smonth,$sday,$syear)),$k=0;$j<=date('Ymd',mktime(0,0,0,$emonth,$eday,$eyear)); $k++,$j=date('Ymd',mktime(0,0,0,$smonth,$sday + $k,$syear)))2585 for($j=date('Ymd',mktime(0,0,0,$smonth,$sday,$syear)),$k=0;$j<=date('Ymd',mktime(0,0,0,$emonth,$eday,$eyear));++$k,$j=date('Ymd',mktime(0,0,0,$smonth,$sday + $k,$syear))) 2586 2586 { 2587 2587 if(is_array($this->cached_events[$j])) … … 2765 2765 function prepare_matrix($interval,$increment,$part,$fulldate) 2766 2766 { 2767 for($h=0;$h<24; $h++)2768 { 2769 for($m=0;$m<$interval; $m++)2767 for($h=0;$h<24;++$h) 2768 { 2769 for($m=0;$m<$interval;++$m) 2770 2770 { 2771 2771 $index = (($h * 10000) + (($m * $increment) * 100)); … … 2785 2785 $starttemp = $this->splittime("$start",False); 2786 2786 $subminute = 0; 2787 for($m=0;$m<$interval; $m++)2787 for($m=0;$m<$interval;++$m) 2788 2788 { 2789 2789 $minutes = $increment * $m; … … 2797 2797 $endtemp = $this->splittime("$end",False); 2798 2798 $addminute = 0; 2799 for($m=0;$m<$interval; $m++)2799 for($m=0;$m<$interval;++$m) 2800 2800 { 2801 2801 $minutes = ($increment * $m); … … 2809 2809 $endtemp = $this->splittime("$end",False); 2810 2810 2811 for($h=$starttemp['hour'];$h<=$endtemp['hour']; $h++)2811 for($h=$starttemp['hour'];$h<=$endtemp['hour'];++$h) 2812 2812 { 2813 2813 $startminute = 0; … … 2825 2825 $time_display = $GLOBALS['phpgw']->common->show_date($eventstart['raw'],$this->users_timeformat).'-'.$GLOBALS['phpgw']->common->show_date($eventend['raw'],$this->users_timeformat); 2826 2826 $time_description = '('.$time_display.') '.$this->get_short_field($event,$private,'title').$this->display_status($event['participants'][$part]); 2827 for($m=$startminute;$m<$endminute; $m++)2827 for($m=$startminute;$m<$endminute;++$m) 2828 2828 { 2829 2829 $index = ($hour + (($m * $increment) * 100)); … … 2866 2866 2867 2867 //verifica se todos os participantes rejeitaram o evento 2868 for($i = 0; $i < count($sts); $i++ ){2868 for($i = 0; $i < count($sts); ++$i ){ 2869 2869 if( $sts[i] === "R") 2870 2870 unset( $sts[i] ); … … 3065 3065 $last_space = false; 3066 3066 3067 for($i=0, $count=0; $i < $str_width; $i++, $count++)3067 for($i=0, $count=0; $i < $str_width; ++$i, ++$count) 3068 3068 { 3069 3069 // If we're at a break … … 4199 4199 { 4200 4200 $already_moved = Array(); 4201 for($v=$firstday;$v<=$lastday; $v++)4201 for($v=$firstday;$v<=$lastday;++$v) 4202 4202 { 4203 4203 if (!$this->cached_events[$v]) … … 4436 4436 { 4437 4437 $cal_grps = ''; 4438 for($i=0;$i<count($event['groups']); $i++)4438 for($i=0;$i<count($event['groups']);++$i) 4439 4439 { 4440 4440 if($GLOBALS['phpgw']->accounts->exists($event['groups'][$i]))
Note: See TracChangeset
for help on using the changeset viewer.