Differential D25793 Diff 2401 src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Lines | final class PhabricatorCalendarEventSearchEngine | ||||
public function getPageSize(PhabricatorSavedQuery $saved) { | public function getPageSize(PhabricatorSavedQuery $saved) { | ||||
if ($this->isMonthView($saved) || $this->isDayView($saved)) { | if ($this->isMonthView($saved) || $this->isDayView($saved)) { | ||||
return $saved->getParameter('limit', 1000); | return $saved->getParameter('limit', 1000); | ||||
} else { | } else { | ||||
return $saved->getParameter('limit', 100); | return $saved->getParameter('limit', 100); | ||||
} | } | ||||
} | } | ||||
/** | |||||
* @param PhabricatorSavedQuery $saved | |||||
* @return AphrontFormDateControlValue | |||||
*/ | |||||
private function getQueryDateFrom(PhabricatorSavedQuery $saved) { | private function getQueryDateFrom(PhabricatorSavedQuery $saved) { | ||||
if ($this->calendarYear && $this->calendarMonth) { | if ($this->calendarYear && $this->calendarMonth) { | ||||
$viewer = $this->requireViewer(); | $viewer = $this->requireViewer(); | ||||
$start_year = $this->calendarYear; | $start_year = $this->calendarYear; | ||||
$start_month = $this->calendarMonth; | $start_month = $this->calendarMonth; | ||||
$start_day = $this->calendarDay ? $this->calendarDay : 1; | $start_day = $this->calendarDay ? $this->calendarDay : 1; | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0