Differential D13200 Diff 31965 src/applications/uiexample/examples/PhabricatorSortTableUIExample.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/uiexample/examples/PhabricatorSortTableUIExample.php
| Show All 12 Lines | final class PhabricatorSortTableUIExample extends PhabricatorUIExample { | ||||
| public function renderExample() { | public function renderExample() { | ||||
| $rows = array( | $rows = array( | ||||
| array( | array( | ||||
| 'make' => 'Honda', | 'make' => 'Honda', | ||||
| 'model' => 'Civic', | 'model' => 'Civic', | ||||
| 'year' => 2004, | 'year' => 2004, | ||||
| 'price' => 3199, | 'price' => 3199, | ||||
| 'color' => 'Blue', | 'color' => pht('Blue'), | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'make' => 'Ford', | 'make' => 'Ford', | ||||
| 'model' => 'Focus', | 'model' => 'Focus', | ||||
| 'year' => 2001, | 'year' => 2001, | ||||
| 'price' => 2549, | 'price' => 2549, | ||||
| 'color' => 'Red', | 'color' => pht('Red'), | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'make' => 'Toyota', | 'make' => 'Toyota', | ||||
| 'model' => 'Camry', | 'model' => 'Camry', | ||||
| 'year' => 2009, | 'year' => 2009, | ||||
| 'price' => 4299, | 'price' => 4299, | ||||
| 'color' => 'Black', | 'color' => pht('Black'), | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'make' => 'NASA', | 'make' => 'NASA', | ||||
| 'model' => 'Shuttle', | 'model' => 'Shuttle', | ||||
| 'year' => 1998, | 'year' => 1998, | ||||
| 'price' => 1000000000, | 'price' => 1000000000, | ||||
| 'color' => 'White', | 'color' => pht('White'), | ||||
| ), | ), | ||||
| ); | ); | ||||
| $request = $this->getRequest(); | $request = $this->getRequest(); | ||||
| $orders = array( | $orders = array( | ||||
| 'make', | 'make', | ||||
| 'model', | 'model', | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||