Page MenuHomec4science

DifferentialRevisionRepositoryHeraldField.php
No OneTemporary

File Metadata

Created
Fri, Nov 29, 21:54

DifferentialRevisionRepositoryHeraldField.php

<?php
final class DifferentialRevisionRepositoryHeraldField
extends DifferentialRevisionHeraldField {
const FIELDCONST = 'differential.revision.repository';
public function getHeraldFieldName() {
return pht('Repository');
}
public function getHeraldFieldValue($object) {
$repository = $this->getAdapter()->loadRepository();
if (!$repository) {
return null;
}
return $repository->getPHID();
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_NULLABLE;
}
protected function getDatasource() {
return new DiffusionRepositoryDatasource();
}
}

Event Timeline