protected function DateRRuleCalc::is_finished in Date 8
Stop when $this->current_day is greater than $this->end_date or $this->max_count is reached.
4 calls to DateRRuleCalc::is_finished()
- DateRRuleCalc::get_absolute_bydays in date_repeat/
lib/ Drupal/ date_repeat/ DateRRuleCalc.php - Get values for absolute BYDAYs.
- DateRRuleCalc::get_bymonthday_results in date_repeat/
lib/ Drupal/ date_repeat/ DateRRuleCalc.php - Processing for BYMONTHDAY values.
- DateRRuleCalc::get_other_results in date_repeat/
lib/ Drupal/ date_repeat/ DateRRuleCalc.php - Processing other than BYDAY or BYMONTHDAY.
- DateRRuleCalc::get_relative_bydays in date_repeat/
lib/ Drupal/ date_repeat/ DateRRuleCalc.php - Get results for relative BYDAY values.
File
- date_repeat/
lib/ Drupal/ date_repeat/ DateRRuleCalc.php, line 686 - Code to compute the dates that match an iCal RRULE.
Class
Namespace
Drupal\date_repeatCode
protected function is_finished() {
static $cycles;
$cycles++;
if (!empty($this->max_count) && sizeof($this->result) >= $this->max_count) {
return TRUE;
}
elseif (!empty($this->end_date) && $this->current_day > $this->end_date) {
return TRUE;
}
elseif ($cycles >= $this->max_cycles) {
return TRUE;
}
// Nothing tells us we are finished.
return FALSE;
}