2015-07-06 22:17:01 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class ManiphestTaskPriorityHeraldField
|
2015-07-06 22:17:14 +02:00
|
|
|
extends ManiphestTaskHeraldField {
|
2015-07-06 22:17:01 +02:00
|
|
|
|
|
|
|
const FIELDCONST = 'taskpriority';
|
|
|
|
|
|
|
|
public function getHeraldFieldName() {
|
2015-07-06 22:17:14 +02:00
|
|
|
return pht('Priority');
|
2015-07-06 22:17:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldValue($object) {
|
|
|
|
return $object->getPriority();
|
|
|
|
}
|
|
|
|
|
2015-07-16 23:11:44 +02:00
|
|
|
protected function getHeraldFieldStandardType() {
|
2015-07-06 22:17:01 +02:00
|
|
|
return self::STANDARD_PHID;
|
|
|
|
}
|
|
|
|
|
2015-07-16 23:12:44 +02:00
|
|
|
protected function getDatasource() {
|
|
|
|
return new ManiphestTaskPriorityDatasource();
|
2015-07-06 22:17:01 +02:00
|
|
|
}
|
|
|
|
|
2015-07-16 23:12:54 +02:00
|
|
|
protected function getDatasourceValueMap() {
|
|
|
|
return ManiphestTaskPriority::getTaskPriorityMap();
|
2015-07-06 22:17:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|