Changeset View
Changeset View
Standalone View
Standalone View
src/applications/feed/query/PhabricatorFeedQuery.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | if ($this->filterPHIDs !== null) { | ||||
return qsprintf($conn, 'GROUP BY story.chronologicalKey'); | return qsprintf($conn, 'GROUP BY story.chronologicalKey'); | ||||
} | } | ||||
} | } | ||||
protected function getDefaultOrderVector() { | protected function getDefaultOrderVector() { | ||||
return array('key'); | return array('key'); | ||||
} | } | ||||
public function getBuiltinOrders() { | |||||
return array( | |||||
'newest' => array( | |||||
'vector' => array('key'), | |||||
'name' => pht('Creation (Newest First)'), | |||||
'aliases' => array('created'), | |||||
), | |||||
'oldest' => array( | |||||
'vector' => array('-key'), | |||||
'name' => pht('Creation (Oldest First)'), | |||||
), | |||||
); | |||||
} | |||||
public function getOrderableColumns() { | public function getOrderableColumns() { | ||||
$table = ($this->filterPHIDs ? 'ref' : 'story'); | $table = ($this->filterPHIDs ? 'ref' : 'story'); | ||||
return array( | return array( | ||||
'key' => array( | 'key' => array( | ||||
'table' => $table, | 'table' => $table, | ||||
'column' => 'chronologicalKey', | 'column' => 'chronologicalKey', | ||||
'type' => 'string', | 'type' => 'string', | ||||
'unique' => true, | 'unique' => true, | ||||
Show All 26 Lines |