1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-11 16:16:14 +01:00
phorge-phorge/src/applications/diffusion/herald/DiffusionCommitRevisionHeraldField.php

31 lines
624 B
PHP
Raw Normal View History

<?php
final class DiffusionCommitRevisionHeraldField
extends DiffusionCommitHeraldField {
const FIELDCONST = 'diffusion.commit.revision';
public function getHeraldFieldName() {
return pht('Differential revision');
}
public function getFieldGroupKey() {
return HeraldRelatedFieldGroup::FIELDGROUPKEY;
}
public function getHeraldFieldValue($object) {
$revision = $this->getAdapter()->loadDifferentialRevision();
if (!$revision) {
return null;
}
return $revision->getPHID();
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_BOOL;
}
}