Page MenuHomec4science

DifferentialRevisionReviewersHeraldField.php
No OneTemporary

File Metadata

Created
Sat, Jan 4, 19:29

DifferentialRevisionReviewersHeraldField.php

<?php
final class DifferentialRevisionReviewersHeraldField
extends DifferentialRevisionHeraldField {
const FIELDCONST = 'differential.revision.reviewers';
public function getHeraldFieldName() {
return pht('Reviewers');
}
public function getHeraldFieldValue($object) {
return $this->getAdapter()->loadReviewers();
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_LIST;
}
public function getHeraldFieldValueType($condition) {
switch ($condition) {
case HeraldAdapter::CONDITION_EXISTS:
case HeraldAdapter::CONDITION_NOT_EXISTS:
return HeraldAdapter::VALUE_NONE;
default:
return HeraldAdapter::VALUE_USER_OR_PROJECT;
}
}
}

Event Timeline