Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/adapter/HeraldAdapter.php
Show First 20 Lines • Show All 1,065 Lines • ▼ Show 20 Lines | private function renderConditionValueAsText( | ||||
$field = $this->requireFieldImplementation($condition->getFieldName()); | $field = $this->requireFieldImplementation($condition->getFieldName()); | ||||
return $field->renderConditionValue( | return $field->renderConditionValue( | ||||
$viewer, | $viewer, | ||||
$condition->getFieldCondition(), | $condition->getFieldCondition(), | ||||
$condition->getValue()); | $condition->getValue()); | ||||
} | } | ||||
public function renderFieldTranscriptValue( | |||||
PhabricatorUser $viewer, | |||||
$field_type, | |||||
$field_value) { | |||||
$field = $this->getFieldImplementation($field_type); | |||||
if ($field) { | |||||
return $field->renderTranscriptValue( | |||||
$viewer, | |||||
$field_value); | |||||
} | |||||
return phutil_tag( | |||||
'em', | |||||
array(), | |||||
pht( | |||||
'Unable to render value for unknown field type ("%s").', | |||||
$field_type)); | |||||
} | |||||
/* -( Applying Effects )--------------------------------------------------- */ | /* -( Applying Effects )--------------------------------------------------- */ | ||||
/** | /** | ||||
* @task apply | * @task apply | ||||
*/ | */ | ||||
protected function applyStandardEffect(HeraldEffect $effect) { | protected function applyStandardEffect(HeraldEffect $effect) { | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |