Differential D21011 Diff 50074 src/applications/people/phid/PhabricatorPeopleExternalIdentifierPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/phid/PhabricatorPeopleExternalIdentifierPHIDType.php
- This file was added.
<?php | |||||
final class PhabricatorPeopleExternalIdentifierPHIDType | |||||
extends PhabricatorPHIDType { | |||||
const TYPECONST = 'XIDT'; | |||||
public function getTypeName() { | |||||
return pht('External Account Identifier'); | |||||
} | |||||
public function newObject() { | |||||
return new PhabricatorExternalAccountIdentifier(); | |||||
} | |||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorPeopleApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | |||||
PhabricatorObjectQuery $query, | |||||
array $phids) { | |||||
return id(new PhabricatorExternalAccountIdentifierQuery()) | |||||
->withPHIDs($phids); | |||||
} | |||||
public function loadHandles( | |||||
PhabricatorHandleQuery $query, | |||||
array $handles, | |||||
array $objects) { | |||||
foreach ($handles as $phid => $handle) { | |||||
$identifier = $objects[$phid]; | |||||
} | |||||
} | |||||
} |