Differential D20955 Diff 49930 src/applications/diffusion/herald/DiffusionCommitAuthorHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionCommitAuthorHeraldField.php
<?php | <?php | ||||
final class DiffusionCommitAuthorHeraldField | final class DiffusionCommitAuthorHeraldField | ||||
extends DiffusionCommitHeraldField { | extends DiffusionCommitHeraldField { | ||||
const FIELDCONST = 'diffusion.commit.author'; | const FIELDCONST = 'diffusion.commit.author'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Author'); | return pht('Author'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $object->getCommitData()->getCommitDetail('authorPHID'); | return $this->getAdapter()->getAuthorPHID(); | ||||
} | } | ||||
protected function getHeraldFieldStandardType() { | protected function getHeraldFieldStandardType() { | ||||
return self::STANDARD_PHID_NULLABLE; | return self::STANDARD_PHID_NULLABLE; | ||||
} | } | ||||
protected function getDatasource() { | protected function getDatasource() { | ||||
return new PhabricatorPeopleDatasource(); | return new PhabricatorPeopleDatasource(); | ||||
} | } | ||||
} | } |