Differential D13612 Diff 32970 src/applications/maniphest/herald/ManiphestTaskPriorityHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/herald/ManiphestTaskPriorityHeraldField.php
<?php | <?php | ||||
final class ManiphestTaskPriorityHeraldField | final class ManiphestTaskPriorityHeraldField | ||||
extends ManiphestTaskHeraldField { | extends ManiphestTaskHeraldField { | ||||
const FIELDCONST = 'taskpriority'; | const FIELDCONST = 'taskpriority'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Priority'); | return pht('Priority'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $object->getPriority(); | return $object->getPriority(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return self::STANDARD_PHID; | return self::STANDARD_PHID; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | public function getHeraldFieldValueType($condition) { | ||||
return HeraldAdapter::VALUE_TASK_PRIORITY; | return HeraldAdapter::VALUE_TASK_PRIORITY; | ||||
} | } | ||||
public function renderConditionValue( | public function renderConditionValue( | ||||
Show All 31 Lines |