Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/phid/PhabricatorPeopleExternalPHIDType.php
| <?php | <?php | ||||
| final class PhabricatorPeopleExternalPHIDType extends PhabricatorPHIDType { | final class PhabricatorPeopleExternalPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'XUSR'; | const TYPECONST = 'XUSR'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('External Account'); | return pht('External Account'); | ||||
| } | } | ||||
| public function newObject() { | public function newObject() { | ||||
| return new PhabricatorExternalAccount(); | return new PhabricatorExternalAccount(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorPeopleApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new PhabricatorExternalAccountQuery()) | return id(new PhabricatorExternalAccountQuery()) | ||||
| ->withPHIDs($phids); | ->withPHIDs($phids); | ||||
| } | } | ||||
| Show All 14 Lines | |||||