2015-07-06 22:17:01 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class ManiphestTaskStatusHeraldField
|
2015-07-06 22:17:14 +02:00
|
|
|
extends ManiphestTaskHeraldField {
|
2015-07-06 22:17:01 +02:00
|
|
|
|
|
|
|
const FIELDCONST = 'taskstatus';
|
|
|
|
|
|
|
|
public function getHeraldFieldName() {
|
2015-07-06 22:17:14 +02:00
|
|
|
return pht('Status');
|
2015-07-06 22:17:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldValue($object) {
|
|
|
|
return $object->getStatus();
|
|
|
|
}
|
|
|
|
|
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 ManiphestTaskStatusDatasource();
|
2015-07-06 22:17:01 +02:00
|
|
|
}
|
|
|
|
|
2015-07-16 23:12:54 +02:00
|
|
|
protected function getDatasourceValueMap() {
|
|
|
|
return ManiphestTaskStatus::getTaskStatusMap();
|
2015-07-06 22:17:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|