Differential D11242 Diff 27034 src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
<?php | <?php | ||||
final class PhabricatorCalendarEventSearchEngine | final class PhabricatorCalendarEventSearchEngine | ||||
extends PhabricatorApplicationSearchEngine { | extends PhabricatorApplicationSearchEngine { | ||||
public function getResultTypeDescription() { | public function getResultTypeDescription() { | ||||
return pht('Calendar Events'); | return pht('Calendar Events'); | ||||
} | } | ||||
public function getApplicationClassName() { | protected function getApplicationClassName() { | ||||
return 'PhabricatorCalendarApplication'; | return 'PhabricatorCalendarApplication'; | ||||
} | } | ||||
public function buildSavedQueryFromRequest(AphrontRequest $request) { | public function buildSavedQueryFromRequest(AphrontRequest $request) { | ||||
$saved = new PhabricatorSavedQuery(); | $saved = new PhabricatorSavedQuery(); | ||||
$saved->setParameter( | $saved->setParameter( | ||||
'rangeStart', | 'rangeStart', | ||||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | $form | ||||
pht('Show only upcoming events.'), | pht('Show only upcoming events.'), | ||||
$upcoming)); | $upcoming)); | ||||
} | } | ||||
protected function getURI($path) { | protected function getURI($path) { | ||||
return '/calendar/event/'.$path; | return '/calendar/event/'.$path; | ||||
} | } | ||||
public function getBuiltinQueryNames() { | protected function getBuiltinQueryNames() { | ||||
$names = array( | $names = array( | ||||
'upcoming' => pht('Upcoming Events'), | 'upcoming' => pht('Upcoming Events'), | ||||
'all' => pht('All Events'), | 'all' => pht('All Events'), | ||||
); | ); | ||||
return $names; | return $names; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |