Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/phid/PhabricatorPeopleUserPHIDType.php
<?php | <?php | ||||
final class PhabricatorPeopleUserPHIDType extends PhabricatorPHIDType { | final class PhabricatorPeopleUserPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'USER'; | const TYPECONST = 'USER'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('User'); | return pht('User'); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorPeopleApplication'; | |||||
} | |||||
public function getTypeIcon() { | public function getTypeIcon() { | ||||
return 'fa-user bluegrey'; | return 'fa-user bluegrey'; | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorUser(); | return new PhabricatorUser(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorPeopleApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhabricatorPeopleQuery()) | return id(new PhabricatorPeopleQuery()) | ||||
->withPHIDs($phids) | ->withPHIDs($phids) | ||||
->needProfileImage(true) | ->needProfileImage(true) | ||||
->needAvailability(true); | ->needAvailability(true); | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |