Differential D17341 Diff 41824 src/applications/calendar/query/PhabricatorCalendarExportSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/query/PhabricatorCalendarExportSearchEngine.php
<?php | <?php | ||||
final class PhabricatorCalendarExportSearchEngine | final class PhabricatorCalendarExportSearchEngine | ||||
extends PhabricatorApplicationSearchEngine { | extends PhabricatorApplicationSearchEngine { | ||||
public function getResultTypeDescription() { | public function getResultTypeDescription() { | ||||
return pht('Calendar Exports'); | return pht('Calendar Exports'); | ||||
} | } | ||||
public function getApplicationClassName() { | public function getApplicationClassName() { | ||||
return 'PhabricatorCalendarApplication'; | return 'PhabricatorCalendarApplication'; | ||||
} | } | ||||
public function canUseInPanelContext() { | |||||
return false; | |||||
} | |||||
public function newQuery() { | public function newQuery() { | ||||
$viewer = $this->requireViewer(); | $viewer = $this->requireViewer(); | ||||
return id(new PhabricatorCalendarExportQuery()) | return id(new PhabricatorCalendarExportQuery()) | ||||
->withAuthorPHIDs(array($viewer->getPHID())); | ->withAuthorPHIDs(array($viewer->getPHID())); | ||||
} | } | ||||
protected function buildCustomSearchFields() { | protected function buildCustomSearchFields() { | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |