Differential D13612 Diff 32970 src/applications/differential/herald/DifferentialRevisionRepositoryProjectsHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/herald/DifferentialRevisionRepositoryProjectsHeraldField.php
Show All 14 Lines | if (!$repository) { | ||||
return array(); | return array(); | ||||
} | } | ||||
return PhabricatorEdgeQuery::loadDestinationPHIDs( | return PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$repository->getPHID(), | $repository->getPHID(), | ||||
PhabricatorProjectObjectHasProjectEdgeType::EDGECONST); | PhabricatorProjectObjectHasProjectEdgeType::EDGECONST); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return self::STANDARD_LIST; | return self::STANDARD_PHID_LIST; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | public function getHeraldFieldValueType($condition) { | ||||
switch ($condition) { | switch ($condition) { | ||||
case HeraldAdapter::CONDITION_EXISTS: | case HeraldAdapter::CONDITION_EXISTS: | ||||
case HeraldAdapter::CONDITION_NOT_EXISTS: | case HeraldAdapter::CONDITION_NOT_EXISTS: | ||||
return HeraldAdapter::VALUE_NONE; | return HeraldAdapter::VALUE_NONE; | ||||
default: | default: | ||||
return HeraldAdapter::VALUE_PROJECT; | return HeraldAdapter::VALUE_PROJECT; | ||||
} | } | ||||
} | } | ||||
} | } |