function date_repeat_is_finished in Date 7.3
Same name and namespace in other branches
- 5.2 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()
- 6.2 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()
- 6 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()
- 7 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()
- 7.2 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()
Stop when $current_day is greater than $end_date or $count is reached.
1 call to date_repeat_is_finished()
- _date_repeat_calc in date_repeat/
date_repeat_calc.inc - Private implementation of date_repeat_calc().
File
- date_repeat/
date_repeat_calc.inc, line 502 - Code to compute the dates that match an iCal RRULE.
Code
function date_repeat_is_finished($current_day, $days, $count, $end_date) {
if ($count && count($days) >= $count || !empty($end_date) && date_format($current_day, 'U') > date_format($end_date, 'U')) {
return TRUE;
}
else {
return FALSE;
}
}