Source of file ListingLocation.php
Size: 0,719 Bytes - Last Modified: 2021-12-24T05:18:05+00:00
/var/www/docs.ssmods.com/process/src/src/model/listings/ListingLocation.php
1234567891011121314151617181920212223242526272829303132333435363738394041 | <?php /* use SilverStripe\ORM\DataObject; */ class ListingLocation extends DataObject { /** * Human-readable singular name. * @var string * @config */ private static $singular_name = "Location"; /** * Human-readable plural name * @var string * @config */ private static $plural_name = "Locations"; private static $defaut_sort = 'SortOrder'; private static $db = array( 'Title' => 'Varchar(255)', 'SortOrder' => 'Int', ); private static $has_one = array( 'Page' => 'Page', ); function getCMSFields() { $f = parent::getCMSFields(); $f->removeByName('SortOrder'); return $f; } } |