Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionPreCommitRefPusherProjectsHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionPreCommitRefPusherProjectsHeraldField.php
Show All 9 Lines | final class DiffusionPreCommitRefPusherProjectsHeraldField | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $this->getAdapter() | return $this->getAdapter() | ||||
->getHookEngine() | ->getHookEngine() | ||||
->loadViewerProjectPHIDsForHerald(); | ->loadViewerProjectPHIDsForHerald(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return HeraldField::STANDARD_LIST; | return HeraldField::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; | ||||
} | } | ||||
} | } | ||||
} | } |