Differential D13612 Diff 32970 src/applications/metamta/herald/PhabricatorMetaMTAApplicationEmailHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/herald/PhabricatorMetaMTAApplicationEmailHeraldField.php
Show All 18 Lines | public function getHeraldFieldValue($object) { | ||||
$email = $this->getAdapter()->getApplicationEmail(); | $email = $this->getAdapter()->getApplicationEmail(); | ||||
if ($email) { | if ($email) { | ||||
$phids[] = $email->getPHID(); | $phids[] = $email->getPHID(); | ||||
} | } | ||||
return $phids; | return $phids; | ||||
} | } | ||||
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_APPLICATION_EMAIL; | return HeraldAdapter::VALUE_APPLICATION_EMAIL; | ||||
} | } | ||||
} | } | ||||
} | } |