3 final class DifferentialDiffAuthorProjectsHeraldField
4 extends DifferentialDiffHeraldField
{
6 const FIELDCONST
= 'differential.diff.author.projects';
8 public function getHeraldFieldName() {
9 return pht("Author's projects");
12 public function getHeraldFieldValue($object) {
13 $viewer = PhabricatorUser
::getOmnipotentUser();
15 $projects = id(new PhabricatorProjectQuery())
17 ->withMemberPHIDs(array($object->getAuthorPHID()))
20 return mpull($projects, 'getPHID');
23 protected function getHeraldFieldStandardType() {
24 return self
::STANDARD_PHID_LIST
;
27 protected function getDatasource() {
28 return new PhabricatorProjectDatasource();