Differential D25524 Diff 1678 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 { | ||||
private $calendarYear; | private $calendarYear; | ||||
private $calendarMonth; | private $calendarMonth; | ||||
private $calendarDay; | private $calendarDay; | ||||
public function getResultTypeDescription() { | public function getResultTypeDescription() { | ||||
return pht('Calendar Events'); | return pht('Calendar Events'); | ||||
} | } | ||||
public function getApplicationClassName() { | public function getApplicationClassName() { | ||||
return 'PhabricatorCalendarApplication'; | return PhabricatorCalendarApplication::class; | ||||
} | } | ||||
public function newQuery() { | public function newQuery() { | ||||
$viewer = $this->requireViewer(); | $viewer = $this->requireViewer(); | ||||
return id(new PhabricatorCalendarEventQuery()) | return id(new PhabricatorCalendarEventQuery()) | ||||
->needRSVPs(array($viewer->getPHID())); | ->needRSVPs(array($viewer->getPHID())); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 610 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