| 1 | <?php |
||
| 2 | |||
| 3 | namespace Dynamic\Collection\Test\TestOnly; |
||
| 4 | |||
| 5 | use SilverStripe\Dev\TestOnly; |
||
| 6 | use SilverStripe\ORM\DataObject; |
||
| 7 | |||
| 8 | class TestCollectionObject extends DataObject implements TestOnly |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | private static $db = [ |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 14 | 'Title' => 'Varchar(255)', |
||
| 15 | ]; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public function getSortOptions() |
||
| 21 | { |
||
| 22 | return array( |
||
| 23 | 'Created' => 'Date', |
||
| 24 | 'Title' => 'Name A-Z', |
||
| 25 | 'Title DESC' => 'Name Z-A', |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |