Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/phid/PhabricatorCalendarEventPHIDType.php
| <?php | <?php | ||||
| final class PhabricatorCalendarEventPHIDType extends PhabricatorPHIDType { | final class PhabricatorCalendarEventPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'CEVT'; | const TYPECONST = 'CEVT'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('Event'); | return pht('Event'); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorCalendarApplication'; | |||||
| } | |||||
| public function newObject() { | public function newObject() { | ||||
| return new PhabricatorCalendarEvent(); | return new PhabricatorCalendarEvent(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorCalendarApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new PhabricatorCalendarEventQuery()) | return id(new PhabricatorCalendarEventQuery()) | ||||
| ->withPHIDs($phids); | ->withPHIDs($phids); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||