Changeset 7655 for trunk/library/iCalcreator/iCalcreator.class.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/iCalcreator/iCalcreator.class.php
r5316 r7655 394 394 if( $propix != $xpropno ) 395 395 $reduced[$xpropkey] = $xpropvalue; 396 $xpropno++;396 ++$xpropno; 397 397 } 398 398 } … … 450 450 : array( $xpropkey, $this->xprop[$xpropkey]['value'] ); 451 451 else 452 $xpropno++;452 ++$xpropno; 453 453 } 454 454 return FALSE; // not found ?? … … 766 766 return TRUE; 767 767 } 768 $cix1dC++;768 ++$cix1dC; 769 769 } 770 770 elseif( !$argType && ($arg1 == $component->getProperty( 'uid' ))) { … … 817 817 if( $index == $cix1gC ) 818 818 return $component->copy(); 819 $cix1gC++;819 ++$cix1gC; 820 820 } 821 821 elseif( !$argType && ($arg1 == $component->getProperty( 'uid' ))) { … … 1219 1219 return TRUE; 1220 1220 } 1221 $cix1sC++;1221 ++$cix1sC; 1222 1222 } 1223 1223 elseif( !$argType && ( $arg1 == $component2->getProperty( 'uid' ))) { // UID insert/replace … … 1289 1289 elseif( 'vtimezone' == $b->objName ) return 1; 1290 1290 $sortkeys = array( 'year', 'month', 'day', 'hour', 'min', 'sec' ); 1291 for( $k = 0; $k < 4 ; $k++) {1291 for( $k = 0; $k < 4 ; ++$k ) { 1292 1292 if( empty( $a->srtk[$k] )) return -1; 1293 1293 elseif( empty( $b->srtk[$k] )) return 1; … … 1376 1376 $line = substr( $line, 0, ( strlen( $line ) - strlen( "\n\r" ))).'\n'; 1377 1377 if( 'BEGIN:VCALENDAR' == strtoupper( substr( $line, 0, 15 ))) { 1378 $calsync++;1378 ++$calsync; 1379 1379 continue; 1380 1380 } … … 1420 1420 if( $newProp ) { 1421 1421 $newProp = FALSE; 1422 $lastix++;1422 ++$lastix; 1423 1423 $proprows[$lastix] = $line; 1424 1424 } … … 1446 1446 /* get propname */ 1447 1447 $cix = $propname = null; 1448 for( $cix=0, $clen = strlen( $line ); $cix < $clen; $cix++) {1448 for( $cix=0, $clen = strlen( $line ); $cix < $clen; ++$cix ) { 1449 1449 if( in_array( $line[$cix], array( ':', ';' ))) 1450 1450 break; … … 1460 1460 $attrix = -1; 1461 1461 $strlen = strlen( $line ); 1462 for( $cix=0; $cix < $strlen; $cix++) {1462 for( $cix=0; $cix < $strlen; ++$cix ) { 1463 1463 if(( ':' == $line[$cix] ) && 1464 1464 ( '://' != substr( $line, $cix, 3 )) && … … 1500 1500 $content = explode( ',', $line ); 1501 1501 $clen = count( $content ); 1502 for( $cix = 0; $cix < $clen; $cix++) {1502 for( $cix = 0; $cix < $clen; ++$cix ) { 1503 1503 if( "\\" == substr( $content[$cix], -1 )) { 1504 1504 $content[$cix] .= ','.$content[$cix + 1]; 1505 1505 unset( $content[$cix + 1] ); 1506 $cix++;1506 ++$cix; 1507 1507 } 1508 1508 } … … 2740 2740 if( $fno < $cnt ) 2741 2741 $content .= ','; 2742 $fno++;2742 ++$fno; 2743 2743 } 2744 2744 $output .= $this->_createElement( 'FREEBUSY', $attributes, $content ); … … 3122 3122 if( $rno < $cnt ) 3123 3123 $content .= ','; 3124 $rno++;3124 ++$rno; 3125 3125 } 3126 3126 $output .= $this->_createElement( 'RDATE', $attributes, $content ); … … 3930 3930 $length = 6; 3931 3931 $str = null; 3932 for( $p = 0; $p < $length; $p++)3932 for( $p = 0; $p < $length; ++$p ) 3933 3933 $unique .= $base{mt_rand( $start, $end )}; 3934 3934 $this->uid = array( 'params' => null ); … … 4335 4335 } 4336 4336 $content2 .= $content21.$content22; 4337 $bydaycnt++;4337 ++$bydaycnt; 4338 4338 } 4339 4339 else { … … 4343 4343 else { 4344 4344 $content22 .= $valuePart; 4345 $bydaycnt++;4345 ++$bydaycnt; 4346 4346 } 4347 4347 $content2 .= $content21.$content22; … … 4812 4812 if( $propix != $xpropno ) 4813 4813 $reduced[$xpropkey] = $xpropvalue; 4814 $xpropno++;4814 ++$xpropno; 4815 4815 } 4816 4816 } … … 5029 5029 : array( $xpropkey, $this->xprop[$xpropkey]['value'] ); 5030 5030 else 5031 $xpropno++;5031 ++$xpropno; 5032 5032 } 5033 5033 return FALSE; // not found ?? … … 5054 5054 return FALSE; 5055 5055 $arglist[0] = strtoupper( $arglist[0] ); 5056 for( $argix=$numargs; $argix < 12; $argix++) {5056 for( $argix=$numargs; $argix < 12; ++$argix ) { 5057 5057 if( !isset( $arglist[$argix] )) 5058 5058 $arglist[$argix] = null; … … 5212 5212 if( $newProp ) { 5213 5213 $newProp = FALSE; 5214 $lastix++;5214 ++$lastix; 5215 5215 $proprows[$lastix] = $line; 5216 5216 } … … 5240 5240 /* get propname, (problem with x-properties, otherwise in previous loop) */ 5241 5241 $cix = $propname = null; 5242 for( $cix=0, $clen = strlen( $line ); $cix < $clen; $cix++) {5242 for( $cix=0, $clen = strlen( $line ); $cix < $clen; ++$cix ) { 5243 5243 if( in_array( $line[$cix], array( ':', ';' ))) 5244 5244 break; … … 5259 5259 $controlCN = false; 5260 5260 5261 for( $cix=0; $cix < $clen; $cix++) {5261 for( $cix=0; $cix < $clen; ++$cix ) { 5262 5262 5263 5263 if('"' == $line[$cix] && $controlCN) $controlCN = false; … … 5315 5315 $content = explode( ',', $line ); 5316 5316 $clen = count( $content ); 5317 for( $cix = 0; $cix < $clen; $cix++) {5317 for( $cix = 0; $cix < $clen; ++$cix ) { 5318 5318 if( "\\" == substr($content[$cix], -1)) { 5319 5319 $content[$cix] .= ','.$content[$cix + 1]; 5320 5320 unset($content[$cix + 1]); 5321 $cix++;5321 ++$cix; 5322 5322 } 5323 5323 } … … 5522 5522 return TRUE; 5523 5523 } 5524 $cix2dC++;5524 ++$cix2dC; 5525 5525 } 5526 5526 elseif( !$argType && ($arg1 == $component->getProperty( 'uid' ))) { … … 5574 5574 if( $index == $cix2gC ) 5575 5575 return $component->copy(); 5576 $cix2gC++;5576 ++$cix2gC; 5577 5577 } 5578 5578 elseif( !$argType && ( $arg1 == $component->getProperty( 'uid' ))) { … … 5671 5671 return TRUE; 5672 5672 } 5673 $cix2sC++;5673 ++$cix2sC; 5674 5674 } 5675 5675 elseif( !$argType && ( $arg1 == $component2->getProperty( 'uid' ))) { // UID insert/replace … … 5751 5751 $bytecnt = strlen( $tmp ); 5752 5752 $charCnt = $ix = 0; 5753 for( $ix = 0; $ix < $bytecnt; $ix++) {5753 for( $ix = 0; $ix < $bytecnt; ++$ix ) { 5754 5754 if(( 73 < $charCnt ) && ( '\n' == substr( $tmp, $ix, $eolcharlen ))) { 5755 5755 $ix += $eolcharlen;
Note: See TracChangeset
for help on using the changeset viewer.