Differential D20275 Diff 48390 src/applications/project/order/PhabricatorProjectColumnPriorityOrder.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/order/PhabricatorProjectColumnPriorityOrder.php
<?php | <?php | ||||
final class PhabricatorProjectColumnPriorityOrder | final class PhabricatorProjectColumnPriorityOrder | ||||
extends PhabricatorProjectColumnOrder { | extends PhabricatorProjectColumnOrder { | ||||
const ORDERKEY = 'priority'; | const ORDERKEY = 'priority'; | ||||
public function getDisplayName() { | public function getDisplayName() { | ||||
return pht('Group by Priority'); | return pht('Group by Priority'); | ||||
} | } | ||||
protected function newMenuIconIcon() { | protected function newMenuIconIcon() { | ||||
return 'fa-sort-numeric-asc'; | return 'fa-sort-numeric-asc'; | ||||
} | } | ||||
public function getHasHeaders() { | |||||
return true; | |||||
} | |||||
public function getCanReorder() { | |||||
return true; | |||||
} | |||||
protected function newHeaderKeyForObject($object) { | protected function newHeaderKeyForObject($object) { | ||||
return $this->newHeaderKeyForPriority($object->getPriority()); | return $this->newHeaderKeyForPriority($object->getPriority()); | ||||
} | } | ||||
private function newHeaderKeyForPriority($priority) { | private function newHeaderKeyForPriority($priority) { | ||||
return sprintf('priority(%d)', $priority); | return sprintf('priority(%d)', $priority); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |