Differential D25524 Diff 1678 src/applications/calendar/phid/PhabricatorCalendarExternalInviteePHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/phid/PhabricatorCalendarExternalInviteePHIDType.php
<?php | <?php | ||||
final class PhabricatorCalendarExternalInviteePHIDType | final class PhabricatorCalendarExternalInviteePHIDType | ||||
extends PhabricatorPHIDType { | extends PhabricatorPHIDType { | ||||
const TYPECONST = 'CXNV'; | const TYPECONST = 'CXNV'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('External Invitee'); | return pht('External Invitee'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorCalendarExternalInvitee(); | return new PhabricatorCalendarExternalInvitee(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | public function getPHIDTypeApplicationClass() { | ||||
return 'PhabricatorCalendarApplication'; | return PhabricatorCalendarApplication::class; | ||||
} | } | ||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhabricatorCalendarExternalInviteeQuery()) | return id(new PhabricatorCalendarExternalInviteeQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
Show All 15 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