public function handleRequest(AphrontRequest $request) { $year = $request->getURIData('year'); $month = $request->getURIData('month'); $day = $request->getURIData('day'); $this->viewYear = $year; $this->viewMonth = $month; $this->viewDay = $day; $engine = new PhabricatorCalendarEventSearchEngine(); if ($month && $year) { $engine->setCalendarYearAndMonthAndDay($year, $month, $day); } $nav_items = $this->buildNavigationItems(); return $engine->setNavigationItems($nav_items)->setController($this)->buildResponse(); }