Differential D16759 Diff 40368 src/applications/calendar/phid/PhabricatorCalendarExternalInviteePHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/phid/PhabricatorCalendarExternalInviteePHIDType.php
- This file was added.
<?php | |||||
final class PhabricatorCalendarExternalInviteePHIDType | |||||
extends PhabricatorPHIDType { | |||||
const TYPECONST = 'CXNV'; | |||||
public function getTypeName() { | |||||
return pht('External Invitee'); | |||||
} | |||||
public function newObject() { | |||||
return new PhabricatorCalendarExternalInvitee(); | |||||
} | |||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorCalendarApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | |||||
PhabricatorObjectQuery $query, | |||||
array $phids) { | |||||
return id(new PhabricatorCalendarExternalInviteeQuery()) | |||||
->withPHIDs($phids); | |||||
} | |||||
public function loadHandles( | |||||
PhabricatorHandleQuery $query, | |||||
array $handles, | |||||
array $objects) { | |||||
foreach ($handles as $phid => $handle) { | |||||
$invitee = $objects[$phid]; | |||||
$name = $invitee->getName(); | |||||
$handle->setName($name); | |||||
} | |||||
} | |||||
} |