Source of file TestCollectionObject.php
Size: 0,518 Bytes - Last Modified: 2021-12-24T06:45:47+00:00
/var/www/docs.ssmods.com/process/src/tests/TestOnly/TestCollectionObject.php
1234567891011121314151617181920212223242526272829 | <?php namespace Dynamic\Collection\Test\TestOnly; use SilverStripe\Dev\TestOnly; use SilverStripe\ORM\DataObject; class TestCollectionObject extends DataObject implements TestOnly { /** * @var array */ private static $db = [ 'Title' => 'Varchar(255)', ]; /** * @return array */ public function getSortOptions() { return array( 'Created' => 'Date', 'Title' => 'Name A-Z', 'Title DESC' => 'Name Z-A', ); } } |