Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/query/PhabricatorCalendarEventQuery.php
Show First 20 Lines • Show All 627 Lines • ▼ Show 20 Lines | private function getRecurrenceWindowEnd( | ||||
return PhutilCalendarAbsoluteDateTime::newFromEpoch(min($end_epochs)); | return PhutilCalendarAbsoluteDateTime::newFromEpoch(min($end_epochs)); | ||||
} | } | ||||
private function getRecurrenceLimit( | private function getRecurrenceLimit( | ||||
PhabricatorCalendarEvent $event, | PhabricatorCalendarEvent $event, | ||||
$raw_limit) { | $raw_limit) { | ||||
$count = $event->getRecurrenceCount(); | |||||
if ($count && ($count <= $raw_limit)) { | |||||
return ($count - 1); | |||||
} | |||||
return $raw_limit; | return $raw_limit; | ||||
} | } | ||||
} | } |