|
@@ 380-387 (lines=8) @@
|
| 377 |
|
break; |
| 378 |
|
|
| 379 |
|
|
| 380 |
|
case ABSENCES_RECUR_MONTHLY: |
| 381 |
|
if( $duration > 24*3600*28*$args['nmonths']) { |
| 382 |
|
throw new ErrorException(absences_translate("The duration of the event must be shorter than how frequently it occurs")); |
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
$rrule[]= 'INTERVAL='.$args['nmonths']; |
| 386 |
|
$rrule[]= 'FREQ=MONTHLY'; |
| 387 |
|
break; |
| 388 |
|
|
| 389 |
|
case ABSENCES_RECUR_YEARLY: /* yearly */ |
| 390 |
|
|
|
@@ 389-396 (lines=8) @@
|
| 386 |
|
$rrule[]= 'FREQ=MONTHLY'; |
| 387 |
|
break; |
| 388 |
|
|
| 389 |
|
case ABSENCES_RECUR_YEARLY: /* yearly */ |
| 390 |
|
|
| 391 |
|
if( $duration > 24*3600*365*$args['nyears']) { |
| 392 |
|
throw new ErrorException(absences_translate("The duration of the event must be shorter than how frequently it occurs")); |
| 393 |
|
} |
| 394 |
|
$rrule[]= 'INTERVAL='.$args['nyears']; |
| 395 |
|
$rrule[]= 'FREQ=YEARLY'; |
| 396 |
|
break; |
| 397 |
|
|
| 398 |
|
case ABSENCES_RECUR_DAILY: /* daily */ |
| 399 |
|
if( $duration > 24*3600*$args['ndays'] ) { |
|
@@ 398-404 (lines=7) @@
|
| 395 |
|
$rrule[]= 'FREQ=YEARLY'; |
| 396 |
|
break; |
| 397 |
|
|
| 398 |
|
case ABSENCES_RECUR_DAILY: /* daily */ |
| 399 |
|
if( $duration > 24*3600*$args['ndays'] ) { |
| 400 |
|
throw new ErrorException(absences_translate("The duration of the event must be shorter than how frequently it occurs")); |
| 401 |
|
} |
| 402 |
|
$rrule[]= 'INTERVAL='.$args['ndays']; |
| 403 |
|
$rrule[]= 'FREQ=DAILY'; |
| 404 |
|
break; |
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
|