Page MenuHomePhabricator

D12968.diff
No OneTemporary

D12968.diff

diff --git a/src/applications/calendar/query/PhabricatorCalendarEventQuery.php b/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
--- a/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
+++ b/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
@@ -42,6 +42,30 @@
return $this;
}
+ protected function getDefaultOrderVector() {
+ return array('start', 'id');
+ }
+
+ public function getOrderableColumns() {
+ return array(
+ 'start' => array(
+ 'table' => $this->getPrimaryTableAlias(),
+ 'column' => 'dateFrom',
+ 'reverse' => true,
+ 'type' => 'int',
+ 'unique' => false,
+ ),
+ ) + parent::getOrderableColumns();
+ }
+
+ protected function getPagingValueMap($cursor, array $keys) {
+ $event = $this->loadCursorObject($cursor);
+ return array(
+ 'start' => $event->getDateFrom(),
+ 'id' => $event->getID(),
+ );
+ }
+
protected function loadPage() {
$table = new PhabricatorCalendarEvent();
$conn_r = $table->establishConnection('r');

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 5, 10:24 AM (1 d, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7577537
Default Alt Text
D12968.diff (1 KB)

Event Timeline