Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/maniphest/herald/ManiphestTaskPriorityHeraldField.php
12256 views
1
<?php
2
3
final class ManiphestTaskPriorityHeraldField
4
extends ManiphestTaskHeraldField {
5
6
const FIELDCONST = 'taskpriority';
7
8
public function getHeraldFieldName() {
9
return pht('Priority');
10
}
11
12
public function getHeraldFieldValue($object) {
13
return $object->getPriority();
14
}
15
16
protected function getHeraldFieldStandardType() {
17
return self::STANDARD_PHID;
18
}
19
20
protected function getDatasource() {
21
return new ManiphestTaskPriorityDatasource();
22
}
23
24
protected function getDatasourceValueMap() {
25
return ManiphestTaskPriority::getTaskPriorityMap();
26
}
27
28
}
29
30