Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/phid/PhabricatorPeopleUserEmailPHIDType.php
- This file was added.
<?php | |||||
final class PhabricatorPeopleUserEmailPHIDType | |||||
extends PhabricatorPHIDType { | |||||
const TYPECONST = 'EADR'; | |||||
public function getTypeName() { | |||||
return pht('User Email'); | |||||
} | |||||
public function newObject() { | |||||
return new PhabricatorUserEmail(); | |||||
} | |||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorPeopleApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | |||||
PhabricatorObjectQuery $query, | |||||
array $phids) { | |||||
return id(new PhabricatorPeopleUserEmailQuery()) | |||||
->withPHIDs($phids); | |||||
} | |||||
public function loadHandles( | |||||
PhabricatorHandleQuery $query, | |||||
array $handles, | |||||
array $objects) { | |||||
return null; | |||||
} | |||||
} |