Differential D13612 Diff 32970 src/applications/differential/herald/DifferentialDiffRepositoryHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/herald/DifferentialDiffRepositoryHeraldField.php
Show All 13 Lines | public function getHeraldFieldValue($object) { | ||||
if (!$repository) { | if (!$repository) { | ||||
return null; | return null; | ||||
} | } | ||||
return $repository->getPHID(); | return $repository->getPHID(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return self::STANDARD_PHID_NULLABLE; | return self::STANDARD_PHID_NULLABLE; | ||||
} | } | ||||
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_REPOSITORY; | return HeraldAdapter::VALUE_REPOSITORY; | ||||
} | } | ||||
} | } | ||||
} | } |